[comp.sys.amiga.programmer] Serial/Modem access for DIALING Phone numbers

dodd@seq.uncwil.edu (Mike Dodd) (05/27/91)

Would someone please help with a programming challenge.  I am
trying to write a database which will (on pressing a gadget)
dial a telephone number which is stored in a structure.  It is
a primative database at best, the dialing feature would be nice.

I have pdterm code, and the 1.1 RKMs.  The pdterm code (off one
of the early Fred Fish Disks) demonstrates a simple terminal
program, using a console device, serial device and an Intuition
Window (This is really more than needed, as I am trying to splice
out the console device, etc), the RKM's example is for a terminal
at 9600 baud attached to the serial port and it just dumps some
stuff to it (I suppose - I don't have a terminal attached).  I
tried adjusting that code to 2400 baud and dumping "ATDT 5551212"
and I get a quick SD RD flash and it finishes up.

I would like to be able to meld the code into a FOREVER loop
which polls the windows messages, when the user hits the DIAL_NUMBER
gadget it takes the text in the structure and 'shoots' it over to
the modem which dials the number and if it does not get a BUSY signal
it hangs up in 3 or so seconds, and waits for the next 'DIAL_NUMBER'
request.

If someone has some code which SIMPLY dials a number up and does 
nothing else with it I would truly be indebted to you.  It may be
that it is more complicated than it sounds, or it may be very simple.
I have tried and failed.

I am sure that others might not be too interested in seeing pages of
code, if there is an ftp site available, or someone could mail me
some example code, that would be great. 

Thanks in advance...

		-- Mike