CRM integration to V20

REDFAC

Customer
Joined
Oct 10, 2024
Messages
47
Reaction score
1
Hi,

We are trying to integrate custom CRM to 3cx via Rest Api, created client id and secrete still not get any response. Is it mandatory to create template as well as.

Thanks
 
This is the response we are getting
 
Hi,

Anyone can help for this.

Thanks,
 
2024/11/21 23:01:18.776|0018|Info| [Integration.Crm.CallProcessingService] CRM: about to report 1 calls at maxConcurrency 2
2024/11/21 23:01:18.781|0018|Debg| [Integration.Crm.CallProcessingService] CRM: Triggering Call Journaling with values - CallType='Outbound' - PhoneNumber='0567795125' - ContactName='' - AgentExtension='104' - AgentFirstName='User' - AgentLastName='Four' - AgentEmail='[email protected]' - ContactRawData='(null)' - StartTime='11/21/2024 19:00:22' - EndTime='11/21/2024 19:01:18' - EstablishedTime='11/21/2024 19:00:35'
2024/11/21 23:01:18.783|0018|Trac| [Npgsql.Connection] Opening connection to 127.0.0.1:5432/database_single...
2024/11/21 23:01:18.783|0018|Debg| [Npgsql.Connection] Opened connection to 127.0.0.1:5432/database_single
2024/11/21 23:01:18.784|0018|Trac| [Npgsql.Connection] Start user action
2024/11/21 23:01:18.784|0018|Debg| [Npgsql.Command] Executing command: select * from recordings where id_recording=$1
2024/11/21 23:01:18.790|0019|Trac| [Npgsql.Command] Cleaning up reader
2024/11/21 23:01:18.790|0019|Info| [Npgsql.Command] Command execution completed (duration=6ms): select * from recordings where id_recording=$1
2024/11/21 23:01:18.790|0019|Trac| [Npgsql.Connection] End user action
2024/11/21 23:01:18.791|0019|Trac| [Npgsql.Connection] Closing connection to 127.0.0.1:5432/database_single...
2024/11/21 23:01:18.791|0019|Trac| [Npgsql.Connection] Start user action
2024/11/21 23:01:18.791|0019|Trac| [Npgsql.Connection] End user action
2024/11/21 23:01:18.791|0019|Debg| [Npgsql.Connection] Closed connection to 127.0.0.1:5432/database_single
2024/11/21 23:01:18.797|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Processing scenario 'ReportCall'.
2024/11/21 23:01:18.798|0019|Debg| [Integration.Crm.Engine.BasicAuthHttpClientProvider] CRM: Creating new HttpClient for Basic authentication
2024/11/21 23:01:18.803|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Skipping request...
2024/11/21 23:01:18.803|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Continue with empty matching.
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Processing scenario 'ReportCallMissed'.
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.BasicAuthHttpClientProvider] CRM: Creating new HttpClient for Basic authentication
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Skipping request...
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Continue with empty matching.
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Processing scenario 'ReportCallOutbound'.
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.BasicAuthHttpClientProvider] CRM: Creating new HttpClient for Basic authentication
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Skipping request...
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Continue with empty matching.
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Processing scenario 'ReportCallNotanswered'.
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.BasicAuthHttpClientProvider] CRM: Creating new HttpClient for Basic authentication
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Skipping request...
2024/11/21 23:01:18.804|0019|Debg| [Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: No matchings found.
 
Kindly look into the activity Verbos logs
 
Did you solve this?
 
No contact matched so no call logged. This is expected behavior.

You can check in the logs you provided, there's the "Reporting call ... ContactName = ..., ContactRawData = (null). This should actually be more like "3456778|Contacts".
 

Call Journaling​

3CX Phone System supports reporting external calls to CRM. To support call journaling, you just need to create a scenario with the reserved name “ReportCall”. This scenario doesn’t return any data, so you should not provide <Rules/>, <Variables/> and <Outputs/> nodes. Only a <Request>, <Query> or <Command> element is required, according to the type of scenario.

Check the CRM templates provided by 3CX to see Call Journaling examples.

The names you use for "report calls scenarios" are wrong. The one and only allowed name is "ReportCall". Others will be interpreted as LookUp scenarios. See https://www.3cx.com/docs/crm-template-xml-description/
 
  • Like
Reactions: K_SAK

Call Journaling​

3CX Phone System supports reporting external calls to CRM. To support call journaling, you just need to create a scenario with the reserved name “ReportCall”. This scenario doesn’t return any data, so you should not provide <Rules/>, <Variables/> and <Outputs/> nodes. Only a <Request>, <Query> or <Command> element is required, according to the type of scenario.

Check the CRM templates provided by 3CX to see Call Journaling examples.

The names you use for "report calls scenarios" are wrong. The one and only allowed name is "ReportCall". Others will be interpreted as LookUp scenarios. See https://www.3cx.com/docs/crm-template-xml-description/
Wrong. You can chain multiple scenarios and skip some if desired. That's how the Template Wizard does it by default.
 
No contact matched so no call logged. This is expected behavior.

You can check in the logs you provided, there's the "Reporting call ... ContactName = ..., ContactRawData = (null). This should actually be more like "3456778|Contacts".
Wrong. Even if the contact is not matched the call can be logged.
 
  • Like
Reactions: K_SAK
Even if the contact is not matched the call can be logged.
Yes, this is up to the template. The CRM engine will not discard that in advance, but usually the integrations will skip it. All the standard 3CX integrations do this, and that's also what generates the CRM tool by default, however you can change it and still log the call.

In any case, to make conclusions we need to see actual logs, and also the template specially when not using a standard integration.
 
  • Like
Reactions: Evolute IT
  • Like
Reactions: Evolute IT
  • Like
Reactions: Evolute IT
I think this is the case if you replace the template (upload it again after making some changes). You can delete and then add, but in that case you need to reconfigure everything, so it's easier to restart the 3CX System Service.