Dont work integration Bitrix24 box

Status
Not open for further replies.

mds_mds

Customer
Joined
Sep 17, 2018
Messages
15
Reaction score
1
Hello!
Dont work integration incoming calls.Information about incoming calls does not appear in Bitrix.
 
Please check this guide and follow all the configuration steps:
https://www.3cx.com/docs/bitrix24-crm-integration/

You need to define the extensions for each of your agents, otherwise calls will not be logged.

You can enable verbose logs from the 3CX Console > Dashboard > Activity Logs > Settings, and then make a call, and check the 3cxSystemService.log for further information.
 
2019/03/28 18:05:51.582|808|0057|Erro|Exception during call reporting: Server returned a non successful status code - HTTPStatusCode=Unauthorized - Reason=Unauthorized - Content={"error":"insufficient_scope","error_description":"The request requires higher privileges than provided by the webhook token"}
 
I install access permission and dont work
10026
 
If you're granting the permissions and Bitrix is rejecting the request, then I would contact Bitrix support to ask them why this is happening. You have the invokcation URL in the 3cxSystemService.log file, or the Log window if you're testing from the console.
 
If you're granting the permissions and Bitrix is rejecting the request, then I would contact Bitrix support to ask them why this is happening. You have the invokcation URL in the 3cxSystemService.log file, or the Log window if you're testing from the console.
Answer Bitrix support :
You need add access to "Users"
 
Thanks for your feedback. Yes, we just added that to the documentation.
 
Thanks for your feedback. Yes, we just added that to the documentation.
New contact is not tied to the user who received the call :
2019/04/16 11:53:42.144|800|0042|Verb|Creating new HttpClient with no authentication
2019/04/16 11:53:42.144|800|0042|Verb|Performing GET request 'https:////user.get.json?filter[UF_PHONE_INNER]=112'.
2019/04/16 11:53:42.182|800|0042|Verb|The response is: '{"result":[{"ID":"159","ACTIVE":true,"EMAIL":"","NAME":"\u0422\u0430\u0442\u044c\u044f\u043d\u0430","LAST_NAME":"\u0425\u0430\u0440\u0447\u0435\u043d\u043a\u043e","SECOND_NAME":"\u0410\u043d\u0430\u0442\u043e\u043b\u044c\u0435\u0432\u043d\u0430","PERSONAL_GENDER":"F","PERSONAL_PROFESSION":"","PERSONAL_WWW":"","PERSONAL_BIRTHDAY":"1958-05-02T03:00:00+03:00","PERSONAL_PHOTO":"https:\/\\/upload\/main\/f87\/_.jpg","PERSONAL_ICQ":"","PERSONAL_PHONE":"","PERSONAL_FAX":"","PERSONAL_MOBILE":"+7 905 772 46 96","PERSONAL_PAGER":"","PERSONAL_STREET":"","PERSONAL_CITY":"","PERSONAL_STATE":"","PERSONAL_ZIP":"","PERSONAL_COUNTRY":"0","WORK_COMPANY":"\u0410\u0440\u0430\u0431\u0435\u043b\u043b\u0430","WORK_POSITION":"\u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u043c","WORK_PHONE":"","UF_DEPARTMENT":[173],"UF_INTERESTS":null,"UF_SKILLS":null,"UF_WEB_SITES":null,"UF_XING":null,"UF_LINKEDIN":null,"UF_FACEBOOK":null,"UF_TWITTER":null,"UF_SKYPE":null,"UF_DISTRICT":null,"UF_PHONE_INNER":"112"}],"total":1,"time":{"start":1555404822.1605871,"finish":1555404822.1791551,"duration":0.018568038940429688,"processing":0.0081250667572021484,"date_start":"2019-04-16T11:53:42+03:00","date_finish":"2019-04-16T11:53:42+03:00"}}'
2019/04/16 11:53:42.182|800|0042|Verb|Filtered variables for matching:
2019/04/16 11:53:42.182|800|0042|Verb| 'ResponsibleId' = '159'
2019/04/16 11:53:42.182|800|0042|Verb|Processing scenario 'CreateCallActivity'.
2019/04/16 11:53:42.182|800|0042|Verb|Creating new HttpClient with no authentication
2019/04/16 11:53:42.183|800|0042|Verb|Performing POST request to 'https:////crm.activity.add' with message '{"fields":{"TYPE_ID":2,"OWNER_ID":"18663","OWNER_TYPE_ID":"3","RESPONSIBLE_ID":"159","START_TIME":"2019-04-16T11:51:03Z","PRIORITY":2,"COMPLETED":"Y","SUBJECT":"3CX PhoneSystem Call","DIRECTION":"2","DESCRIPTION":"4/16/19 11:51 AM: Answered outgoing call from 112 to New 3CX Contact (02:38)","COMMUNICATIONS":[{"VALUE":""}]}}'.
2019/04/16 11:53:42.316|800|0042|Verb|The response is: '{"result":46653,"time":{"start":1555404822.1991501,"finish":1555404822.3130209,"duration":0.11387085914611816,"processing":0.10286188125610352,"date_start":"2019-04-16T11:53:42+03:00","date_finish":"2019-04-16T11:53:42+03:00"}}'
2019/04/16 11:53:42.316|800|0042|Verb|No matchings found.
The contact user has become the user of RESET API.
 
