Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site mtuxn.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!mtuxo!mtuxn!3215sc
From: 3215sc@mtuxn.UUCP (S.COFFIN)
Newsgroups: net.micro.att
Subject: Using dial(3) on AT&T PC7300
Message-ID: <583@mtuxn.UUCP>
Date: Fri, 12-Jul-85 13:19:09 EDT
Article-I.D.: mtuxn.583
Posted: Fri Jul 12 13:19:09 1985
Date-Received: Sat, 13-Jul-85 11:57:58 EDT
Organization: AT&T Information Systems, Holmdel NJ
Lines: 37

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 
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
============================================================