Hello,
I am having trouble implementing diald. My chat script and ppp-on
routines all work (fine) when executed from the command line. But when
diald is managing things, it seems that either pppd or chat is not
letting the other programs know that it has finished OR pppd or chat
really are not finishing OR chat is working but either pppd or diald is
not seeing this. The end result is that I always get disconnected due
to connect script timeout no matter how high I set connect timeout
value. I've looked everywhere, and I really don't know what is wrong.
I think I've included all the relevant files below. TIA!
jeremy
-----------------------------------------------------------------------
[jeremy@twiki jeremy]$ tail -n 35 /var/log/messages
Aug 18 12:39:10 twiki diald[3587]: Calling site 192.168.0.2
Aug 18 12:39:11 twiki pppd[3658]: pppd 2.3.7 started by root, uid 0
Aug 18 12:39:11 twiki chat[3659]: abort on (ERROR)
Aug 18 12:39:11 twiki chat[3659]: abort on (BUSY)
Aug 18 12:39:11 twiki chat[3659]: abort on (NO CARRIER)
Aug 18 12:39:11 twiki chat[3659]: abort on (NO DIALTONE)
Aug 18 12:39:11 twiki chat[3659]: report (CONNECT)
Aug 18 12:39:11 twiki chat[3659]: send (ATZ^M)
Aug 18 12:39:11 twiki chat[3659]: timeout set to 5 seconds
Aug 18 12:39:11 twiki chat[3659]: expect (OK)
Aug 18 12:39:11 twiki chat[3659]: ATZ^M^M
Aug 18 12:39:11 twiki chat[3659]: OK
Aug 18 12:39:11 twiki chat[3659]: -- got it
Aug 18 12:39:11 twiki chat[3659]: send (ATDT*70,9720000^M)
Aug 18 12:39:11 twiki chat[3659]: timeout set to 50 seconds
Aug 18 12:39:11 twiki chat[3659]: expect (CONNECT)
Aug 18 12:39:11 twiki chat[3659]: ^M
Aug 18 12:39:37 twiki chat[3659]: ATDT*70,9720000^M^M
Aug 18 12:39:37 twiki chat[3659]: CONNECT
Aug 18 12:39:37 twiki chat[3659]: -- got it
Aug 18 12:39:37 twiki chat[3659]: send (^M)
Aug 18 12:39:37 twiki pppd[3658]: Serial connection established.
Aug 18 12:39:37 twiki pppd[3658]: Using interface ppp0
Aug 18 12:39:37 twiki pppd[3658]: Connect: ppp0 <--> /dev/ttyS1
Aug 18 12:39:44 twiki pppd[3658]: Remote message: ^@
Aug 18 12:39:44 twiki pppd[3658]: local IP address 12.77.60.130
Aug 18 12:39:44 twiki pppd[3658]: remote IP address 199.70.163.42
Aug 18 12:40:20 twiki diald[3587]: Connect script timed out. Killing
script.
Aug 18 12:40:20 twiki pppd[3658]: Terminating on signal 2.
Aug 18 12:40:26 twiki pppd[3658]: Connection terminated.
Aug 18 12:40:26 twiki pppd[3658]: Connect time 0.9 minutes.
Aug 18 12:40:26 twiki pppd[3658]: Sent 304 bytes, received 414 bytes.
Aug 18 12:40:26 twiki pppd[3658]: Exit.
Aug 18 12:40:27 twiki diald[3587]: Delaying 2 seconds before clear to
dial.
Aug 18 12:40:29 twiki diald[3587]: Calling site 192.168.0.2
Aug 18 12:40:30 twiki pppd[3681]: pppd 2.3.7 started by root, uid 0
-----------------------------------------------------------------------
[jeremy@twiki jeremy]$ cat /usr/sbin/ppp-on
#!/bin/sh
#
killall -9 pppd 2>/dev/null
rm -f /var/lock/LCK..* /var/run/ppp*.pid
rm -f /etc/ppp/report-chat
exec /usr/sbin/pppd connect \
"/usr/sbin/chat -v \
-r /etc/ppp/report-chat \
-f /etc/ppp/ppp.chatscript"
exit 0
-----------------------------------------------------------------------
[jeremy@twiki jeremy]$ cat /etc/ppp/ppp.chatscript
ABORT ERROR
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
REPORT CONNECT
"" "ATZ"
TIMEOUT 5
OK
"ATDT*70,9720000"
TIMEOUT 50
CONNECT
""
-----------------------------------------------------------------------
[jeremy@twiki jeremy]$ cat /etc/ppp/options
lock
debug
nobsdcomp
nodeflate
novj
novjccomp
defaultroute
noipdefault
modem
/dev/ttyS1
56700
crtscts
passive
asyncmap 0
user "[EMAIL PROTECTED]"
remotename *
-----------------------------------------------------------------------
[jeremy@twiki jeremy]$ cat /etc/diald.conf
mode ppp
connect /usr/sbin/ppp-on
disconnect /usr/sbin/ppp-off
device /dev/ttyS1
speed 57600
modem
lock
crtscts
local 192.168.0.1
remote 192.168.0.2
dynamic
defaultroute
include /usr/lib/diald/standard.filter
redial-timeout 2
connect-timeout 180
start-pppd-timeout 10
stop-pppd-timeout 10
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]