The 'Call Journaling' does not write all calls to the MySQL database

Status
Not open for further replies.

MaRu

Free User
Joined
Jun 17, 2020
Messages
2
Reaction score
1
The contact-creation and the tests of the contact-creation works fine.

Our Mysql-Statement for the 3CX-Call Journaling sounds like:

INSERT INTO tblcall (calltype, contactnumber, agentextension, calldatetime1, calldatetime2) VALUES ('[CallType]', '[Number]', '[Agent]', STR_TO_DATE('[CallStartTimeLocal]', '%m/%d/%Y %h:%i:%s %p'), STR_TO_DATE('[CallEndTimeLocal]', '%m/%d/%Y %h:%i:%s %p'));

OR

INSERT INTO tblcall (calltype, contactnumber, agentextension, calldatetime1, calldatetime2) VALUES ('[CallType]', '[Number]', '[Agent]', STR_TO_DATE('[CallStartTimeLocal]', '%m/%d/%Y %h:%i:%s %p'), STR_TO_DATE('[CallEndTimeLocal]', '%m/%d/%Y %r'));

Sometimes it works and sometimes it does not work. We are missing some calls!

We have found no plausible reason why he does not always write to the database.

Table structure for table `tblcall` :

CREATE TABLE `tblcall` (
`callid` int(10) UNSIGNED NOT NULL,
`calltype` tinytext NOT NULL,
`contactnumber` tinytext NOT NULL,
`agentextension` tinytext NOT NULL,
`calldatetime1` datetime NOT NULL,
`calldatetime2` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

ALTER TABLE `tblcall`
ADD PRIMARY KEY (`callid`);

ALTER TABLE `tblcall`
MODIFY `callid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
COMMIT;

Our Mysql server is always online without forced interruption and restarts. Where can I find the error message when a command fails.
 
  • Like
Reactions: davide.bonavita
Status
Not open for further replies.

Forum statistics

Threads
111,953
Messages
589,913
Members
164,848
Latest member
latoya@bautistafamilycare