bjarne
asked on
CHAT PROBLEMS
I HAVE A PROBLEM MAKING MY MODEM DIAL UP MY INTERNET CONNECTION PROPERLY. WHEN I CALL UP MY INTERNET SERVICE, THERE IS NO RESPONSE. I HAVE TRIED DIALING UP THROUGH MINICOM AND THEN START PPPD, AND THAT WAY IT WORKS. IT SEEMS LIKE IT SOMEHOW IS MY PPP-ON SCRIPT THAT IS WRONG. MY PPP-ON SCRIPT AND THE CHATSCRIPT ARE LOOKING AS FOLLOWING:
PPP-ON SCRIPT:
LOCKDIR=/var/spool/lock
DEVICE=modem
PHONE=********
USER=************
PASSWORD=********
OUR_IP_ADDR=0.0.0.0
if [ -f $LOCKDIR/LCK..$DEVICE ]
then
echo "PPP device is locked"
exit 1
fi
fix-cua $DEVICE
(
stty 115200 -tostop
if chat -v -f/usr/local/bin/chatscrip t
then
pppd asyncmap 0 -detach modem crtscts mru 1500 $OUR_IP_ADDR: /dev/$DEVICE
rm -f LCK..$DEVICE
exit 0
else
echo "PPP call failed" 1>&2
exit 1
fi
) < /dev/$DEVICE > /dev/$DEVICE
Chatscript:
ABORT
'NO CARRIER'
ABORT BUSY ''
ATZ OK
ATDT********
CONNECT ''
username: ************
password: \\q********
annex:ppp
The problem has occured after I upgraded my linux from 1.2.13 to 2.0.0. Beforehand I used almost the same ppp-on script just with the chatscript options as parameters using -l to the chat command, and that worked quite fine.
I hope you have a good answer to my question.
Bjarne
PPP-ON SCRIPT:
LOCKDIR=/var/spool/lock
DEVICE=modem
PHONE=********
USER=************
PASSWORD=********
OUR_IP_ADDR=0.0.0.0
if [ -f $LOCKDIR/LCK..$DEVICE ]
then
echo "PPP device is locked"
exit 1
fi
fix-cua $DEVICE
(
stty 115200 -tostop
if chat -v -f/usr/local/bin/chatscrip
then
pppd asyncmap 0 -detach modem crtscts mru 1500 $OUR_IP_ADDR: /dev/$DEVICE
rm -f LCK..$DEVICE
exit 0
else
echo "PPP call failed" 1>&2
exit 1
fi
) < /dev/$DEVICE > /dev/$DEVICE
Chatscript:
ABORT
'NO CARRIER'
ABORT BUSY ''
ATZ OK
ATDT********
CONNECT ''
username: ************
password: \\q********
annex:ppp
The problem has occured after I upgraded my linux from 1.2.13 to 2.0.0. Beforehand I used almost the same ppp-on script just with the chatscript options as parameters using -l to the chat command, and that worked quite fine.
I hope you have a good answer to my question.
Bjarne
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.