Bay Networks 5390 Administering page 402

Communications server
Hide thumbs Also See for 5390:
Table of Contents

Advertisement

Configuring Hosts and Servers
Default Global Timeout Values
The overall time for a dial-out route to complete its chat script activity is two minutes (120 seconds).
You can override this value using the global_timeout statement. The syntax is:
global_timeout <global time-out value>
Default Timeout Values
If the <timeout value> is omitted from the timeout statement, the default of five seconds is used.
Each chat script can have its own default timeout value by specifying a value in the begin_script
statement using the format:
begin_script <script name>, <default time-out value>
Typically, the timeout statement terminates a block of expect statements. If a block of expect
statements is terminated by a statement other than timeout, the <time-out value> used is the <default
time-out value> for the script, and the <script name> used is error.
Chat Script Examples
The following sample chat script illustrates the Model 5390 chat script language. This script first
calls the chat script called chat2. If chat2 is successful, chat1 continues (that is, it sleeps for five
seconds). If chat2 is unsuccessful, chat1 returns as unsuccessful. The chat script then sends the string
called String1. If String2 (case-sensitive) does not arrive within five seconds, an error is returned.
If String2 does arrive within five seconds, the chat script called chat3 is called. Because chat3 always
returns successfully, chat1 also returns successfully.
begin_scriptchat1
call
chat2
sleep
5
send
"String1\r"
expect_case"String2", chat3
timeout 5, error
end_script
begin_script chat3
send
"String3\r"
end_script
A14-46
NOTE: The global_timeout statement must appear inside of the dialout
section of the configuration file but outside of any route.
NOTE: See Chat Script Examples below for a sample chat script that
uses this format.
893-741-B

Advertisement

Table of Contents
loading

Table of Contents