|
|||
Modem Telephone Dialing and CID Acquisition |
Home | John | Connie | Publications | Software | Correspondence | NtropiX | NdustriX | NformatiX | NdeX | Thanks
A modem can be used to acquire telephone Caller Identification Data, (CID,) and auto dial phone numbers remotely from a computer. Almost any modem manufactured in the last decade supports CID. The spcid from the sp.tar.gz source archive is a program written in C that interfaces a computer to a modem for acquisition of CID data, and auto dial telephone numbers from a database. The archive also contains a shell script database, phone.sh, for dialing numbers from a Unix/Linux tab delimited flat file, and the spgettermios and spsettermios programs which are useful for getting and setting serial port termios(3) attributes. Although there are command line options for configuration, the first few lines of each C program contains default "#define" statements for hard coding program parameters, such as area code, etc. The command to dial a number must be included in the phone.sh, that depends on the system configuration, too. Something like:
will work using a named pipe to dial numbers. For example,
The spcid
program also dials numbers from its stdin, (which can be a
named pipe, too-perhaps for network wide phone dialing,) and uses
A note about the C source code. The serial port routines were written for re-usability, and are a template for constructing serial port programs. As a demonstration, there are four additional programs, spttyS0, and, spttyS1, sprawS0, and, sprawS1, that demonstrate the simplicity of re-usability. The spttyS0 and spttyS1 programs are a 9600 baud serial port monitors, (useful as serial consoles,) and the sprawS0 and sprawS1 programs are 9600 baud serial communication programs for simple devices. LicenseA license is hereby granted to reproduce this software for personal, non-commercial use. THIS PROGRAM IS PROVIDED "AS IS". THE AUTHOR PROVIDES NO WARRANTIES WHATSOEVER, EXPRESSED OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, TITLE, OR FITNESS FOR ANY PARTICULAR PURPOSE. THE AUTHOR DOES NOT WARRANT THAT USE OF THIS PROGRAM DOES NOT INFRINGE THE INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY IN ANY COUNTRY. So there. Copyright © 1992-2006, John Conover, All Rights Reserved. Comments and/or problem reports should be addressed to:
|
Home | John | Connie | Publications | Software | Correspondence | NtropiX | NdustriX | NformatiX | NdeX | Thanks