[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: yet another ppp failure story...



On Thu, Dec 21, 2000 at 07:59:17PM -0500, W. Crowshaw wrote:
> At 11:04 AM -0800 12/20/00, Dwight Johnson wrote:
> >On Wed, 20 Dec 2000, W. Crowshaw wrote:
> >
> >>  At 5:42 PM -0800 12/19/00, Dwight Johnson wrote:
> >>  >
> >>  >Show us your chatscript.
> >>  >
> >>
> >>  My chat script looks like this:
> >>  'TIMEOUT' '30'
> >>  'ABORT' 'BUSY'
> >>  'ABORT' 'NO CARRIER'
> >>  'ABORT' 'NO ANSWER'
> >>  'ABORT' 'NO DIALTONE'
> >>  'ABORT' 'RING'
> >>  'ABORT' '% User/password invalid'
> >>  '' 'ATZ'
> >>  'OK-+++\c-OK' 'AT &F1 L W2 Q0 V1 E1 &D2 &C1 S0=0 S7=150+MS=56'
> >>  'OK' 'ATDT5551000'
> >>  'CONNECT 42000' ''
> >>  'User Access Verification--User Access Verification' ''

<snip>

> As you can see, my script only works (now) -- that is, actually goes 
> through the authentification process -- iff the CONNECT speed matches 
> 42000.  Considering that this speed can change upon each connection, 
> this is one bug from the script.

Yes, it is.  It would be unreliable on any system for that reason.
(Your distribution doesn't control the negotiated speed, that's up to
your phone line quality, the modems and phase of the moon.)

So change the 'CONNECT 42000' to 'CONNECT'.

-- 
CueCat decoder .signature by Larry Wall:
#!/usr/bin/perl -n
printf "Serial: %s Type: %s Code: %s\n", map { tr/a-zA-Z0-9+-/ -_/; $_ = unpack
'u', chr(32 + length()*3/4) . $_; s/\0+$//; $_ ^= "C" x length; } /\.([^.]+)/g; 



Reply to: