R2511-HP MSR Router Series Voice Command Reference(V5)

39
Character Meaning
Brackets ([ ])
Select one character from the group. For example, [1-36] can match only one character
among 1, 2, 3, and 6.
Parentheses (( ))
A group of characters. For example, (123) means a string "123". It is usually used with
"!", "%", and "+". For example, "408(12)+" can match 40812 or 408121212. But it
cannot match 408. That is, "12" can appear continuously and it must appear at least
once.
The character or characters in front of "!", "%", and "+" are not to be matched accurately. They are
handled similar to the wildcard ".". Moreover, these symbols cannot be used alone. There must be a
valid digit or digits in front of them.
If you want to use "[ ]" and "( )" at the same time, you must use them in the format of "( [ ] )". Other
formats, such as "[ [ ] ]" and "[ ( ) ]" are illegal.
"-" can only be used in "[ ]", and it only connects the same type of characters, such as "0-9". The
formats like "0-A" are illegal.
If a number starts with the plus sign (+), note the following when you use it on a trunk: The E&M, R2, and
LGS signaling uses DTMF transmission, and since the plus sign (+) does not have a corresponding audio,
the number cannot be transmitted to the called side successfully. While the DSS1 signaling uses ISDN
transmission, the above problem does not exist. Therefore, you should avoid using a number that cannot
be identified by the signaling itself. Otherwise, the call will fail.
Usage guidelines
The number template defined by the match-template command can be used to match the number
reaching the corresponding voice entity. The voice entity will complete the call if the match is successful.
The number template can be defined flexibly. It can not only be a string of a unique number like
01016781234, but also an expression that can match a group of numbers, such as "010[1-5]678".
They are used to match the actual numbers in the received call packets to complete the calls.
When you configure a POTS voice entity, use the match-template command to define the number
template to be bound to the local voice entity. When you configure a VoIP or VoFR entity, use the
match-template command to define the number template on the called side. When you configure an IVR
entity, use the match-template command to define the IVR access number.
In E1 voice, "T", "#", and "*" are not supported.
Examples
# Specify 5557922 as a telephone number of voice entity 10.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 10 pots
[Sysname-voice-dial-entity10] match-template 5557922
# Configure a match template for VoIP voice entity 10.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 010 voip
[Sysname-voice-dial-entity10] match-template 5557922