* Dial the DF02-AC or DF03-AC
#if defined(DF02) || defined(DF03)
return (df_dialer(num
, acu
, 0));
return (df_dialer(num
, acu
, 1));
df_dialer(num
, acu
, df03
)
int st
= MST
; /* Secondary Transmit flag, for speed select */
ioctl(f
, TIOCHPCL
, 0); /* make sure it hangs up when done */
printf("connection timed out\r\n");
if (boolean(value(VERBOSE
)))
ioctl(f
, TIOCGETP
, &buf
);
if (buf
.sg_ospeed
!= B1200
) { /* must dial at 1200 baud */
buf
.sg_ospeed
= buf
.sg_ispeed
= B1200
;
ioctl(f
, TIOCSETP
, &buf
);
ioctl(f
, TIOCMBIC
, &st
); /* clear ST for 300 baud */
ioctl(f
, TIOCMBIS
, &st
); /* set ST for 1200 baud */
signal(SIGALRM
, timeout
);
alarm(5 * strlen(num
) + 10);
write(f
, num
, strlen(num
));
buf
.sg_ispeed
= buf
.sg_ospeed
= speed
;
ioctl(f
, TIOCSETP
, &buf
);