HP MSR2000/3000/4000 Router Series Voice Command Reference
86
Character Descri
p
tion
Dot (.)
Wildcard, which can match any valid digit. For example, 555…. can match any
7-digit number beginning with 555.
Exclamation point (!)
Indicates the sub-expression before it
appears once or does not appear. For
example, 56!1234 can match 51234
and 561234.
The sub-expression (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 sub-expression before it
appears one or more times. For example,
9876(54)+ can match 987654,
98765454, 9876545454, and so on.
Percent sign (%)
Indicates the sub-expression 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 be present only in brackets ([ ]).
Brackets ([ ])
Indicates a range. For example, [1-36A]
matches 1, 2, 3, 6, or A.
If embedded, brackets([ ]) and
parentheses (( )) must be presented in the
form of "( [ ] )". The forms of "[ [ ] ]" and
"[ ( ) ]" 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 (that
is, the string 12 must appear at least one
time).
Usage guidelines
When you configure a local POTS entity, use the match-template command to define a local number
template to be bound to the local voice interface. When you configure a trunk POTS entity or a VoIP entity,
use the match-template command to define the called number template.
Examples
# Configure the number template as 1000 for POTS entity 1000.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 1000 pots
[Sysname-voice-dial-entity1000] match-template 1000
# Configure the number template as 2000 for VoIP entity 2000.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 2000 voip
[Sysname-voice-dial-entity2000] match-template 2000