# define error conditions
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'ERROR'
ABORT 'NO ANSWER'
ABORT 'BUSY'
# set 5 sec maximum window for the modem to respond to
# the following commands
TIMEOUT 5
# make sure the modem is awake
'' 'AT'
# initialize Actiontec MD56ORD modem
# (I copied these lines verbatim from the Windows modem logs)
# Note that a different brand/model modem would require a
# different modem init string here.
'OK' 'AT&FE0V1S0=0&C1&D2+MR=2;+DR=1;+ER=1;W2'
'OK' 'ATS7=60M1+ES=3,0,2;+DS=3;+IFC=2,2;X4'
# instruct the modem not to answer incoming calls
'OK' 'ATS0=0'
## uncomment the following line to turn off the speaker while dialing
#'OK' 'ATM0L0'
# dial command
'OK' 'ATDT5555555'
# allow time to establish the connection
TIMEOUT 55
# user name and password
ECHO ON 'CONNECT' '' ogin:--ogin: xxxxxx word: yyyyyy
|