mfischer2
asked on
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?
#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?
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
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
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER