|
OK, I figured out what works. By default, FreePBX write this into the extensions_additional.conf file:
exten => cidlookup_1,1,Set(CALLERID(name)=${CURL(http://maint:@password!@127.0.0.1:80/admin/modules/superfecta/bin/callerid.php?thenumber=${CALLERID(num)})})
That doesn't work because of the "!" and the "@", for obvious reasons. You can escape the "!", but the "@" is used in that command, so you can't just escape it. The answer is to break out the username and pass from the URL, and escape the characters. I'm not sure how to modify the line to do this, but here is the curl command line it needs to pass:
curl -u maint:\@password\! http://localhost:80/admin/modules/superfecta/bin/callerid.php?thenumber=${CALLERID(num)
Make sense?
|