/* biz22.c 4.2 83/06/15 */
#define DISCONNECT "\20\04" /* disconnection string */
static char *sccsid
= "@(#)biz22.c 4.2 %G%";
* Dial up on a BIZCOMP Model 1022 with either
* tone dialing (mod = "V")
* pulse dialing (mod = "W")
register int connected
= 0;
if (boolean(value(VERBOSE
)))
printf("\nstarting call...");
* Disable auto-answer and configure for tone/pulse
printf("can't initialize bizcomp...");
printf("can't set dialing mode...");
write(FD
, cbuf
, strlen(cbuf
));
printf("can't get dial tone...");
if (boolean(value(VERBOSE
)))
* The reply from the BIZCOMP should be:
connected
= detect("1\r");
sprintf(line
, "%d second dial timeout",
number(value(DIALTIMEOUT
)));
logent(value(HOST
), num
, "biz1022", line
);
biz22_disconnect(); /* insurance */
return (biz_dialer(num
, "W"));
return (biz_dialer(num
, "V"));
write(FD
, DISCONNECT
, 4);
signal(SIGALRM
, SIG_IGN
);
printf("\07timeout waiting for reply\n");
signal(SIGALRM
, biz22_abort
);
alarm(number(value(DIALTIMEOUT
)));
signal(SIGALRM
, SIG_DFL
);
signal(SIGALRM
, biz22_abort
);
alarm(number(value(DIALTIMEOUT
)));
signal(SIGALRM
, SIG_DFL
);