Skip to main content
GameDev.net gamedev.net
🔒 Locked

automated phone call program

Started by kyron21 Nov 26, 2008 at 10:25 PM 3 replies 1.1k views
Original Post
kyron21
kyron21
I need to write a program in C++ for a linux server to call my cell phone depending on certain conditions passed to the program. Can anyone point me in the right direction as to what I should research to do this? Thank you, J. Fluhmann
Hodgman
Hodgman
There is a Telephony API for windows called TAPI... but obviously this is no good for linux, so you'll have to search for it's competitors. "Telephony application" will probably be a decent search term to begin with.

Alternatively, check out the specs for your dial-up/voice modem, and see if it lists any APIs that it is compatible with.
mb108
mb108
Depending on what you are doing, Asterisk is either 'really cool' or 'total overkill.'

Another option is the kernel API.
dwahler
dwahler
You're going to need some point of interface between your software and the public phone network. There are two main ways to accomplish this: one is to get a hardware interface (technically called an FXO) that plugs into a standard analog phone line, and communicates with your software via a kernel driver. The other is to subscribe to a voice-over-IP provider and communicate with their server over the Internet, probably using the SIP protocol. As far as I know, either one of these approaches can be used with Asterisk.
Adam_42
Adam_42
If you have a modem plugged in I believe it should be as simple as sending "ATDT " to the appropriate COM port. You can hang up with +++ (standard escape sequence) followed by ATH.

A more complete list of commands is at http://www.zoltrix.com/support_html/modem/USEMODEM.HTM

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.