Xenix dial() function in C program

Mark J. Bailey root at mjbtn.MFEE.TN.US
Sat Feb 11 01:31:53 AEST 1989


In article <270 at psm.UUCP>, jct at psm.UUCP (John Tompkins) writes:
> Help! I'm trying to get the dial() library function (under system
> services in the Xenix manual) to work. No matter what I do, I can't
> figure it out. If I dont give a specific device I get error NO_BD_A,

Sometime ago, some replacement dial routines were posted to comp.sources.unix.
I believe they are named, v06i08[6-8].  I installed them on my SCO Xenix 
system and they worked beautifully!!!  There are two main parts to the
package, dialer (an executable for dialing from the shell), and a small
dial(3) library to replace the builtin dial(3) routines (by use of -ldial).
The real beauty in these routines is that it has a state transition database
that the routines access, dialinfo, in which you can program "expect-send"
sequences to talk with the modem (this would allow you to configure any
modem, even on a port multiplexer) as well as other things such as variable
time-out, time-out recovery, hanging-up the modem for a second, a goto for
looping, etc.  We used it here to talk to our QNET box which had a modem
connected on an in/out port.  When we first connect, our dialinfo state 0 
(or line 0) sends CR followed by two line BREAKs and a delay, then waits
for the QNET prompt.  Upon receiving that, we transfer to another state (line#)
and begin the acquisition of the port.  I won't bore you further, ;-), but
I guess my point is is that it is a FANTASTIC package and miles above the
builtin xenix dial(3) routines.  It compiles with little or no trouble and
the packaged dialinfo already has scripts for hayes and vadic modems.

Just thought I would toss in my $0.02 worth.  Hope it might be of some
help.

Mark.

-- 
Mark J. Bailey                                    "Ya'll com bak naw, ya hear!"
USMAIL: 511 Memorial Blvd., Murfreesboro, TN 37129 ___________________________
VOICE:  +1 615 893 0098                            |         JobSoft
UUCP:   ...!{ames,mit-eddie}!killer!mjbtn!mjb      | Design & Development Co.
DOMAIN: mjb at mjbtn.MFEE.TN.US                       |  Murfreesboro, TN  USA



More information about the Comp.unix.xenix mailing list