-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 20 Jan 2000 22:26:54 -0800 (PST), Rasmus Tamstorf <[EMAIL PROTECTED]>
wrote:
> Jan 19 23:38:57 localhost chat[4891]: send (ATDT<our-phone-number>^M)
> Jan 19 23:38:57 localhost chat[4891]: expect (CONNECT)
> Jan 19 23:38:57 localhost chat[4891]: ^M
> Jan 19 23:39:42 localhost chat[4891]: alarm
> Jan 19 23:39:42 localhost pppd[4890]: Connect script failed
You send the modem the ATDT<number> string. It sends back a ^M. 45 seconds
pass during which the modem doesn't send anything _at all_ back to the
chat script (which is waiting for a CONNECT). The "alarm" means it timed
out; that's why it failed.
In other words, you are either not connecting within that 45 seconds, or
your modem is not sending CONNECT to your host (at least in a way the
host can recognize) when it connects. Sit down with a terminal program
and a stopwatch, and you should be able to figure out which one it is.
You obviously have verbal result codes enabled, as I saw an OK from your
modem earlier in the logs. It is unlikely but quite possible to take more
than 45 seconds to dial and negotiate. Also double-check the phone number.
If none of that is it, you could possibly have one of the rare but nonetheless
extremely annoying modems that switches port speed when it connects. (I would
still expect to see a CONNECT message at the _old_ port speed before the
switch, though.) Again, try it "by hand" first.
> 'OK' 'ATDT<our-phone-number>'
> 'CONNECT' \d\c
>
> The last '\c' is crucial to avoid getting thrown off immediately.
No, it is never getting to that part, at least in the attempt for which
you posted a log. It is timing out while waiting for the CONNECT. It
never even tries to send the response.
> the other end picks up and starts chatting, but it seems like pppd never
> starts listening for the PAP stuff.
Right. Unless the chat script sees CONNECT, it'll never succeed. If the
chat script fails, pppd doesn't even bother trying to talk.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE4iNTHaUcn3WjV8goRAjl/AKCJ9/STWTO69VoiZAB3ryc7iRWlzgCgyse6
2ylFB0ItxnOjo2W0GJz6SGE=
=XwFY
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]