This is a demonstration to connecting xivo and sugarcrm with a customer sheet.
The version used for test is XiVO 13.25 and sugarCRM 6.5.16 CE.
You need to add a sub routine on xivo, this agi and you need to configure your xivo.
More information about customer sheet : http://documentation.xivo.fr/production/administration/customerinfo/sheetconfiguration.html#variables
- apt-get install git
- mkdir /usr/share/asterisk/agi-bin
- cd /usr/share/asterisk/agi-bin
- git config --global http.sslverify false
- git clone https://github.com/sboily/xivo-sugarcrm.git
- cd xivo-sugarcrm
- cp sugarcrm.conf /etc/asterisk/extensions_extra.d
- chown www-data.www-data /etc/asterisk/extensions_extra.d/sugarcrm.conf
Edit the sugarcrm.conf to set the good information via vim or webi.
- asterisk -r
- xivo*CLI> dialplan reload
- xivo*CLI> dialplan show sub-sugarcrm
You need to add this subroutine in your DID for exemple on the webi.
Adding on your sheet model the variables :
- {dp-sugarcrm-lastname}
- {dp-sugarcrm-firstname}
Adding on sheet model action the value :
And authorize the popup url in xivo client.
Taken from : https://github.com/luisbarrueco/python_webservices_library/
To debugging the AGI edit the script for_xivo and change the debug value to 1. Change the default value with your value.
To launching the script :
- echo | ./for_xivo