Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 1997 12:35:21 -0500 (EST)
From:      "Kenneth R. Westerback" <krw@tcn.net>
To:        freebsd-stable@freebsd.org
Subject:   2.1.7 (src-2.1 291) ppp does not hang up!
Message-ID:  <Pine.BSF.3.91.970316121505.176C-100000@pinky.tcn.net>

next in thread | raw e-mail | index | archive | help
2.1.7 with deltas up to 291 applied.

ppp.conf:

 default:
  set device /dev/cuaa1
  set speed 57600
  disable lqr
  deny lqr
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK 
\\dATDT\\T TIMEOUT 40 CONNECT"
  set redial 10 5
  set debug phase Chat LCP
 tcn:
  set phone 3590900
  set login "TIMEOUT 10 login:-\\r-login: **** word: ***"
  set timeout 120
  set ifaddr 199.166.4.58 199.166.4.2

ppp.linkup:
 199.166.4.58:
  add 0 0 HISADDR

I run ppp -auto tcn from rc.local.  The first time I need it, everything 
works fine.  But when the idle time out expires ppp closes the link but 
does not hang the modem up.  Thus subsequent redial attempts all fail 
since the modem is not in command mode and ignores all AT commands.

ppp.log:

 03-16 11:27:44 [172] Idle timer expired.
 03-16 11:27:44 [172] LCP: LayerDown
 03-16 11:27:44 [172] OsLinkdown: 199.166.4.2
 03-16 11:27:44 [172] Phase: Terminate
 03-16 11:27:44 [172] LCP: SendTerminateReq.
 03-16 11:27:44 [172] LCP: state change Opend --> Closing
 03-16 11:27:44 [172] LCP: Received Terminate Ack (2) state = Closing (4)
 03-16 11:27:44 [172] LCP: state change Closing --> Closed
 03-16 11:27:44 [172] LCP: LayerFinish
 03-16 11:27:44 [172] Phase: Dead
 03-16 11:29:08 [172] Expecting 
 03-16 11:29:08 [172] sending: ATE1Q0
 03-16 11:29:08 [172] Expecting OK-AT-OK
 03-16 11:29:08 [172] Wait for (5): OK --> OK
 03-16 11:29:13 [172] can't get (5).
 03-16 11:29:13 [172] sending: AT
 03-16 11:29:13 [172] Wait for (5): OK --> OK
 03-16 11:29:18 [172] can't get (5).

I had this working great under a 3.0 snapshot.  What's the trick to get 
ppp to hang up (i.e. toggle DTR I assume) when the timer expires?

---- Ken



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970316121505.176C-100000>