Solved

PPP/chat script problems

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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