Chat script examples – Compatible Systems 5.4 User Manual

Page 186

Advertising
background image

180

Chapter 10 - WAN Link Protocols

Chat Script Examples

There are as many variations of chat scripts as there are specific installation
requirements. However, all chat scripts generally follow the same format,
which is a series of send and expect statements.

To connect to another router using a modem. This script dials through a
PBX which requires a 9 to be dialed followed by a delay in order to
access an outside line:

send atdt 9,13035559000
expect CONNECT

To connect to another router via an ISDN line, using V.25bis dialing:

send CRN 5554000
expect CNX

To connect to an Internet Service Provider using a modem:

send atdt 5551000
expect CONNECT
expect login:
send myname
expect ssword:
send im4CSCru2
expect connecting

v Note: As demonstrated in this script, it may be convenient to only put part
of the expected response in an expect statement. This can make it easier to get
an exact match when the actual expected string is long (e.g. Please login:,
Please enter your password:, etc.).

Advertising