Here's a patch that fixes the problem with modem syncronization

problems with tip.  There are some hardwired timeouts that ignores the
delay that you can set in the modem configuration file.  The hard-wire
delay is to short if the modem has to switch major modes and reset
(ie going from fax to data mode with a reset).

Now my modem transistions from HylaFax control to tip control and ppp mode
without any problems.

Submitted by:	Douglas Ambrisko <ambrisko@tcs.com>
This commit is contained in:
Paul Traina 1996-03-05 19:11:49 +00:00
parent 56f799e90c
commit 92b5c495f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14393

View File

@ -451,7 +451,7 @@ static int unidialer_dialer (register char *num, char *acu)
unidialer_modem_cmd (FD, init_string);
if (!unidialer_get_okay (250))
if (!unidialer_get_okay (reset_delay))
goto badsynch;
fflush (stdout);
@ -532,7 +532,7 @@ static void unidialer_disconnect ()
unidialer_modem_cmd (FD, escape_sequence);
acu_nap (timeout_value);
unidialer_modem_cmd (FD, hangup_command);
okay = unidialer_get_okay (250);
okay = unidialer_get_okay (reset_delay);
}
if (!okay)
{