Date: Wed, 11 Sep 2002 14:19:25 -0700 From: Darren Pilgrim <dmp@pantherdragon.org> To: freebsd-questions@freebsd.org Subject: Removing "Chat" from ppp log setting==non-working config? Message-ID: <3D7FB35D.ED0A08DC@pantherdragon.org>
index | next in thread | raw e-mail
[-- Attachment #1 --]
I'm using the userland ppp program with an OEM USR 56k faxmodem,
product ID 66297700, flash and dsp v5.20.4. I have the following
working configuration in my /etc/ppp/ppp.conf:
### BEGIN ppp.conf ###
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $
default:
set log Phase Chat TUN
ident user-ppp VERSION (built COMPILATIONDATE)
set device /dev/cuaa2
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 10 \
\"\" AT OK-AT-OK AT&F1 OK ATL0S11=40 OK \
\\dATDT*70,\\T TIMEOUT 40 CONNECT"
disable dns
verizon:
set phone "5032945600|5036260996|5036772210"
set authname ********
set authkey ********
set login "TIMEOUT 10 \"\" \"\" gin:--gin: \\U word: \\P \
TIMEOUT 10 "Session" ~p"
set timeout 0
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255
# add default HISADDR
#### END ppp.conf ####
When I issue `ppp -background verizon` it yields the terminal and
ppp.log output found in in the attached "working_conf.out".
To reduce the log output, I want to remove "Chat" from the "set log..."
line. If I do that, however, I get no sound of the modem picking up
and dialing, and ppp eventually times out, telling me the chat script
failed, exiting with "Child failed (errdead)", and yielding the
terminal and ppp.log output found in the attached "broken_conf.out".
No other changes are made to the configuration file. I stop the ppp
session each time by issuing 'kill -INT `cat /var/run/tun0.pid`'.
[-- Attachment #2 --]
shell:
Working in background mode
Using interface: tun0
PPP enabled
/var/log/ppp.log:
Sep 11 14:04:20 sparx ppp[49688]: Phase: Using interface: tun0
Sep 11 14:04:20 sparx ppp[49688]: Phase: deflink: Created in closed state
Sep 11 14:04:20 sparx ppp[49698]: tun0: Phase: PPP Started (background mode).
Sep 11 14:04:20 sparx ppp[49698]: tun0: Phase: bundle: Establish
Sep 11 14:04:20 sparx ppp[49698]: tun0: Phase: deflink: closed -> opening
Sep 11 14:04:20 sparx ppp[49698]: tun0: Phase: deflink: Connected!
Sep 11 14:04:20 sparx ppp[49698]: tun0: Phase: deflink: opening -> dial
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Phone: 5032945600
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: deflink: Dial attempt 1 of 1
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Send: AT^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Expect(10): OK
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Received: AT^M^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Received: OK^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Send: AT&F1^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Expect(10): OK
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Received: AT&F1^M^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Received: OK
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Send: ATL0S11=40^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Expect(10): OK
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Received: ^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Received: ATL0S11=40^M^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Received: OK^M
Sep 11 14:04:20 sparx ppp[49698]: tun0: Chat: Send: ATDT*70,5032945600^M
Sep 11 14:04:22 sparx ppp[49698]: tun0: Chat: Expect(40): CONNECT
Sep 11 14:04:51 sparx ppp[49698]: tun0: Chat: Received: ATDT*70,5032945600^M^M
Sep 11 14:04:51 sparx ppp[49698]: tun0: Chat: Received: CONNECT
Sep 11 14:04:51 sparx ppp[49698]: tun0: Phase: deflink: dial -> carrier
Sep 11 14:04:52 sparx ppp[49698]: tun0: Phase: deflink: /dev/cuaa2: CD detected
Sep 11 14:04:52 sparx ppp[49698]: tun0: Phase: deflink: carrier -> login
Sep 11 14:04:52 sparx ppp[49698]: tun0: Chat: Send: ^M
Sep 11 14:04:52 sparx ppp[49698]: tun0: Chat: Expect(10): gin:
Sep 11 14:04:52 sparx ppp[49698]: tun0: Chat: Received: 42666/ARQ/V90/LAPM/V42BIS^M
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received: ^M
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received:
Sep 11 14:04:53 sparx last message repeated 23 times
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received: UQKT2 tnt2.portland.or.da.uu.net^M
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received: ^M
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received: ^M
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received: Login:
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Send: ********^M
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Expect(10): word:
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received: ********^M
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received: Password:
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Send: \P
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Expect(10): Session
Sep 11 14:04:53 sparx ppp[49698]: tun0: Chat: Received: ^M
Sep 11 14:04:54 sparx ppp[49698]: tun0: Chat: Received: Entering PPP Session.^M^M
Sep 11 14:04:54 sparx ppp[49698]: tun0: Chat: Send: ~p^M
Sep 11 14:04:54 sparx ppp[49698]: tun0: Phase: deflink: login -> lcp
Sep 11 14:04:56 sparx ppp[49698]: tun0: Phase: deflink: lcp -> open
Sep 11 14:04:56 sparx ppp[49698]: tun0: Phase: bundle: Network
Sep 11 14:04:57 sparx ppp[49698]: tun0: Chat: Parent notified of success
Sep 11 14:04:57 sparx ppp[49688]: tun0: Phase: Parent: PPP enabled
[-- Attachment #3 --]
terminal:
# ppp -background verizon
Working in background mode
Using interface: tun0
Child failed (errdead)
#
/var/log/ppp.log:
Sep 11 14:12:49 sparx ppp[53072]: Phase: Using interface: tun0
Sep 11 14:12:49 sparx ppp[53072]: Phase: deflink: Created in closed state
Sep 11 14:12:49 sparx ppp[53105]: tun0: Phase: PPP Started (background mode).
Sep 11 14:12:50 sparx ppp[53105]: tun0: Phase: bundle: Establish
Sep 11 14:12:50 sparx ppp[53105]: tun0: Phase: deflink: closed -> opening
Sep 11 14:12:50 sparx ppp[53105]: tun0: Phase: deflink: Connected!
Sep 11 14:12:50 sparx ppp[53105]: tun0: Phase: deflink: opening -> dial
Sep 11 14:13:00 sparx ppp[53105]: tun0: Warning: Chat script failed
Sep 11 14:13:00 sparx ppp[53105]: tun0: Phase: deflink: dial -> hangup
Sep 11 14:13:00 sparx ppp[53105]: tun0: Phase: deflink: Disconnected!
Sep 11 14:13:00 sparx ppp[53105]: tun0: Phase: deflink: Connect time: 10 secs: 0 octets in, 0 octets out
Sep 11 14:13:00 sparx ppp[53105]: tun0: Phase: deflink: : 0 packets in, 0 packets out
Sep 11 14:13:00 sparx ppp[53105]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Wed Sep 11 14:12:50 2002
Sep 11 14:13:00 sparx ppp[53105]: tun0: Phase: deflink: hangup -> closed
Sep 11 14:13:00 sparx ppp[53105]: tun0: Phase: bundle: Dead
Sep 11 14:13:00 sparx ppp[53105]: tun0: Phase: PPP Terminated (normal).
Sep 11 14:13:00 sparx ppp[53072]: tun0: Phase: Parent: Child failed (errdead)
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D7FB35D.ED0A08DC>
