Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a phone book, this phone book must show the number of those how call me so I can get the caller number or ID by my software

I have written the software that get the persons number and call them so I am sure my modem supports it.

Now i want to write software in C# to get the phone number of those how are calling my home phone and show it in a text box. Just the number and other things are not matter.

How can I get the caller ID in c#?
Posted
Updated 11-Aug-11 11:40am
v2
Comments
Kim Togo 10-Aug-11 12:51pm    
What type of media: Cellphone, VOIP, TAPI what?

Are you talking about a mobile phone, a VoIP deployment or your home phone?

If it's your home phone, not likely going to happen. You could, in theory, write something at the modem level, but that's a big task for someone just starting out.

For mobile phone, again, not likely going to happen. The phone owns the call chain and I don't think there's an API to access call history in WP7.

For VoIP, you'll need to start by finding a .Net library for the VoIP system in question. At that point you can evaluate events from the virtual call manager or read CDR logs.

Cheers.
 
Share this answer
 
Great, so if you've worked at that level of coding before, we just need to know where it is you're having trouble.

Here's a number of articles here on CP[^] based on a serial port modem search.

And here's a way to test for caller id support on your modem, along with the sample result string: https://secure.mtnsys.com/Pages/howto/htmdmtst.htm[^].

It says that "AT#CID=1 or AT+VCID=1" are the strings that most modems use to activate call id on the unit itself. You'll need to check your modem documentation if that's not correct in your case.

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900