Specifications
Creating and Using Modem Chat Scripts
How To Configure Chat Scripts
DC-164
Cisco IOS Dial Technologies Configuration Guide
To define a chat script, use the following command in global configuration mode:
The Cisco IOS software waits for the string from the modem (defined by the expect portion of the script)
and uses it to determine what to send back to the modem (defined by the send portion of the script).
Chat String Escape Key Sequences
Chat script send strings can include the special escape sequences listed in Table 15.
Adding a Return Key Sequence
After the connection is established and you press the Return key, you must often press Return a second
time before the prompt appears. To create a chat script that enters this additional Return key for you,
include the following string with the Return key escape sequence (see Table 15) as part of your chat
script:
ssword:-/r-ssword
Command Purpose
Router(config)# chat-script
script-name expect
send...
Creates a script that will place a call on a modem, log in to a
remote system, or initialize an asynchronous device on a line.
Table 15 Chat Script Send String Escape Sequences
Escape Sequence Description
\ Sends the ASCII character with its octal value.
\\ Sends a backslash (\) character.
\” Sends a double-quote (“) character (does not work within double quotes).
\c Suppresses a new line at the end of the send string.
\d Delays for 2 seconds.
\K Inserts a BREAK.
\n Sends a newline or linefeed character.
\N Sends a null character.
\p Pauses for 0.25 second.
\q Reserved, not yet used.
\r Sends a return.
\s Sends a space character.
\t Sends a tab character.
\T Replaced by phone number.
“ ” Expects a null string.
BREAK Causes a BREAK. This sequence is sometimes simulated with line speed
changes and null characters. May not work on all systems.
EOT Sends an end-of-transmission character.