Mike,
I'm back.. I checked with the cnam provider to see if they had already made a script for this since they have some for asterisk, etc. They don't. But they are interested in making it work.
I have copied your entire script and am using it for incoming calls.
I did find out that the URL string I was previously provided with is wrong. Calleridservice.com gave me a new one to try.
I've pasted it in place of the old one in my dialplan. Also, where does the script find CID_USERNAME? I've pasted my username in place of that in the url script. So that line looks like this:
- Code: Select all
url = "http://cnam.calleridservice.com/query?u=uhf&k=#{CID_AUTHKEY}&n=#{name}&t=html"
It appears if I do not define WP_key the script will skip that? Is this correct? I don't want to use Whitepages at all.
- Code: Select all
DialPlan 20:59:12:985 sip1(1960): Using dialplan CNAM_lookup for In call to sip:sipsorceryusername@sipsorcery.com;rinstance=203215.
NewCall 20:59:12:985 sip1(1960): Executing script dial plan for call to sipsorceryusername.
DialPlan 20:59:13:031 sip1(1960): call from sip:phonenumber@66.193.176.35 to sipsorceryusername.
DialPlan 20:59:13:031 sip1(1960): ** Call from "UHF" <sip:phonenumer@66.193.176.35>;tag=3530638752-674829 to sipsorceryusername **
DialPlan 20:59:13:047 sip1(1960): There was a missing method exception in your dial plan: undefined method `name' for #<Object:0x000006a @cname=nil>.
DialPlan 20:59:13:047 sip1(1960): Dialplan cleanup for sipsorceryusername.
DialPlan 20:59:13:407 sip1(1960): Dial plan execution completed without answering and had an execution error message of Dial plan missing method.
DialPlan 20:59:13:407 sip1(1960): UAS call failed with a response status of 500 and Dial plan missing method.
If only I'd been born smarter instead of so darn good looking maybe I could make since of all this
Does the {name} in the URL string need to be defined somewhere or dies it already get defined behind the scenes somewhere by sipsorcery?
Thanks again for your help. I was able to find another ATA that makes it much easier to test than when I have free time rather than constantly reconfiguration the one that I use the rest of the time. Normally I bypass Sipsorcery since I don't have a big need for it other than to hopefully make this CNAM thing work!