Specifications
Creating and Using Modem Chat Scripts
Using Chat Scripts
DC-166
Cisco IOS Dial Technologies Configuration Guide
Note Outbound chat scripts are not supported on lines where modem control is set for inbound activity
only (using the modem dialin command).
Manually Testing a Chat Script on an Asynchronous Line
To test a chat script on any line that is currently not active, use the following commands in privileged
EXEC mode:
If you do not specify the line number, the script runs on the current line. If the line specified is already
in use, you cannot start the chat script. A message appears indicating that the line is already in use.
Using Chat Scripts
The following sections provide examples of how to use chat scripts:
• Generic Chat Script Example
• Traffic-Handling Chat Script Example
• Modem-Specific Chat Script Examples
• Dialer Mapping Example
• System Login Scripts and Modem Script Examples
Generic Chat Script Example
The following example chat script includes a pair of empty quotation marks (“ ”), which means “expect
anything,” and \r, which means “send a return”:
" " \r "name:" "myname" "ord":" "mypassword" ">" "slip default"
Traffic-Handling Chat Script Example
The following example shows a configuration in which, when there is traffic, a random line will be used.
The dialer code will try to find a script that matches either the modem script .*-v32 or the system script
cisco. If there is no match for either the modem script or the system script, you will see a “no matching
chat script found” message.
interface dialer 1
! v.32 rotaries are in rotary 1.
dialer rotary-group 1
! Use v.32 generic script.
dialer map ip 10.0.0.1 modem-script .*-v32 system-script cisco 1234
Command Purpose
Step 1
Router# debug chat line
number
Starts detailed debugging on the specified line.
Step 2
Router# start-chat
regexp
[
line-number
[
dialer-string
]]
Starts a chat script on any asynchronous line.