Caller's name lookup
Re: Caller's name lookup
Thank you for all your help, Mike.
Feedback concerning special characters: works flawless on softphones PhonerLite and NinjaLite (both Windows) and on Sipdroid (Android). I cannot test it on my "real" phones as feature not supported by my DSL/VoIP router. Neither does fring support sending of additional information.
Feedback concerning special characters: works flawless on softphones PhonerLite and NinjaLite (both Windows) and on Sipdroid (Android). I cannot test it on my "real" phones as feature not supported by my DSL/VoIP router. Neither does fring support sending of additional information.
Re: Caller's name lookup
It works fine with Bria. I also tried AGEphone under Windows Mobile, it wouldn't properly display umlauts and other fancy chars (this doesn't affect the calls, though). Yet I noticed that fancy chars appear as '?' (single question mark) in the Console.
I'm hoping to get a word of advice (how to deal with UTF-8 fancy chars) from the guru (Aaron). Will update the code, if necessary.
I'm hoping to get a word of advice (how to deal with UTF-8 fancy chars) from the guru (Aaron). Will update the code, if necessary.
Re: Caller's name lookup
Mike,
I have an issue with a local CLEC that doesn't register CNAM info and instead sends "CITY ST". These numbers generally show the callers name in Whitepages searches. I'd like to add a way to your script to search for the specific CITY ST pattern in the CNAM and if found, search Whitepages. Would you be willing to help me with this?
Thanks
I have an issue with a local CLEC that doesn't register CNAM info and instead sends "CITY ST". These numbers generally show the callers name in Whitepages searches. I'd like to add a way to your script to search for the specific CITY ST pattern in the CNAM and if found, search Whitepages. Would you be willing to help me with this?
Thanks
Re: Caller's name lookup
I'll try. Add this debug line:
sys.Log("** Call from #{req.Header.From} to #{req.URI.User} **")
to your "In" dialplan and show me what you get in the Console on incoming calls.
sys.Log("** Call from #{req.Header.From} to #{req.URI.User} **")
to your "In" dialplan and show me what you get in the Console on incoming calls.
Re: Caller's name lookup
thanks, Mike.
I've added the line now I have to wait for someone to call that uses that provider.
I've added the line now I have to wait for someone to call that uses that provider.
Re: Caller's name lookup
Mike, here's what I get:
DialPlan 16:57:14:162 sip1(27616): ** Call from "INDEPENDENCE IA" <sip:1319334xxxx@xx.xxx.xxx.xx>;tag=3505481831-311232 to username **
Thanks for your help
DialPlan 16:57:14:162 sip1(27616): ** Call from "INDEPENDENCE IA" <sip:1319334xxxx@xx.xxx.xxx.xx>;tag=3505481831-311232 to username **
Thanks for your help
Re: Caller's name lookup
If 1319334xxxx number is listed (in the White Pages), my code should be able to return caller's name. If it didn't happen then I suspect it can't be done with existing code (see this page). In a nutshell, some parts of the White Pages database are not available via API, you only can get this information online.
Re: Caller's name lookup
Mike,
I misunderstood for some reason thinking that if the SIP provider sent CNAM info that would be passed, and the lookup would occur only if no CNAM was sent. I'm not sure why I was thinking that. Disregard!
I misunderstood for some reason thinking that if the SIP provider sent CNAM info that would be passed, and the lookup would occur only if no CNAM was sent. I'm not sure why I was thinking that. Disregard!
Re: Caller's name lookup
"Display name" portion of URI is always substituted: by Caller's name, if we can retrieve it from CNAM hash or WhitePages db, or by caller's number. The reason we always do that is that some providers (IPKall, for example) supply Display name in "City, State" format and some programs (e.g. Bria, X-Lite) do not tolerate a comma in this field.
Of course, it's possible to keep original Display name for some incoming calls (for example, if caller's number matches a certain pattern, such as "begins with 1319").
Of course, it's possible to keep original Display name for some incoming calls (for example, if caller's number matches a certain pattern, such as "begins with 1319").
Re: Caller's name lookup
Old thread, and it's been awhile since I've posted here, but CNAM has gone downhill fast. Many numbers are no longer available from WhitePages, but I found a paid service that works great. However, I don't understand Ruby or the White Pages API enough to make the change.
Here's the API query:
It simply returns:
SUBSCRIBER NAME
and nothing else.
Any help appreciated.
Here's the API query:
Code: Select all
http://cnam.calleridservice.com/query?u=[USER]&k=[APIKEY]&n=[5555551212]
SUBSCRIBER NAME
and nothing else.
Any help appreciated.