• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

3CX V16 Alpha 2 integration with vTiger

Status
Not open for further replies.

James Reed

Bronze Partner
Advanced Certified
Joined
Dec 17, 2018
Messages
20
Reaction score
3
Hi all

We have V16 latest alpha installed and running with the vTiger server integration configured. On incoming calls we can get contact/company information displayed in the web or app interfaces but whenever we try and allow auto-pop of the CRM record we receive the error "Illegal request" displayed within the browser window it is trying to pop the record to. Pressing F5 to refresh does not work and causes the same error BUT if you click in to the address field of the window and hit Go to load the page then (as long as we have previously logged in to the vTiger system in that browser session using a web authenticated vTiger user) then the record loads.

We have worked extensively with the vTiger developer supporting this customers CMR and they cannot see what the problem is. We believe it is something to do with the way the API integration is trying to pull the data as we think, although cannot be certain, it is related to how the API is passing the request from 3CX.

We have a deal potentially resting on this integration working as indicated in the documentation so would be very interested to hear of anyone else using this integration on V16 and if they have it working as documented?

J.
 
  • Like
Reactions: iqit
I guess you have no doubt read this guide here - vTiger integration has been covered by 3CX:
https://www.3cx.com/docs/vtiger-crm-pbx-integration-server-side/

I would however look no further into this until the full revision of 3CX v16 comes out - Alpha and Beta versions should not be used in a live environment and may contain bugs which inherently are effecting/causing an effect on your issue.
 
Thanks. Yes we've been through the documentation. The system we are testing on is not a live production system and we would really like to have tested the functions ready for the live version of V16 to come out.

Hopefully the dev's are keeping and eye out and can see if this is a bug to be solved with V16.
 
Hello @James Reed,

Have you tried using a different browser? For example, if you're running the 3CX Web Client on Chrome, can you try to do it on Firefox? Also, can you try this in a different computer?

The 3CX Web Client just launches the contact URL returned by vTiger in a new browser tab. So, seems to be a browser / computer problem. As you mentioned, the URL is correct, because it shows the contact record when you press Go. So looks like the integration is working fine, and there is some issue with your browser...

Kind regards.
 
Hi Ernesto
Yes, we have tried using different browsers. We have cleared cache's etc. We have worked closely with the very experienced vTiger developers and the problem appears to be when 3CX passes, using the API, the credentials. The pressing Go works as the credentials from the vTiger Web User are in the browser, if you have not previously authenticated as a web user then pressing go produces the expected credentials prompt.

At present it very much points to something with the API call.

J.
 
The integration doesn't provide any credentials when the 3CX Web Client launches the contact URL in a new tab. You need to be logged-in in your browser, and it should work. The 3CX Web Client just launches the URL, and it's the same URL that works when you click Go...
 
Just to confirm that the issue only happens when we click on the link provided from the 3CX popup to open the CRM record.
 
I just tested this, and works perfectly in our lab. Try using a different browser or a different machine, as the issue is not related to the integration...
 
Update for those that are interested plus another question.

We have identified that the reason that the call from 3CX was not working was that we needed to add the appropriate code to the validateReferer function within vTiger to allow the referral to succeed. I might suggest that this is included in the 3CX documentation?

We are now reviewing why the journal entries are not being recorded to the contact or company record as appropriate.

Please can 3CX advise where the integration is configured to place these records, the vTiger developer has asked in which vTiger module the record is supposed to be created?

Thanks in advance.
 
We have identified that the reason that the call from 3CX was not working was that we needed to add the appropriate code to the validateReferer function within vTiger to allow the referral to succeed. I might suggest that this is included in the 3CX documentation?
We didn't make any change to the vTiger standard configuration, and it works in our lab. Also, you're the first user reporting this. So probably, this is because your installation has this specific configuration.

Please can 3CX advise where the integration is configured to place these records, the vTiger developer has asked in which vTiger module the record is supposed to be created?
Call Journaling entries are created as vTiger events. Here you have a screenshot of a contact with some calls logged:
upload_2019-1-18_13-23-17.png

Kind regards.
 

Attachments

  • upload_2019-1-18_13-19-19.png
    upload_2019-1-18_13-19-19.png
    75.9 KB · Views: 19
Thanks for the update. If you are testing against basic vTiger OOB experience then i suspect most people will have customised to some extent!

Thanks for letting us know about where the details will be recorded.
 
For anyone watching this thread further insight from the developer is that "we haven't done any customization in the file/function we have modified in order to make link click work from 3CX. And I believe all the customers using vtiger 6.5 open Source will face this issue"

And if anyone is interested this is what they did to allow the referral link to work

1. We have modified validateReferer function in line 209 of includes/http/Request.php file.

2. $_SERVER['HTTP_REFERER'] is being checked here.

3. We have made modification so that it will allow if $_SERVER['HTTP_REFERER'] is the actual CRM link or link is having XXX.3cx in the name.


I would be interested to know if anyone is successfully using the journalling outside of 3CX internal testing?

J.
 
Status
Not open for further replies.
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.