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

156
Parameters
rule-number: Serial number of a number substitution rule (namely, the serial number of a number
substitution rule configured by using the rule command), in the range of 0 to 31.
Usage guidelines
Use the first-rule to configure the preferred number substitution rule in the current number substitution rule
list.
In a voice call, the system first uses the rule defined by the first-rule command for number substitution. If
this rule fails to apply or is not configured, it tries to apply all other rules in order until one or none of them
applies.
Examples
# Specify rule 4 in number substitution list 20 as the preferred 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
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
Default command level
2: System level
Parameters
all: Specifies all calling number match templates.
match string: Match template in the format of { [ + ] string [ $ ] | $ }, with a maximum length of 31
characters. Each part in a match template is described as follows:
Plus sign (+): The sign itself does not have special meanings. It only indicates that the following
string is an effective number and the number is E.164-compliant.
Dollar sign ($): When it appears at the end of the match template, it indicates the end of a calling
number, that is, only the calling number completely matching all characters before "$" can
originate calls. When it does not appear, calling numbers matching the string argument can
originate calls. When it appears separately, it indicates a null calling number.