[net.micro.att] Using dial

3215sc@mtuxn.UUCP (S.COFFIN) (07/12/85)

Here are some tips on using dial(3) on the AT&T UNIX PC 7300:
	1) because of a bug in the library, you cannot use
dial(3) as it is delivered in libc.a  You MUST use the shared
library version.  See below for a short main and makefile.
	2)  Be sure to run undial(3) when you're done, or
the system state will not be reset correctly, and the telephone
manager will become ill.
	3)  look at /usr/include/phone.h for the basic ioctl
calls for the telephone manager.
	4)  there is no written documentation on the 7300
telephone subsystems at this time
	5)  good luck!		=S.Coffin AT&T-IS (mtuxn!3215sc)
===============================  m.c follows ===================
#include <dial.h>
main() {
	CALL call;
	int fd, i, c;
	short ss;

	call.attr = NULL;
	call.baud = 1200;
	call.speed = 1200;
	call.line = "/dev/ph1";
	call.telno = "166";
	call.modem = 0;

	fd = dial( call );
	undial( fd );
}
=========================  makefile follows ===============
include $(MAKEINC)/Makepre.h

all:	m

m:	m.o
	$(LD) $(SHAREDLIB) m.o -o m
============================================================