problem with mgetty and ppp direct dial-in

Gert Doering (gert@greenie.muc.de)
Tue, 6 Apr 1999 11:18:41 +0200


Hi,

On Tue, Apr 06, 1999 at 09:05:07AM +0200, fcorne@dalet.com wrote:
> Mgetty works very well on my machine ( fax/ tty/ autoppp) . The connection
> with ppp to my ISP also works nicely.
> But when mgetty is running (and waiting for an incomming call) I am unable
> to connect to my isp with ppp.
> I have checked doc and faq without succes.
> I am sure the two process use the same name of device : ttyS0
> My modem is a classic Supra fax modem 28800.
> 
> The symptom is that when mgetty is waiting, and that the script of chat
> send "ATZ" to the modem there is no reponse.

Usually this means "lock file mismatch / no lock file from PPPd".

> ---------------------
> file  /usr/local/bin/ppp-go  that i use to connection with my ISP. It is
> roughly but it works ...
> 
> #!/bin/sh
> rm -f  /var/spool/uucp/LCK* /var/lock/LCK* /var/run/ppp*.pid
> /usr/sbin/pppd /dev/ttyS0  lock connect '/usr/sbin/chat -v -f
> /etc/ppp/.pppscript' defaultroute crtscts modem debug 115200 &

Make sure that pppd locks into the same lock file directory as mgetty is
checking.

> 04/05 13:43:40 yS0  mdm_send: 'AT+FLID="01 45 20 90 42"' -> OK
> 04/05 13:43:41 yS0  mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0' -> OK
> 04/05 13:43:41 yS0  waiting...
> 04/05 13:43:55 yS0  lock not made: lock file exists (pid=1463)       <---
> when ppp start, blocking here

Hmmm.  Now this is strange, PPP seems to make a valid lock file, so mgetty
goes out of its way.

> allocation)
> Apr  5 13:43:53 palmier kernel: PPP Dynamic channel allocation code
> copyright 1995 Caldera, Inc.
> Apr  5 13:43:53 palmier kernel: PPP line discipline registered.
> Apr  5 13:43:53 palmier kernel: registered device ppp0
> Apr  5 13:43:53 palmier pppd[1463]: pppd 2.3.5 started by root, uid 0
> Apr  5 13:43:55 palmier chat[1464]: report (CONNECT)
> Apr  5 13:43:55 palmier chat[1464]: abort on (ERROR)
> Apr  5 13:43:55 palmier chat[1464]: abort on (BUSY)
> Apr  5 13:43:55 palmier chat[1464]: abort on (NO CARRIER)
> Apr  5 13:43:55 palmier chat[1464]: abort on (NO DIALTONE)
> Apr  5 13:43:55 palmier chat[1464]: send (ATZ^M)
> Apr  5 13:43:55 palmier chat[1464]: expect (OK)     <----------- blocking
> here
> 
> Apr  5 13:44:40 palmier chat[1464]: alarm
> Apr  5 13:44:40 palmier pppd[1463]: Connect script failed
> Apr  5 13:44:40 palmier chat[1464]: Failed
> Apr  5 13:44:41 palmier pppd[1463]: Exit.

Weird.  It shouldn't do that.  No idea what's happening.

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de