I’ve having some trouble with setting up a custom cidlookup. I’ve added the source via HTTP get. This should be pulling from a local server here I have setup specifically for this. I also added source to the inbound routes.
The odd thing is it don’t work. It’s not even querying the HTTPd at all.
Here’s a post from /etc/asterisk/extensions_additional.conf
[cidlookup]
include => cidlookup-custom
exten => cidlookup_1,1,Set(CURLOPT(httptimeout)=7)
exten => cidlookup_1,n,Set(CALLERID(name)=${CURL(http://192.168.0.176:80/phoneCID.asp?phonenumber=${CALLERID(num)})})
exten => cidlookup_1,n,Return()
exten => cidlookup_return,1,ExecIf($["${DB(cidname/${CALLERID(num)})}" != “”]?Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})}))
exten => cidlookup_return,n,Return()
;–== end of [cidlookup] ==–;
A grep of the logs shows no results for “192.168.0.176” which is consistent as I see no hits to the httpd from the asterisk box.
Any advise would be much appreciated.
------------- EDIT ------------------
I found CURL was not installed.
I was able to install it without having to recompile:
yum install asterisk18-curl
then in the CLI;
core restart now
curl is loaded and working, now everything is happy.