O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

chat-script — global

Synopsis

chat-script name script-string
no chat-script name script-string

Configures

A chat script for placing a call over a modem

Default

None

Description

The chat-script command defines the script to use for modem communication when dialing to a remote device. name identifies the chat script for use in other commands; script-string specifies the script itself. The script-string contains a series of expect/send characters that communicate with the modem. Table 17-3 shows special characters and escape codes that can be used in chat scripts . Chat scripts are allowed only on asynchronous interfaces like ASYNC and BRI.

Table 17-3. Special values and escape codes for chat scripts

Character or code

Meaning

" "

Null string

ABORT string

The string following the ABORT indicates why the script failed

TIMEOUT timeout

Set the timeout to wait for a response; default is 5 seconds

EOT

End of transmission character

BREAK

Send a BREAK character

\c

Suppress newline at end of string

\d

Cause a two-second delay

\n

Send a newline

\p

Pause for one-fourth of a second

\r

Send a return character

\s

Send a space character

\t

Send a tab character

\\

Send a backslash character

\T

Replaced with phone number

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required