Solved

PPP/chat script problems

Posted on 1999-01-01
4
447 Views
Last Modified: 2010-03-18
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
Comment
Question by:mfischer2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:mfischer2
ID: 1588015
that second sentence should say, "I can manually create a PPP connection".  Its kinda late, so excuse the mistake.
0
 
LVL 7

Expert Comment

by:HalldorG
ID: 1588016
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
 

Author Comment

by:mfischer2
ID: 1588017
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
 
LVL 7

Accepted Solution

by:
HalldorG earned 100 total points
ID: 1588018
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

705 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