Name
chat-script — global
Synopsis
chat-scriptname script-string
no chat-scriptname 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.
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 |
|
Suppress newline at end of string |
|
Cause a two-second delay |
|
Send a newline |
|
Pause for one-fourth of a second |
|
Send a return character |
|
Send a space character |
|
Send a tab character |
|
Send a backslash character |
|
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.