R0106-HP MSR Router Series Voice Command Reference(V7)
101
Table 15 Description of characters in a
string
Character Descri
p
tion
0-9 Digits 0 through 9.
Pound sign (#) or
asterisk (*)
Indicates a valid digit.
Dot (.)
Wildcard, which can match any valid digit. For example, 555…. can match any
7-digit number beginning with 555.
Exclamation point
(!)
Indicates the subexpression before it
appears once or does not appear. For
example, 56!1234 can match 51234
and 561234.
The subexpression (one digit or digit
string) before an exclamation point (!),
plus sign (+), or percent sign (%) is used
for imprecise match. The processing of
the sign is similar to that of the wildcard
dot (.). These signs must follow a valid
digit or digit string.
Plus sign (+)
Indicates the subexpression before it
appears one or more times. For
example, 9876(54)+ can match
987654, 98765454, 9876545454,
and so on.
Percent sign (%)
Indicates the subexpression before it
appears multiple times or does not
appear. For example, 9876(54)% can
match 9876, 987654, 98765454,
9876545454, and so on.
Hyphen (-)
Used to connect two digits to indicate a range of numbers, for example, [1-9]
indicates 1 to 9, inclusive.
The hyphen (-) can present only in brackets ([ ]).
Brackets ([ ])
Indicates a range. For example,
[1-36A] matches 1, 2, 3, 6, or A.
To be used together, brackets ([ ]) and
parentheses (( )) must be present in the
form of "( [ ] )". The "[ [ ] ]" and "[ ( ) ]"
forms are incorrect.
Parentheses (( ))
Indicates a string of characters. For
example, (123) indicates the character
string 123. It is usually used together
with signs such as !, %, and +. For
example, 408(12)+ can match the
character string 40812 or
408121212, but not 408 (the string
12 must appear at least one time).
Examples
# Configure the calling number match template 1… for subscriber group 2 to match 4-digit calling
numbers starting with 1.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] subscriber-group 2
[Sysname-voice-dial-group2] match-template 1…
max-conn
Use max-conn to configure the maximum number of total calls (both incoming and outgoing) allowed by
a voice entity.