Solved

PPP/chat script problems

Posted on 1999-01-01
4
439 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
  • 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

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

19 Experts available now in Live!

Get 1:1 Help Now