OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: In ppp, how is dial and term different?
From: Alex Holst (angrygodoceanfree.net)
Date: Wed Dec 13 2000 - 22:06:39 CST


I have made a change of some sort that has caused my PPP to become sick. I can
currently do:

$ ppp foo
ppp ON wrath> term
deflink: Entering terminal mode on /dev/cua00
Type `~?' for help
atd1891150150
CONNECT 64000/ISDN/X75

(here I hit ~p, and PPP authenticates for me, based on the details in my
ppp.conf. That's great.)

However, since whatever change I made a few days ago, I can no longer use the
'dial' command:

$ ppp foo
ppp ON wrath> dial
ppp ON wrath> Warning: Chat script failed

This is the righthand side of /var/log/daemon:

ppp[2688]: tun0: Command: /dev/tty: dial
ppp[2688]: tun0: Phase: bundle: Establish
ppp[2688]: tun0: Phase: deflink: closed -> opening
ppp[2688]: tun0: Phase: deflink: Connected!
ppp[2688]: tun0: Phase: deflink: opening -> dial
ppp[2688]: tun0: Chat: Phone: 1891150150
ppp[2688]: tun0: Chat: deflink: Dial attempt 1 of 1
ppp[2688]: tun0: Chat: Send: AT\^M
ppp[2688]: tun0: Chat: Expect(3): OK
ppp[2688]: tun0: Chat: Received: AT\^M\^M
ppp[2688]: tun0: Chat: Received: OK\^M
ppp[2688]: tun0: Chat: Send: ATZ\^M
ppp[2688]: tun0: Chat: Expect(3): OK
ppp[2688]: tun0: Chat: Received: ATZS175=0\^M\^M
ppp[2688]: tun0: Chat: Received: OK\^M
ppp[2688]: tun0: Chat: Send: ATD1891150150\^M
ppp[2688]: tun0: Chat: Expect(15): CONNECT
ppp[2688]: tun0: Chat: Expect timeout
ppp[2688]: tun0: Warning: Chat script failed

It looks like there is simply no CONNECT coming back, right? Why is that? If I
can dial the number perfectly fine with a terminal, why can't PPP do it on
its own suddenly? As far as I can tell, the dial line in my ppp.conf correctly
waits for CONNECT. Any pointers appreciated.

default:
 set log Phase Chat LCP IPCP CCP tun command
 set device /dev/cua00
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 3 \"\" AT OK-AT-OK ATZ \
 ATD\\T TIMEOUT 15 CONNECT"
 allow users holsta
 add default HISADDR
 set timeout 0

foo:
 set phone 1891150150
 set authname ***
 set authkey ***

--
I prefer the dark of the night, after midnight and before four-thirty,
when it's more bare, more hollow.