I would like to know if there is a way programmatically to "listen" for incoming calls. The idea is to check the caller ID number against a database of contacts. If the user picks up the phone and the callerID matches a caller ID in the database, it would launch an application that would show information about that caller to the user.
Thank you in advance.
Jonathan
Intercept caller id on incoming calls - programming question
Moderators: Bill Smith, Pilot
Re: Intercept caller id on incoming calls - programming ques
You could modify the Spoofer to do that. You could also incorporate caller ID Name lookups with the Whitepages API.jfolland wrote:I would like to know if there is a way programmatically to "listen" for incoming calls. The idea is to check the caller ID number against a database of contacts. If the user picks up the phone and the callerID matches a caller ID in the database, it would launch an application that would show information about that caller to the user.
Thank you in advance.
Jonathan
You could also just sniff the wire, looking for the SIP packets, and execute your code appropriately.
It should be easy enough to do, it just depends on what OS you want to use, and what language you want to program in...
Re: Intercept caller id on incoming calls - programming ques
The Spoofer looks to me to intercept outbound calls. Am I incorrect? can it also intercept inbound calls?MagicHack wrote:You could modify the Spoofer to do that. You could also incorporate caller ID Name lookups with the Whitepages API.
You could also just sniff the wire, looking for the SIP packets, and execute your code appropriately.
It should be easy enough to do, it just depends on what OS you want to use, and what language you want to program in...
Thank you for pointing out the whitepages API. that is some cool stuff. It means if I do not have a number in my database, I can go there to retrieve information. Very cool.
Sniffing would seem like overkill to me to pull a few numbers out of a lot of communication data. It certainly is doable, but I would worry about impacting sound quality. Does the communication initiation occur on one port and the actual communication occur over another. If I am just listening on one port that is not carrying a lot of traffic, this would actually make a lot of sense. Anyone know the answer to this?
Thanks again.
-
hvlqodvhinIyc
- magicJack Apprentice
- Posts: 16
- Joined: Thu Jun 12, 2008 10:30 pm
Re: Intercept caller id on incoming calls - programming ques
SJPhone XML API's?jfolland wrote:I would like to know if there is a way programmatically to "listen" for incoming calls.
Re: Intercept caller id on incoming calls - programming ques
I think this is exactly what I was looking for.hvlqodvhinIyc wrote:SJPhone XML API's?jfolland wrote:I would like to know if there is a way programmatically to "listen" for incoming calls.
Thank you very much.
Jonathan