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

Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.