This document describes the chat script configuration commands. For steps to configure a chat script, see Creating Chat Scripts.
Table 1 summarizes the chat script configuration commands. Enter these commands at the Chat Config> prompt. There are no monitoring commands for chat scripts.
Press Space twice after you type a command to display the available parameters for each command. Enter help for information about using the command line interface.
[C] means the command is available at the Chat Config> prompt.
| Command | Function |
|---|---|
| Change [C] | Changes a line in the chat script. |
| Delete [C] | Deletes a line from the chat script. |
| Exit [C] | Returns to the DIAL Config <WAN> prompt. |
| List [C] | Displays the contents of the chat script. |
| Move [C] | Changes the order of lines in the chat script. |
| Receive [C] | Creates a line in the chat script made up of characters that DIAL expects to receive as a query from the remote destination. |
| Transmit [C] | Creates a line in the chat script made up of characters that the DIAL circuit interface sends to the destination in response to a query the DIAL circuit interface receives. |
| Wait [C] | Inserts delays in the chat script. |
Change [C]
Changes a line in the chat script. You can change the values for a transmit, receive, or wait line. Depending on the line number you select to change, the software prompts you for the appropriate information. Enter list to display line numbers for the chat script.
change
Line number [0]? 1
Receive string [boston]?login boston
change
Line number [0]? 3
Wait in seconds [3]? 4
delete
Line number [] ? 3
exit
Circuit Config>
list
Configuration of Chat Script: seattle
1 receive login:
2 wait 4
3 transmit boston
4 receive password:
5 transmit abracadabra
6 receive Welcome
move
From line number [] ? 1
To line number [] ? 5
Chat Config>list
Configuration of Chat Script: seattle
1 receive Welcome
2 receive login:
3 transmit boston
4 receive password:
5 transmit abracadabraChat Config>move
From line number [] ? 1
To line number [] ? 6
Chat Config>list
Configuration of Chat Script: seattle
1 receive login:
2 transmit boston
3 receive password:
4 transmit abracadabra
5 receive Welcome
If the DIAL circuit interface does not receive the expected string before the connection timeout period (if any) elapses, the DIAL circuit interface cancels the receive command. (Set the connection timeout period using the set connect-timeout command at the DIAL Config <WAN> prompt.)
Note: The router software ignores all string it receives until it receives the string you enter with the receive command. For example, if you enter a receive string of Login:, and the router receives the string, Welcome to ISP. Login:, the chat script succeeds.
You can include nonprintable characters in the transmit and receive command strings. You can use the following C language-style escape characters in chat script strings:| \n | Linefeed |
| \r | Carriage return |
| \\ | Backslash |
| \xhh | Hexadecimal two-digit number |
receive
Receive string? login:
You can include nonprintable characters in the transmit and receive command strings. You can use the following C language-style escape characters in chat script strings:
| \n | Linefeed |
| \r | Carriage return |
| \\ | Backslash |
| \xhh | Hexadecimal two-digit number |
Note: You must enter a \r at the end of your transmit string or the router does not send the string.
Syntax: transmit string Example:transmit
Transmit string? boston\r
immediately before a transmit line in the chat script, the DIAL circuit interface waits this number of seconds before it sends the transmit line to the remote router.
at the end of a chat script, the DIAL circuit interface waits this number of seconds before it completes the chat script.
The default is 0 (zero) seconds. The range is 1 to 65535.
Example:wait
Wait in seconds [0]? 5