FreePBX CRM Module with Zoho

FreePBX CRM Module with Zoho

Hello

We're testing out zoho CRM and therefore trying to connect our FreePBX and Zoho instances. There are two ways (afaik) to connect Zoho and FreePBX:

Version A
Using the commercial plugin provided by Sangoma "Sangoma CRM". When trying to "Authorize with Zoho" from FreePBX, we get the following error message in a new browser window:

  1. ERROR_invalid_client

Nothing else, just this.

Version B
Using the Asterisk 1.14 conncetor provided by Zoho. Following all steps mentioned here: https://www.zoho.eu/crm/help/zoho-phonebridge/asterisk-avaya-elastix.html#Asterisk ends in the following console output:

  1. bash-4.2$ sh run.sh
  2. ./../classes/:./../lib/json.jar:./../lib/ZohoTeleAdapter.jar:./../lib/AdvWmsCommon.jar:./../lib/AdvWmsServerCommon.jar:./../lib/HTTPClient.jar:./../teleadapters/asterisk14/lib/asterisk-java-1.0.0.M3.jar:./../teleadapters/asterisk14/lib/ZTIAsterisk14Impl.jar
  3. ===============================================================================
  4. .
  5. .
  6. REMOTE_HOME: ./..
  7. .
  8. JAVA: /usr/bin/java
  9. .
  10. JAVA_OPTS: -Dadapter.home=./.. -Djava.util.logging.config.file=../conf/logging.properties
  11. .
  12. CLASSPATH: ./../classes/:./../lib/json.jar:./../lib/ZohoTeleAdapter.jar:./../lib/AdvWmsCommon.jar:./../lib/AdvWmsServerCommon.jar:./../lib/HTTPClient.jar:./../teleadapters/asterisk14/lib/asterisk-java-1.0.0.M3.jar:./../teleadapters/asterisk14/lib/ZTIAsterisk14Impl.jar
  13. .
  14. PARAM:
  15. .
  16. ===============================================================================
  17. .
  18. Reading conf from --->../conf/zti.properties
  19. Loading props ./../conf/taskengine/taskengine.conf
  20. Loading props ./../conf/taskengine/tele.properties
  21. Loading props ./../conf/taskengine/zoho.properties
  22. java.net.ProtocolException: Missing WWW-Authenticate header
  23.         at HTTPClient.AuthorizationModule.handle_auth_challenge(AuthorizationModule.java:483)
  24.         at HTTPClient.AuthorizationModule.responsePhase2Handler(AuthorizationModule.java:362)
  25.         at HTTPClient.HTTPResponse.handleResponse(HTTPResponse.java:736)
  26.         at HTTPClient.HTTPResponse.getStatusCode(HTTPResponse.java:190)
  27.         at com.zohocorp.zoho.ztiadapter.ZohoHTTPClient.doGet(ZohoHTTPClient.java:351)
  28.         at com.zohocorp.zoho.ztiadapter.ZohoHTTPClient.get(ZohoHTTPClient.java:84)
  29.         at com.zohocorp.zoho.ztiadapter.ZohoHTTPClient.get(ZohoHTTPClient.java:55)
  30.         at com.zohocorp.zoho.ztiadapter.util.AuthUtil.setZUID(AuthUtil.java:28)
  31.         at com.zohocorp.zoho.ztiadapter.util.AuthUtil.login(AuthUtil.java:61)
  32.         at com.zohocorp.zoho.ztiadapter.ZTIAdapter.initialize(ZTIAdapter.java:57)
  33.         at com.zohocorp.zoho.ztiadapter.Starter.main(Starter.java:19)
  34. java.lang.Exception: Unable to get ZUID for the AuthToken
  35.         at com.zohocorp.zoho.ztiadapter.util.AuthUtil.setZUID(AuthUtil.java:37)
  36.         at com.zohocorp.zoho.ztiadapter.util.AuthUtil.login(AuthUtil.java:61)
  37.         at com.zohocorp.zoho.ztiadapter.ZTIAdapter.initialize(ZTIAdapter.java:57)
  38.         at com.zohocorp.zoho.ztiadapter.Starter.main(Starter.java:19)
  39. Unable to login, quiting....

We're currrently not sure, wether Zoho is good for that kind of connection, and, if someone got it working properly. As we're currently evaluating Zoho and other SaaS-CRMs, I would really appreciate any help.

Many thanks for all help provided!