-
Caller ID
I have created a simple caller ID application that simply listens to the modem and displays who is calling my phone line, it also displays the number of the person calling, and if that number matches up to my contact on file I displays the their name. Now I would like to take this to another level, and have it detect someone calling when I am online using dialup(which is rare but happens). How would I go about setting that up?
Has anyone done this, that can guide me in the right direction? Does anyone have any source code that I can go through to find what I need.
Any help is appreciated.
-
Re: Caller ID
When you are online are you using the same phone line that you use for your telephone?
-
Re: Caller ID
Yes, I am, only 1 phone line in house. It was pretty easy to create the Caller ID by its self, but I have some extra time and would like to make it into a more useful app.
-
Re: Caller ID
I don't think anyone on this forums has ever done something like that.
I sugest to get the manufacturer's manual for AT command set for the modem you are using, and find the AT command you have to give to the modem to get the coller ID while connected to internet.
And by the way, not all modems suport that, so make sure your modem supports that before you start.
-
Re: Caller ID
If you have Call Waiting service then when you get that beep to let you know that someone is calling, you can find that AT command and go from there.
-
Re: Caller ID
I do have Call Waiting. I am going to try and find the AT commands for my modem, and see where that will lead me.
-
Re: Caller ID
In your modem settings there is a setting to disable the call waiting beep so you may want that to be on instead.
-
Re: Caller ID
I was thinking about this, and I realized that i'ts not as easy as it seems.
First of all when you connect to the internet using the modem, that means that the modem port will be open at all times while on the internet.
When you want to issue an AT command, you have to open the port, and send the command to the modem through the comm port, but you won't be able to do it since windows has already opened the port to connect on the internet. You will get an error when you try to open the comm port.
Anyways, maybe I am wrong... but I don't think you can get the caller ID this way (with the AT commands).
I think maybe there is an API (since API means comunicating with windows), then theoretically the same process that opens the port to connect to the internet, that process has to get the caller ID while on the internet, since you can't open the port more than once. So if windows does that, then theoretically you should find an API that gives another process/program (your program) the caller id.
-
Re: Caller ID
RobDog888, I tried to find that setting so that I can enable the call waiting beep but was unsuccessful. I went into my Control Panel, Selected Phone and Modem, then selected my Modem, and there really isnt too much to configure in there, and I didnt see no option about Call Waiting.
CVMichael,
You have a point there. I was starting to think about that the same way. How can you make it listen if the port is open already :confused:
Would it be easier to first create and app that will let me know that someone is trying to access the line, so that I have a message display "Incoming Call" and once I get that squared away then try to insert the caller ID???
Any Ideas?
-
Re: Caller ID
I dont have a modem anymore but from memory it was in the configuration of the area code and if you needed to dial 9 to gain access to an outside line etc.
-
Re: Caller ID
Your right, its in there under area code rules. Call waiting is enabled on mine. There is no checkbox in Disable Call Waiting.
-
Re: Caller ID
What its it then? No option at all to enable or disable?
-
Re: Caller ID
What I meant to say in my last post was that the checkbox for "To Disable Call Waiting" is not checked. There is an option there, but it isnt selected. So currently my modem does allow Call Waiting. Should I disable Call Waiting?
-
Re: Caller ID
Not sure, if there is a AT code that is sent then you can identify when a second call comes through.
Also, the call waiting beep can sometimes through you off of your internet connection.
-
Re: Caller ID
could u post that vb application maybe for what u got working so far... would be interesting to look at and maybe use :D pm if u dont want everyone seeing
thanks
steve