Operation Manual – System Management
H3C XE 200/2000 IP PBX
Chapter 8 Modem Management Configuration
8-2
it negotiates the protocol to be encapsulated on the physical link and the operating
parameters of the protocol with the remote device.
II. Syntax of Modem script
The general format of Modem script is as follow:
send-string1
receive-string1
send-string2
receive-string2
......
Among which:
z
send-string
represents the character string to be sent.
z
receive-string
represents the character string to be received.
z
send-string
and
receive-string
appear in pairs and a script must begin with a
send-string, such as “
send-string1 receive-string1 ......
”. This represents the
execution flow: First, the system sends the string send-string1 to the Modem and
expects to receive the string receive-string1. If it receives a string matching
receive-string1 before timeout, it executes the following script, otherwise, it
terminates the execution of this script.
z
If the last string is a send-string, it indicates that, once this string is sent, the
execution of the script is terminated without waiting for any other receive-string.
z
If it is unnecessary to send a string at the beginning of a script execution, and the
system directly waits for a receive-string, you can set the first send-string to "". The
following section will cover the details on the quotation mark.
z
Except for the send-string ended with “\c”, the send-string will be automatically
appended with a carriage return when it is sent.
z
The received content does not need to exactly match the receive-string. That is,
the match is considered successful as long as the received content contains the
expected string.
z
One receive-string can includes many character strings separated by "-". The
match is considered successful as long as the received content contains one of
these character strings.
z
By default, the timeout time of waiting for a receive-string is five seconds. You can
insert the
TIMEOUT
seconds
anywhere in a script to adjust the timeout time,
which is valid till a new
TIMEOUT
is set in the same script.
z
All the strings and keywords in a script are case sensitive.
z
Use spaces to separate strings or keywords. So a space contained in a string must
be enclosed in double quotation marks (" "). A pair of empty quotation marks (that
is, "") has two meanings: Being a leading "" in a script, it means that no string
needs to be sent and the system directly waits for a receive-string. If "" is in any
other location in the script, it is regarded as the content of a string.
z
You can insert
ABORT
receive-string
anywhere in a script to change the
execution flow of this script. Its presence in the script indicates that the script
execution will be terminated if a received string exactly matches the
receive-string
set by
ABORT
receive-string
. You can set more than one
ABORT
receive-string
in
a script, all of they will take effect; that is, once a received string matches any one
Summary of Contents for XE 200/2000 IP
Page 7: ...Basic Configuration ...
Page 42: ...Process Server Configuration ...
Page 82: ...Location Server Configuration ...
Page 182: ...Feature ...
Page 259: ...System Management ...
Page 341: ...IP Performance and Application ...
Page 349: ...Media Server ...
Page 360: ...Call Services ...
Page 507: ...Appendix A ...
Page 511: ...Appendix B ...