problem with mgetty and ppp direct dial-in

fcorne@dalet.com (fcorne@dalet.com)
Tue, 6 Apr 1999 09:05:07 +0200



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.

below  is the listing of the config and log :

Any help or hint will be very appreciated.


Thanks you in advance


FC


rpm -q ppp
ppp-2.3.5-1
---------------------
/usr/sbin/mgetty -V

mgetty+sendfax by Gert Doering
experimental test release 1.1.20-Jan17

---------------------

/etc/inittab
S0:2345:respawn:/usr/sbin/mgetty -x 4 -C cls2 ttyS0


---------------------
file login.config
/AutoPPP/ -    -    /usr/sbin/pppd call serveur
*    -    -    /bin/login @

---------------------
file /etc/ppp/options

lock
---------------------
file /etc/ppp/peers/serveur

modem
crtscts
ttyS0
auth
-chap
+pap
login
-detach
asyncmap 0
netmask 255.255.255.0
debug
kdebug 7
proxyarp
palmier:ppp01


---------------------
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 &

---------------------
file /etc/ppp/.pppscript
REPORT CONNECT
ABORT 'ERROR'
ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
'' ATZ OK AT&F1 OK ATDT0155400040 CONNECT ''
ogin: mylogin
ssword: mypasswd

---------------------
file /usr/local/bin/ppp-off

#!/bin/sh
if [ "$1" = "" ]; then
DEVICE=ppp0
else
DEVICE=$1
fi

if [ -r /var/run/$DEVICE.pid ]; then
kill -INT `cat /var/run/$DEVICE.pid`

if [ ! "$?" = "0" ]; then
rm -f /var/run/$DEVICE.pid
echo "ERROR: Removed stale pid file"
exit 1
fi

rm -f /var/spool/uucp/LCK* /var/lock/LCK*
echo "PPP link to $DEVICE terminated..."
echo
exit 0
fi

echo "ERROR: PPP link is not active on $DEVICE"
exit 1
---------------------

File /var/log/message.ttyS0
--
04/05 13:43:37 yS0  mgetty: experimental test release 1.1.20-Jan17
04/05 13:43:37 yS0  check for lockfiles
04/05 13:43:37 yS0  locking the line
04/05 13:43:37 yS0  can't get group 'modem': No such file or directory
04/05 13:43:38 yS0  lowering DTR to reset Modem
04/05 13:43:39 yS0  send: \dATQ0V1H0[0d]
04/05 13:43:39 yS0  waiting for ``OK'' ** found **
04/05 13:43:39 yS0  send: ATS0=0Q0&D3&C1[0d]
04/05 13:43:39 yS0  waiting for ``OK'' ** found **
04/05 13:43:40 yS0  mdm_send: 'AT+FCLASS=2' -> OK
04/05 13:43:40 yS0  mdm_send: 'AT+FCLASS=0' -> OK
04/05 13:43:40 yS0  mdm_send: 'AT+FAA=1;+FCR=1' -> OK
04/05 13:43:40 yS0  mdm_send: 'AT+FBOR=0' -> OK
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



Apr  5 13:43:53 palmier kernel: PPP: version 2.2.0 (dynamic channel
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.
Apr  5 13:45:53 palmier kernel: PPP: ppp line discipline successfully
unregistered