Manual Page Result
0
Command: dialout | Section: 3 | Source: UNIX v10 | File: dialout.3
DIALOUT(3) Library Functions Manual DIALOUT(3)
NAME
dialout - place call on ACU
SYNOPSIS
int dialout(telno, class)
char *telno, *class;
DESCRIPTION
Dialout places a data call via an automatic calling unit directly at-
tached to the calling computer. To use an ACU on Datakit see the exam-
ple in ipc(3).
Dialout searches for an ACU of the appropriate service class and places
a data call on the associated line, using the given telephone number.
If successful, it returns an open file descriptor for the line. The
file is in raw mode, and has exclusive-use and hangup-on-close modes
set. It returns -1 if all ACUs of the given class are busy, -3 if car-
rier could not be set, and -9 if the service class is unidentifiable.
The routine consults a data file that consists of lines containing six
blank- or tab-separated fields.
service class Each line with a service class matching the one speci-
fied is tried in turn until an unoccupied one is found.
Service classes specify a switching office and a baud
rate.
Defined service classes at the `research' site are 300
and 1200, for 300- and 1200-baud calls on 665- phone
lines, with synonyms D300 and D1200. Internal calls on
these lines require 5 digits. Service classes C300 and
C1200 use 582- phone lines. Internal calls on these
lines require 4 digits and reach only other 582- lines.
file The file name of the associated special file for the
telephone line.
acu The file name of the associated ACU. If specified as
none, no ACU is used and the telephone number is ig-
nored. This is for hardwired connections.
speed The bit rate of the interface, chosen from the numbers
given in ttyld(4).
prefix A string to be prefixed to the number. This is handy
for shared ACUs in which the first digit specifies a
line. The prefix is taken to be an empty prefix.
postfix A string to be postfixed to the number to be dialed.
Some ACUs require an `end of number' code; it should be
specified here.
FILES
SEE ALSO
ttyld(4), cu(1), ipc(3)
DIALOUT(3)