Detect an incoming call.


Hi, I'm trying to write an app in XCode (Applescript Studio or something that will eventually allow me to run a script) that will detect an incoming call. The idea is that when the modem reports activity, my app detects it and "takes the call". If possible it would be great to know how to, once comunication is established, recognize for example if the caller presses a button and which one... or something like that.

I've been searching but could not find anything relevant. Thanks a lot!