3CX - Bitrix Creating Events on New Calls

Status
Not open for further replies.

mhnichols

Customer
Joined
May 22, 2009
Messages
27
Reaction score
4
Hi,

We have been setting up the integration between 3CX V16 and Bitrix

We have setup call journaling in 3CX and this seems to work well with the call being recorded against the contact in Bitrix.

But on completion of the call a the event that is created in Bitrix is for 1 hour into the future?

IE , I take a call at 9.30am, the event in Bitrix is created for 10.30am?

As such i am getting future event created with reminders, for calls already received and dealt with?

I presume this could be to do with timezones not being correct, but seem unable to fix.

3CX is set to 0:00 United Kingdom (London)

But for the UK in Bitrix it shows as (UTC +1:00) Europe/London

Any ideas to help resolve this would be appreciated!

Thanks

Mark
 
Hello Mark,

It seems that your 3CX server has a wrong time zone. It should be set to UTC+1. Once you change the time zone of the 3CX server, the calls should get logged at the correct time.

Regards.
 
HI, I have adjusted the timezone on 3cx as you suggest but this has not corrected the issue,

I have set 3cx timezone to +1:00 United Kingdom (Gibraltar) with Bitrix set to UTC +1:00 Europe/London

The incoming call is still being registered 1 hour into the future,
Annotation 2020-06-18 080144.jpg

Any further suggestions would be appreciated.

Thanks

Mark
 
Did you make this change in the 3CX console? Or the server time? Because what's considered here is the Windows/Linux server time.
 
HI, I have adjusted the server time as suggested but am still experiencing the same issue?

3CX Server setting are:

Annotation 2020-06-19 075616.jpg

But still the call is showing 1 hour into the future in Bitrix.
Annotation 2020-06-19 075716.jpg

Any further ideas to resolve?

Regards
Mark
 
Hi Mark,

Please enable verbose logs in 3CX as explained here:
https://www.3cx.com/docs/collecting-logs-for-3cx-support/

Then reproduce the issue, and check the 3cxSystemService.log file. There you will see the value sent from 3CX to Bitrix, and we will understand where the issue is.
 
HI, I have run the test as requested. the following is the section i think is relevant from the log file.

2020/06/24 08:00:53.973|4320|0034|Info|CRM: about to report 1 calls at maxConcurrency 1
2020/06/24 08:00:53.973|4320|0034|Verb|Processing scenario 'ReportCall'.
2020/06/24 08:00:53.973|4320|0034|Verb|Creating new HttpClient with no authentication
2020/06/24 08:00:53.974|4320|0034|Verb|Performing GET request 'https://aceoffice.bitrix24.com/******/user.get.json?filter[UF_PHONE_INNER]=265'.
2020/06/24 08:00:53.976|4320|0017|Verb|Enqueue Updated.PARAMETER.748
2020/06/24 08:00:53.976|4320|0011|Verb|Dequeue Updated.PARAMETER.748
2020/06/24 08:00:54.449|4320|0006|Verb|The response is: '{"result":[{"ID":"4","ACTIVE":true,"EMAIL":"[email protected]","NAME":"Mark","LAST_NAME":"Nichols","SECOND_NAME":"","PERSONAL_GENDER":"M","PERSONAL_PROFESSION":null,"PERSONAL_WWW":"","PERSONAL_BIRTHDAY":"","PERSONAL_PHOTO":"https:\/\/cdn.bitrix24.com\/b14210797\/main\/cdf\/cdf91d839d5d043af1b87af6037f6867\/jrMC54AEsOfZv3TQOZrUOG77.png","PERSONAL_ICQ":null,"PERSONAL_PHONE":null,"PERSONAL_FAX":null,"PERSONAL_MOBILE":"07980 721033","PERSONAL_PAGER":null,"PERSONAL_STREET":null,"PERSONAL_CITY":"","PERSONAL_STATE":null,"PERSONAL_ZIP":null,"PERSONAL_COUNTRY":null,"WORK_COMPANY":null,"WORK_POSITION":"Business Services Manager","WORK_PHONE":"01202240000","UF_DEPARTMENT":[10,14,26,12],"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":"265","USER_TYPE":"employee"}],"total":1,"time":{"start":1592982049.3237491,"finish":1592982049.3540559,"duration":0.030306816101074219,"processing":0.011482000350952148,"date_start":"2020-06-24T10:00:49+03:00","date_finish":"2020-06-24T10:00:49+03:00"}}'
2020/06/24 08:00:54.450|4320|0006|Verb|Filtered variables for matching:
2020/06/24 08:00:54.451|4320|0006|Verb| 'ResponsibleId' = '4'
2020/06/24 08:00:54.451|4320|0006|Verb|Processing scenario 'CreateCallActivity'.
2020/06/24 08:00:54.451|4320|0006|Verb|Creating new HttpClient with no authentication
2020/06/24 08:00:54.452|4320|0006|Verb|Performing POST request to 'https://aceoffice.bitrix24.com/******/crm.activity.add' with message '{"fields":{"TYPE_ID":2,"OWNER_ID":"7440","OWNER_TYPE_ID":"4","RESPONSIBLE_ID":"4","START_TIME":"2020-06-24T08:00:45Z","PRIORITY":2,"COMPLETED":"Y","SUBJECT":"3CX PhoneSystem Call","DIRECTION":"1","DESCRIPTION":"24/06/2020 08:00: Answered incoming call from 07764446746 Ace OfficeTest to 265 (00:08)","COMMUNICATIONS":[{"VALUE":"07764446746"}]}}'.
2020/06/24 08:00:54.752|4320|0006|Verb|The response is: '{"result":892,"time":{"start":1592982049.4894171,"finish":1592982049.654742,"duration":0.16532492637634277,"processing":0.14667701721191406,"date_start":"2020-06-24T10:00:49+03:00","date_finish":"2020-06-24T10:00:49+03:00"}}'
2020/06/24 08:00:54.753|4320|0006|Verb|No matchings found.
 
Last edited:
In the log we can see that the call is created with:
"START_TIME":"2020-06-24T08:00:45Z"

That time is in UTC time format, and means 9am in UTC+1. How is this call being registered in Bitrix?
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,325
Messages
591,898
Members
165,478
Latest member
postmaster@studiolegaleda