Name
chat-script — global
Synopsis
chat-scriptname script-stringno 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 15-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 15-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 |
|
|
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 |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access