System Administration Guide: Network Services

/etc/ppp/myisp-chat.tmpl Chat Script Template

Solaris PPP 4.0 includes the /etc/ppp/myisp-chat.tmpl, which you can modify for use at your site. /etc/ppp/myisp-chat.tmpl is similar to the basic modem chat script except that the template does not include a login sequence.


ABORT   BUSY
ABORT   'NO CARRIER'
REPORT  CONNECT
TIMEOUT 10
""      "AT&F1"
OK      "AT&C1&D2"
SAY     "Calling myisp\n"
TIMEOUT 60
OK      "ATDT1-123-555-1212"
CONNECT \c

Script Contents 

Explanation 

ABORT BUSY

Abort transmission if the modem receives this message from the opposite peer. 

ABORT 'NO CARRIER

Abort transmission if the modem reports ABORT 'NO CARRIER' when dialing. The cause for this message is usually a dialing or modem negotiation failure.

REPORT CONNECT

Gather the CONNECT string from the modem. Print the string.

TIMEOUT 10

Set initial timeout to 10 seconds. The modem's response should be immediate. 

"" "AT&F1"

Reset the modem to factory defaults. 

OK "AT&C1&D2"

Reset the modem so that, for &C1, DCD from the modem follows carrier. If the remote side hangs up the phone for some reason, then the DCD drops.  

For &D2, DTR high-to-low transition causes the modem to go “on-hook” or hang up. 

SAY "Calling myisp\n"

Display the message “Calling myisp” on the local machine. 

TIMEOUT 60

Reset the timeout to 60 seconds to allow more time for link negotiation. 

OK "ATDT1-123-555-1212"

Call the remote peer by using the phone number 123-555-1212. 

CONNECT \c

Wait for the CONNECT message from the opposite peer's modem.