How do I find caller information in Cocoa?

In particular, I have an Apple USB modem that says it supports Caller ID, and I want my application to be able to find out when the call comes in and whose call. In the future I can add dialing capabilities, etc., but the cart to the horse. Caller ID - Stop It!

However, I can't believe it proved that it turned out that even one example is ANYWHERE (I chose CRAP from this!), But can someone show me how to make a basic definition of the caller ID on a Mac application? I would prefer Cocoa, but I will be ready to go Carbon if I should.

Now Iโ€™m not looking for an example of the full telephony API, although, again, I will go along this route if necessary, but I canโ€™t even find it! Found this everywhere on the Windows side, but can't find the damn thing on the Mac!

+4
source share
4 answers

As mentioned elsewhere , you can (and for me) use screen /dev/tty.usbmodem00001 or some of them to access the modem directly from the terminal, send AT commands or see RINGs and CallerID (after switching on via AT or NCID ) They also go through the use of the minicomputer, as described above.

Googling /dev/tty mac callerid shows a lot of ideas.

As for writing software, I think that NCID will be either useful (there is also a leverage plugin!), Or it can serve as an example of code. See Mac installation instructions , specifically under TEST USING A MODEM . Here's an example of an NCID extension to run your own program / script with CallerID information.

+1
source

The man who goes to the old school. For five years I have not seen anything related to analog modems. I know that on the same day, even the NextStep modem was included in BSD and written in C. I donโ€™t think there was ever an Objective-C API for all this. Today it is all volIP.

Asterisks looks like you could use.

0
source

Can you talk to the modem using Hayes commands? Then I think you should be able to enable the caller id feature with

 AT#CID=1 

If you need a terminal program to talk to the modem, I can recommend minicom . I got it to compile for mac just now with

 LIBS=-liconv ./configure ; make ; sudo make install 

I do not know how the caller ID will be displayed, but I think that with the help of the terminal program you should see this, probably, when RING is output from the modem.

What's new? Maybe it could be start

Then back to Cocoa, how to talk with a modem? See discussion

This page discusses the caller ID, interesting. Apparently caller ID and more comes out after the first RING

0
source

This is much more complicated than you think, because there is no API to control the modem.

Asterisk mentioned above in TechZen is a good reference, but Asterisk does not have a driver for the USB modem that you are trying to use. People at Sunrisetel have started writing a driver for Appleโ€™s USB tethering, but I'm not sure they didnโ€™t abandon it at the same time: see Afelio

Quote from the Afelio page:

A media server is currently being developed for the Motorola SM56 modem, used by Apple on the latest Mac computers and an external USB USB modem.

-one
source

All Articles