• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 451
  • Last Modified:

PPP/chat script problems

I am trying to automate a PPP connection using a chat script that was created by pppsetup.  I can manually create a chat script, but the problem is that the script sends ^M with the modem commands which confuses my modem and eventually times out the script.  Here is the script I am trying and the output.

#ppp.chatscript
TIMEOUT 10
ABORT ERROR
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
REPORT CONNECT
"" "AT&F0" OK
OK "ATD*70,3425710" OK
TIMEOUT 75
CONNECT ""
ogin: *******
assword: *******

#results of running ppp-go -v
timeout set to 10 seconds
abort on (ERROR)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
report (CONNECT)
send (AT&F1^M)
expect (OK)
alarm
Failed

No I assumed the problem was the ^M it was sending with the modem, but maybe thats just a carriage return, anyhow it doesn't work, but I can get it to work manually (via minicom and pppd).

Any ideas?
0
mfischer2
Asked:
mfischer2
  • 2
  • 2
1 Solution
 
mfischer2Author Commented:
that second sentence should say, "I can manually create a PPP connection".  Its kinda late, so excuse the mistake.
0
 
HalldorGCommented:
After REPORT CONNECT
then you have
"" "AT&F0" OK
Then the mistake is OK
it should be

"ATDT70,3425710" "CONNECT"
"" ogin:
"the user id" "assword:"
"the password" ""

The TIMEOUT parameter should be at start







0
 
mfischer2Author Commented:
Still didnt work.  I tried this (which is what I thought you were trying to tell me).

TIMEOUT 10
ABORT ERROR
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
REPORT CONNECT
"" "AT&F0" "ATD*70,3425710" OK
CONNECT "" 
ogin: *******
assword: *******

And I tried again without the AT&F0 line altogether.  Still says Alarm and Failed.
0
 
HalldorGCommented:
Note that the syntax is
SEND - EXPECT
so you do not expect an OK after sending the telephone number
And also a timeout ofo 10 secs are much to low
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now