R0106-HP MSR Router Series Voice Command Reference(V7)

87
Character Descri
p
tion
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.
the sign is similar to that of the wildcard
dot (.). These signs must follow a valid
digit or digit string.
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.
To be used together, brackets([ ]) and
parentheses (( )) must be presented 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 (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
outband nte
Use outband nte to enable NTE mode for out-of-band DTMF.
Use undo outband to restore the default.