Solved

CHAT PROBLEMS

Posted on 1997-01-14
1
233 Views
Last Modified: 2010-03-17
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/chatscript
      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
0
Comment
Question by:bjarne
1 Comment
 
LVL 1

Accepted Solution

by:
mart010897 earned 100 total points
ID: 1584039
Hi,

Uh, you just upgraded the kernel and not the distribution right?  

Okay, well I'm going to be guessing without any debug output here... try doing a tail -f /var/adm/messages and a tail -f /var/adm/syslog in two other consoles when you run your pppd script to see any errors as they are produced.

I had a similar problem not too long ago and it turned out that it was because my ISP had switched to Unnumbered PPP without telling anyone.  Try using a bogus pair of addresses like 10.0.0.1:10.0.0.2 on your pppd commandline and then specify ipcp-accept-local and ipcp-accept-remote.

Also if this is working through minicom but not through your script setup, I would suggest writing your own ppp dialer script, one which specifies the commands in-line, since you probably know the sequence by heart now because of minicom :)

Something like:

pppd connect 'chat -v "" atdt******* ONNECT "" rname: ******** ssword: ******** nnex: ppp' asyncmap 0 modem /dev/modem crtscts debug 10.0.0.1:10.0.0.2 ipcp-accept-local ipcp-accept-remote

Then just watch /var/adm/messages scroll by for a monitor of what's going on.  Could be that the problem is in your chat script and the inline thing will fix it for now.  Once you get that long line right you can put it in a sh script, no problem.

If it seems like chat is getting through ok, and pppd takes over (some message like connect ppp0 <-> /dev/modem or something), then you still have problems, then the answer will most likely lie in /var/adm/debug.  Try making this file only one line long using your favorite editor so you know you'll only have output for the currently attempting connection.  Then post or mail the output to me and we can go over it.

I know it's a pain, but a really good understanding of pppd is the best weapon in this type or trouble... and I just don't like the ppp-on scripts that come with slackware... doing it yourself you can familiarize yourself with the sequence of events that is happening to establish your PPP connection.

Hope this helps, feel free to mail me directly...

Mart
mart@voicenet.com
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now