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

100
Examples
# Specify rule 4 in number substitution list 20 as the preferred number substitution rule.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] number-substitute 20
[Sysname-voice-dial-substitute20] rule 4 663 3
[Sysname-voice-dial-substitute20] first-rule 4
Related commands
rule
match-template
Use match-template to configure a calling number match template for a subscriber group.
Use undo match-template to delete a calling number match template or all calling number match
templates from a subscriber group.
Syntax
match-template match-string
undo match-template { match-string | all }
Default
No calling number match template is configured for a subscriber group.
Views
Subscriber group view
Predefined user roles
network-admin
Parameters
all: Specifies all calling number match templates.
match-string: Specifies a calling number match string of 1 to 31 characters in the format of { [ + ] string
[ $ ] }| $. The following describe the characters:
Plus sign (+): If the plus sign (+) is at the beginning of the string, the string indicates an E.164
standard number. For example, +110022 indicates that 110022 is an E.164 standard number.
Dollar sign ($): Can only be used at the end of the string. The calling number must exactly match the
portion of the string before the dollar sign. When the string contains only a dollar sign ($), the
permitted calling number is null. If the string has no dollar sign, the calling numbers starting with the
string are permitted. For example, the match-template 20 command permits all calling numbers
starting with 20.
string: Consists of characters that can include digits 0 through 9, and pound sign (#), asterisk (*),
dot (.), exclamation point (!), plus sign (+), percent sign (%), brackets ([ ]), parentheses (()), and
hyphen (-). Brackets ([ ]) or parentheses (( )) each occupy two characters, and other symbols each
occupy one character.