Intercept caller id on incoming calls - programming question

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
jfolland
MagicJack Newbie
Posts: 5
Joined: Fri Jul 04, 2008 1:59 pm

Intercept caller id on incoming calls - programming question

Post by jfolland »

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
MagicHack
Dan isn't smart enough to hire me
Posts: 241
Joined: Mon Nov 12, 2007 4:11 pm
Contact:

Re: Intercept caller id on incoming calls - programming ques

Post by MagicHack »

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 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...
jfolland
MagicJack Newbie
Posts: 5
Joined: Fri Jul 04, 2008 1:59 pm

Re: Intercept caller id on incoming calls - programming ques

Post by jfolland »

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...
The Spoofer looks to me to intercept outbound calls. Am I incorrect? can it also intercept inbound calls?

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

Post by hvlqodvhinIyc »

jfolland wrote:I would like to know if there is a way programmatically to "listen" for incoming calls.
SJPhone XML API's?
jfolland
MagicJack Newbie
Posts: 5
Joined: Fri Jul 04, 2008 1:59 pm

Re: Intercept caller id on incoming calls - programming ques

Post by jfolland »

hvlqodvhinIyc wrote:
jfolland wrote:I would like to know if there is a way programmatically to "listen" for incoming calls.
SJPhone XML API's?
I think this is exactly what I was looking for.

Thank you very much.

Jonathan
Post Reply