Chris Nelson
2006-06-12 17:45:22 UTC
The chat man page gives an example of how to use HANGUP in a callback
environment:
ABORT `BUSY'
OK\r\n ATD1234567
\r\n \c
CONNECT \c
`Callback login:' call_back_ID
HANGUP OFF
ABORT "Bad Login"
`Callback Password:' Call_back_password
TIMEOUT 120
CONNECT \c
HANGUP ON
ABORT "NO CARRIER"
ogin:--BREAK--ogin: real_account
etc ...
but this seems to be for basic serial communication, not PPP. It seems
to me that if I use a chat script for pppd's connect option, pppd is
going to wait for that script to exit before doing any LCP, etc. so
this script/technique can't be used for callback with pppd. Am I right?
environment:
ABORT `BUSY'
OK\r\n ATD1234567
\r\n \c
CONNECT \c
`Callback login:' call_back_ID
HANGUP OFF
ABORT "Bad Login"
`Callback Password:' Call_back_password
TIMEOUT 120
CONNECT \c
HANGUP ON
ABORT "NO CARRIER"
ogin:--BREAK--ogin: real_account
etc ...
but this seems to be for basic serial communication, not PPP. It seems
to me that if I use a chat script for pppd's connect option, pppd is
going to wait for that script to exit before doing any LCP, etc. so
this script/technique can't be used for callback with pppd. Am I right?