pppd receives SIGHUP and chatscript tuning.

pppd receives SIGHUP and chatscript tuning.

Post by Daniel Livel » Sat, 19 Jul 1997 04:00:00



Hi, everybody... I've got some very curious problems
involving a linux box connecting to an ISP through
dialup on a standard original, a US Robotics Sportster
28.8

I've got pppd 2.7 patchlevel 0, and am instructing it
to "connect '/usr/sbin/chat -v -f /etc/ppp/chatscript'"
My chatscript is fairly standard, except that my ISP
requires a carriage return after connection before it
will give me a username: prompt.  As it stands, it expects
"V42BIS", the last thing on the connect line, and sends
"\n".  The script has to timeout and error before it will
actually send a CR.  I tried to make it timeout sooner to
speed up the connection process, but the "TIMEOUT 5" is
interpreted as expect "TIMEOUT" send "5". If anybody has a
solution to this, I'd appreciate it, but it's not my main
problem. The primary problem follows my chatscript:

TIMEOUT 45
ABORT '\nNO CARRIER\r'
ABORT '\nNO ANSWER\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
OK ATM0&C1&D2
OK ATDT[TheNumber]
"V42BIS" "\n"
"name:--name:" chris
"word:" *******

After about an average of 11 minutes, my connection
drops. No warnings, no peculiar messages, no pattern
to whatever I'm actually doing on the network...
pppd just dies. From a SIGHUP. Here's a bit of my syslog.

Jul 18 10:06:44 bakerst pppd[539]: pppd 2.2.0 started by root, uid 0
Jul 18 10:06:45 bakerst chat[540]: timeout set to 45 seconds
Jul 18 10:06:45 bakerst chat[540]: abort on (\nNO CARRIER\r)
Jul 18 10:06:45 bakerst chat[540]: abort on (\nNO ANSWER\r)
Jul 18 10:06:45 bakerst chat[540]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jul 18 10:06:45 bakerst chat[540]: send (^MAT^M)
Jul 18 10:06:45 bakerst chat[540]: expect (OK)
Jul 18 10:06:46 bakerst chat[540]: ^MAT^M^M
Jul 18 10:06:46 bakerst chat[540]: OK -- got it
Jul 18 10:06:46 bakerst chat[540]: send (AT&C1&D2^M)
Jul 18 10:06:46 bakerst chat[540]: expect (OK)
Jul 18 10:06:46 bakerst chat[540]: ^M
Jul 18 10:06:46 bakerst chat[540]: AT&C1&D2^M^M
Jul 18 10:06:46 bakerst chat[540]: OK -- got it
Jul 18 10:06:46 bakerst chat[540]: send (ATDT[TheNumber]^M)
Jul 18 10:06:46 bakerst chat[540]: expect (V42BIS)
Jul 18 10:06:46 bakerst chat[540]: ^M
Jul 18 10:07:03 bakerst chat[540]: ATDT[TheNumber]^M^M
Jul 18 10:07:03 bakerst chat[540]: CONNECT 31200/ARQ/V34/LAPM/V42BIS --
got it
Jul 18 10:07:03 bakerst chat[540]: send (^J^M)
Jul 18 10:07:03 bakerst chat[540]: expect (name:)
Jul 18 10:07:03 bakerst chat[540]: ^M
Jul 18 10:07:48 bakerst chat[540]: alarm
Jul 18 10:07:48 bakerst chat[540]: send (^M)
Jul 18 10:07:48 bakerst chat[540]: expect (name:)
Jul 18 10:07:48 bakerst chat[540]: ^M
Jul 18 10:07:48 bakerst chat[540]: ^M
Jul 18 10:07:48 bakerst chat[540]: User Access Verification^M
Jul 18 10:07:48 bakerst chat[540]: ^M
Jul 18 10:07:48 bakerst chat[540]: Username: -- got it
Jul 18 10:07:48 bakerst chat[540]: send ([TheName]^M)
Jul 18 10:07:48 bakerst chat[540]: expect (word:)
Jul 18 10:07:48 bakerst chat[540]:  [TheName]^M
Jul 18 10:07:48 bakerst chat[540]: Password: -- got it
Jul 18 10:07:48 bakerst chat[540]: send ([ThePassword]^M)
Jul 18 10:07:48 bakerst pppd[539]: Serial connection established.
Jul 18 10:07:49 bakerst pppd[539]: Using interface ppp0
Jul 18 10:07:49 bakerst pppd[539]: Connect: ppp0 <--> /dev/cua1
Jul 18 10:07:53 bakerst pppd[539]: local  IP address 207.174.97.18
Jul 18 10:07:53 bakerst pppd[539]: remote IP address 207.174.97.1
Jul 18 10:18:50 bakerst pppd[539]: Hangup (SIGHUP)
Jul 18 10:18:50 bakerst pppd[539]: Modem hangup
Jul 18 10:18:50 bakerst pppd[539]: Connection terminated.
Jul 18 10:18:50 bakerst pppd[539]: Exit.
Jul 18 10:18:50 bakerst pppd[570]: Hangup (SIGHUP)

If anybody has any clues, I'm having this identical problem
on several Linux machines. Thanks in advance...
--
Chris           |  Infinity is where things happen