dolibarr  7.0.0-beta
cidlookup.php File Reference

Script to search companies names based on incoming calls, from caller phone number. More...

Go to the source code of this file.

Detailed Description

Script to search companies names based on incoming calls, from caller phone number.

Remarks
To use this script, your Asterisk must be compiled with CURL, and your dialplan must be something like this:

exten => s,1,Set(CALLERID(name)=${CURL(http://IP-DOLIBARR:80/asterisk/cidlookup.php?phone=${CALLERID(num)})})

Change IP-DOLIBARR to the IP address of your dolibarr server

Definition in file cidlookup.php.