Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/17/84; site milo.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!cwruecmp!milo!acy
From: acy@milo.UUCP (Adnan Yaqub)
Newsgroups: net.micro.att
Subject: Re: Unix PC 7300 modem
Message-ID: <663@milo.UUCP>
Date: Mon, 28-Oct-85 08:49:59 EST
Article-I.D.: milo.663
Posted: Mon Oct 28 08:49:59 1985
Date-Received: Wed, 30-Oct-85 04:46:14 EST
References: <362@sol1.UUCP>
Distribution: net
Organization: Allen-Bradley Co., Highland Heights, OH 44143
Lines: 42

> Does anyone know how to write C programs to access the Unix PC 7300 modem?
> There seems to be no documentation on /dev/ph1 ioctl()'s, or on how to
> run the dialer from a program.
> 
> Also, I can't get the dial(3) routine to do anything, all I can get is a
> -11 error return.  Does anyone have a code fragment for the 7300 which
> illustrates use of dial(3)?

I posted this once, but here it is again.  Note that the manual
page for dial is wrong.  It should read
	int dial(call)
	CALL call;
not
	int dial(call)
	CALL *call;

#include 
#include 

main()
	{
	CALL call;
	int error;
	unsigned sleep();

	call.attr = NULL;
	call.baud = NULL;
	call.speed = NULL;
	call.line = "/dev/ph0";
	call.telno = "9+4497455";
	call.modem = NULL;
	if((error = dial(call)) < 0)
		{
		printf("dial failed %d\n", error);
		return;
		}

	sleep(30);
	undial(error);
	}

I haven't figured out how to access the modem yet.