I need to develop small utility to convert one format of Caller ID to other one. I have got US Robotics 56K USB Modem that supports Caller ID also my service provider (BT) enabled Caller ID feature for my line (number shows on handset).
I have modem, mentioned above, connected to the same line, but I don't know what format it gives the number or how can I get phone number only in C# Application.
On the US Robotics Website there is no developers guide to how the modem works.
I need some guidance.
According to their manual, you can use AT Commands to turn on caller ID (It's disabled by default) and retreive the caller:
+VCID - Caller ID (CID)
This command controls the reporting and presentation of data associated with the Caller ID services in the Incoming Call Line ID (ICLID) data format for the next call.
+VCID=<pmode>0 Disable Caller ID reporting. (Default.)
1 Enables Caller ID with formatted presentation to the DTE. The modem presents the data items in a pair format. The expected pairs are date, time, name, and caller code (telephone number),
2 Enables Caller ID with unformatted presentation to the DTE.
Retreiving:
+VRID - Report Retrieved Caller ID (CID)
This command reports the data associated with the Caller ID services in the Incoming Call Line ID (ICLID) data format for the last received call.
+VRID=<pmode>0 Reports Caller ID with formatted presentation to the DTE. The modem presents the data items in a pair format. The expected pairs are date, time, name, and caller code (telephone number),
1 Reports Caller ID with unformatted presentation to the DTE.
I'm not exactly sure how to communicate with a Modem over USB, back in my day it was all Serial Port (and there are COM-Port Libraries for C#), no idea if a USB Modem implements a virtual COM Port for compatibility with Terminal software. Before starting to do this from C#, it might be an option to use a Terminal Emulator (Windows used to come with HyperTerminal, but that was a long time ago) and just try talking to the Modem directly to figure out if and how the communication works.
I hope that helps a bit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With