- Joined
- Jul 13, 2018
- Messages
- 779
- Reaction score
- 122
I am having an issue with outgoing call reporting, the scenarios work in the template generator but in the system it does not.
I think the issue is with the MSISDN number format. I have set incoming and outgoing call reformatting to remove the 00 and replace it with +
00(.*) +\1
In the systemlog it's still showing the number as being 0049xxxxxxxxxx . The number stored in the CRM is formatted as +49xxxxxxxxxx, sometime it finds a match and sometimes it doesn't.
2022/03/16 14:29:12.890|17919|0027|Trac|CHR: [CDR] file writer: open/create file '/var/lib/3cxpbx/Instance1/Data/Logs/CDRLogs/cdr.log'
2022/03/16 14:29:12.890|17919|0042|Info|CRM: about to report 1 calls at maxConcurrency 1
2022/03/16 14:29:12.890|17919|0042|Verb|CRM: Call Journaling event received, searching for number '0049xxxxxxxxxx' in 3CX Contacts.
2022/03/16 14:29:12.890|17919|0042|Verb|Processing scenario 'ReportCall'.
2022/03/16 14:29:12.890|17919|0042|Verb|Creating new HttpClient with no authentication
2022/03/16 14:29:12.891|17919|0042|Verb|Skipping request...
2022/03/16 14:29:12.891|17919|0042|Verb|Continue with empty matching.
2022/03/16 14:29:12.891|17919|0042|Verb|Processing scenario 'ReportCall-Outbound'.
2022/03/16 14:29:12.891|17919|0042|Verb|Creating new HttpClient with no authentication
2022/03/16 14:29:12.891|17919|0042|Verb|Skipping request...
2022/03/16 14:29:12.891|17919|0042|Verb|Continue with empty matching.
2022/03/16 14:29:12.891|17919|0042|Verb|Processing scenario 'ReportCall-Missed'.
2022/03/16 14:29:12.891|17919|0042|Verb|Creating new HttpClient with no authentication
2022/03/16 14:29:12.891|17919|0042|Verb|Skipping request...
2022/03/16 14:29:12.891|17919|0042|Verb|Continue with empty matching.
2022/03/16 14:29:12.891|17919|0042|Verb|Processing scenario 'ReportCall-Notanswered'.
2022/03/16 14:29:12.891|17919|0042|Verb|Creating new HttpClient with no authentication
2022/03/16 14:29:12.891|17919|0042|Verb|Performing POST request to 'https://systemname.weclapp.com/webapp/api/v1/_app_crmCallLog/' with message '{"customerId":"6173456","inOut":"Outgoing","description":"[DateTime]: Unanswered outgoing call from [Agent] to [Number] [Name]","logType":"LOG_CALL","subject":"16.03.2022 14:29: Unanswered outgoing call from 431 to 0049xxxxxxxxxx Bastian Schrötter","customerNumber":"6173456"}'.
2022/03/16 14:29:12.964|17919|0042|Verb|The response is: '{
2022/03/16 14:53:50.762|17919|0044|Info|Transcribe is disabled
2022/03/16 14:53:50.763|17919|0044|Trac|CHR: [CDR] file writer: open/create file '/var/lib/3cxpbx/Instance1/Data/Logs/CDRLogs/cdr.log'
2022/03/16 14:53:50.763|17919|0044|Info|CRM: about to report 1 calls at maxConcurrency 1
2022/03/16 14:53:50.764|17919|0044|Verb|CRM: Call Journaling event received, searching for number '0049xxxxxxxxxx' in 3CX Contacts.
2022/03/16 14:53:50.764|17919|0044|Verb|Processing scenario 'ReportCall'.
2022/03/16 14:53:50.764|17919|0044|Verb|Creating new HttpClient with no authentication
2022/03/16 14:53:50.764|17919|0044|Verb|Skipping request...
2022/03/16 14:53:50.765|17919|0044|Verb|Continue with empty matching.
2022/03/16 14:53:50.765|17919|0044|Verb|Processing scenario 'ReportCall-Outbound'.
2022/03/16 14:53:50.765|17919|0044|Verb|Creating new HttpClient with no authentication
2022/03/16 14:53:50.765|17919|0044|Verb|Performing POST request to 'https://systemname.weclapp.com/webapp/api/v1/_app_crmCallLog/' with message '{"customerId":"","inOut":"Outgoing","description":"[DateTime]: Answered outgoing call from [Agent] to [EntityType] [Name] ([Duration])","logType":"LOG_CALL","subject":"3CX Outbound:","customerNumber":""}'.
2022/03/16 14:53:50.825|17919|0044|Erro|Exception during call reporting: System.Exception: Server returned a non successful status code - HTTPStatusCode=BadRequest - Reason=Bad Request - Content={
"error": "one of customer, lead and supplier is required"
I think the issue is with the MSISDN number format. I have set incoming and outgoing call reformatting to remove the 00 and replace it with +
00(.*) +\1
In the systemlog it's still showing the number as being 0049xxxxxxxxxx . The number stored in the CRM is formatted as +49xxxxxxxxxx, sometime it finds a match and sometimes it doesn't.
2022/03/16 14:29:12.890|17919|0027|Trac|CHR: [CDR] file writer: open/create file '/var/lib/3cxpbx/Instance1/Data/Logs/CDRLogs/cdr.log'
2022/03/16 14:29:12.890|17919|0042|Info|CRM: about to report 1 calls at maxConcurrency 1
2022/03/16 14:29:12.890|17919|0042|Verb|CRM: Call Journaling event received, searching for number '0049xxxxxxxxxx' in 3CX Contacts.
2022/03/16 14:29:12.890|17919|0042|Verb|Processing scenario 'ReportCall'.
2022/03/16 14:29:12.890|17919|0042|Verb|Creating new HttpClient with no authentication
2022/03/16 14:29:12.891|17919|0042|Verb|Skipping request...
2022/03/16 14:29:12.891|17919|0042|Verb|Continue with empty matching.
2022/03/16 14:29:12.891|17919|0042|Verb|Processing scenario 'ReportCall-Outbound'.
2022/03/16 14:29:12.891|17919|0042|Verb|Creating new HttpClient with no authentication
2022/03/16 14:29:12.891|17919|0042|Verb|Skipping request...
2022/03/16 14:29:12.891|17919|0042|Verb|Continue with empty matching.
2022/03/16 14:29:12.891|17919|0042|Verb|Processing scenario 'ReportCall-Missed'.
2022/03/16 14:29:12.891|17919|0042|Verb|Creating new HttpClient with no authentication
2022/03/16 14:29:12.891|17919|0042|Verb|Skipping request...
2022/03/16 14:29:12.891|17919|0042|Verb|Continue with empty matching.
2022/03/16 14:29:12.891|17919|0042|Verb|Processing scenario 'ReportCall-Notanswered'.
2022/03/16 14:29:12.891|17919|0042|Verb|Creating new HttpClient with no authentication
2022/03/16 14:29:12.891|17919|0042|Verb|Performing POST request to 'https://systemname.weclapp.com/webapp/api/v1/_app_crmCallLog/' with message '{"customerId":"6173456","inOut":"Outgoing","description":"[DateTime]: Unanswered outgoing call from [Agent] to [Number] [Name]","logType":"LOG_CALL","subject":"16.03.2022 14:29: Unanswered outgoing call from 431 to 0049xxxxxxxxxx Bastian Schrötter","customerNumber":"6173456"}'.
2022/03/16 14:29:12.964|17919|0042|Verb|The response is: '{
2022/03/16 14:53:50.762|17919|0044|Info|Transcribe is disabled
2022/03/16 14:53:50.763|17919|0044|Trac|CHR: [CDR] file writer: open/create file '/var/lib/3cxpbx/Instance1/Data/Logs/CDRLogs/cdr.log'
2022/03/16 14:53:50.763|17919|0044|Info|CRM: about to report 1 calls at maxConcurrency 1
2022/03/16 14:53:50.764|17919|0044|Verb|CRM: Call Journaling event received, searching for number '0049xxxxxxxxxx' in 3CX Contacts.
2022/03/16 14:53:50.764|17919|0044|Verb|Processing scenario 'ReportCall'.
2022/03/16 14:53:50.764|17919|0044|Verb|Creating new HttpClient with no authentication
2022/03/16 14:53:50.764|17919|0044|Verb|Skipping request...
2022/03/16 14:53:50.765|17919|0044|Verb|Continue with empty matching.
2022/03/16 14:53:50.765|17919|0044|Verb|Processing scenario 'ReportCall-Outbound'.
2022/03/16 14:53:50.765|17919|0044|Verb|Creating new HttpClient with no authentication
2022/03/16 14:53:50.765|17919|0044|Verb|Performing POST request to 'https://systemname.weclapp.com/webapp/api/v1/_app_crmCallLog/' with message '{"customerId":"","inOut":"Outgoing","description":"[DateTime]: Answered outgoing call from [Agent] to [EntityType] [Name] ([Duration])","logType":"LOG_CALL","subject":"3CX Outbound:","customerNumber":""}'.
2022/03/16 14:53:50.825|17919|0044|Erro|Exception during call reporting: System.Exception: Server returned a non successful status code - HTTPStatusCode=BadRequest - Reason=Bad Request - Content={
"error": "one of customer, lead and supplier is required"
