LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ppp-go Chatscript expects(CONNECT) and doesn't wait (https://www.linuxquestions.org/questions/linux-newbie-8/ppp-go-chatscript-expects-connect-and-doesnt-wait-113705/)

tygrmouse 11-08-2003 04:59 AM

ppp-go Chatscript expects(CONNECT) and doesn't wait
 
ok .. Noob btw ... I've been working on this for days, it's one thing after another, and I've been toggling between Windows and Linux to get to the www and then back to my system.

I have my modem working, minicom can dial into my ISP, but I'm trying to set up my PPP and I'm having this problem. I ripped my Windows modem init strings, learned how chat is using the ppp script to talk to it, and have gotten the thing to dial, but now it seems I have a problem with chat.
In my pppscript, the dial portion says:
: OK "ATDT7647647"
: \n \c (this is specific to my modem btw, sends a newline immediately)
: TIMEOUT 120
: CONNECT
But what is happening is, I hear the dialtone for 1/4 of a second and it hangs up, and then my syslog reports:
: expects(CONNECT)
: alarm
Now I've been playing for hours mind you, and I've figured out that TIMEOUT 120 is doing absolutely nothing, it's not waiting for the number to dial and the CONNECT signal, it's throwing an error immediately. I've verified this by changing the script to pause for 20 seconds ...
: OK "ATDT7647647"
: \n \d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\c
: CONNECT
What happens here tho, it dials, starts talking, establishes connection speed, and then hangs my entire system and makes my numberlock/slock lights on my keyboard blink :<

I'm pretty sure it's the problem. if I remove a few /d's it gets almost to the data send/recieve portion but hangs up. It literally acts like it's not waiting for anything. I'm using Slackware 9.0 Kernel 2.4.22 (just compiled). If anyone can tell me how to verify/reinstall/fix chat, or an easier solution, wow that'd be great (I'm a noob remember). Or an easier solution than even using a corrupt/fooed chat. Until then, I'll try some of the other stuff in the Howto's, dl some files and stuff, heh.

andguent 11-08-2003 09:49 AM

Try looking at http://handsonhowto.com/dodip.html

In there they have a couple ideas for dial up scripts, including:


Code:

The additional parameters to make pppd do dial on demand look like this -- you can put all of this into the file /etc/ppp/options:

demand
idle 60
ipcp-accept-remote
ipcp-accept-local
lock
noauth
defaultroute
user myaccount
remotename myisp
modem 57600 crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/call-isp'

and

Code:

The last line points to a script that tells chat HOW to dial when it's time to dial. It looks like this:

TIMEOUT        5
 ABORT  '\nBUSY\r'
 ABORT '\nNO ANSWER\r'
 ''    \rAT
 'OK-+++\c-OK'  ATH0
 TIMEOUT 40
 OK    ATDT555-1212
 CONNECT        ''


tygrmouse 11-08-2003 10:15 AM

I got it Har Har Har
 
So, what I did that made it work, was I took the line: ABORT ERROR right out of the script. The dialing works fine, but it's erroring because it doesn't wait. So, I got an update on my ppp package, compiled/installed it fully, but it still doesn't like to wait for that 'Connect'. I don't know what will happen if I get some wierd error tho. So, it starts trying to talk a little early I'm guessing, because it throws the error and goes on to the rest of ppp-go, starts trying to talk while dialing is still going on. Anyone know if this is dangerous, or a fix or anything? or is it typical?


All times are GMT -5. The time now is 06:32 PM.