As you can see in the first query:
Code:
https:////user.get.json?filter[UF_PHONE_INNER]=112

3CX first tries to retrieve the agent having the extension number 112. Bitrix is returning a specific agent, with ID 159. Then 3CX creates the call activity for this agent. If this agent is the REST API agent, then that's because you set extension 112 to this user. Please check the configuration of this user.
 
3CX first tries to retrieve the agent having the extension number 112. Bitrix is returning a specific agent, with ID 159. Then 3CX creates the call activity for this agent. If this agent is the REST API agent, then that's because you set extension 112 to this user. Please check the configuration of this user.
A new contact is created for the user with ID 1. This user (ID 1) is administrator and REST API agent
 
Bitrix has a REST API for each user.
 
Contacts will be created by the user you define in the 3CX configuration. But calls will be created assigned to the agent that received the call. If this is not your case, please check how you defined the extension numbers of your agents in Bitrix.
 
please check how you defined the extension numbers of your agents in Bitrix.
10309
Internal Phone is registered and Call Journaling is working
 
How to disable +03:00? Bitrix adds +3:00 to the start or finish time of the calendar event.
2019/04/17 15:04:17.253|796|0023|Verb|The response is: '{"result":[],"total":0,"time":{"start":1555502657.232028,"finish":1555502657.248163,"duration":0.016134977340698242,"processing":0.0058779716491699219,"date_start":"2019-04-17T15:04:17+03:00","date_finish":"2019-04-17T15:04:17+03:00"}}'
 
How to disable +03:00? Bitrix adds +3:00 to the start or finish time of the calendar event.
That's your time zone. You need to ensure that the 3CX server is configured with the same time zone than Bitrix. Then calls will be reported properly.
 
That's your time zone. You need to ensure that the 3CX server is configured with the same time zone than Bitrix. Then calls will be reported properly.
Time zone 3CX server :
root@sip:~# date
Thu Apr 18 09:59:04 MSK 2019
10323
Time zone bitrix :
[root@gutsy ~]# date
Thu Apr 18 09:59:07 MSK 2019
10322
The problem is not in time zone
 
Do you want to remove the time zone text from the description? Or the call journaling entry is created with wrong date?
 
Do you want to remove the time zone text from the description? Or the call journaling entry is created with wrong date?
call journaling entry is created with wrong date
 
Please send the part of the 3cxSystemService.log file containing the request from 3CX to create the journaling entry, and the response from Bitrix. You sent only the response in a previous post. And then send us a screenshot of the call journaling entry created in Bitrix from that request.
 
Status
Not open for further replies.

Forum statistics

Threads
112,298
Messages
591,767
Members
165,435
Latest member
Ahzaz