R0106-HP MSR Router Series Voice Command Reference(V7)
105
rule
Use rule to configure a number substitution rule.
Use undo rule to remove a number substitution rule or all number substitution rules.
Syntax
rule id input-template output-template [ number-type input-number-type output-number-type |
numbering-plan input-numbering-plan output-numbering-plan ] *
undo rule { id | all }
Default
No number substitution rule is configured.
Views
Number-substitute view
Predefined user roles
network-admin
Parameters
all: Deletes all number substitution rules.
id: Specifies an ID for the substitution rule, in the range of 0 to 31.
input-template: Configures an input template of 1 to 31 characters in the format of [ ^ ] [ + ] string [ $ ].
The following describes the signs in the format:
• Caret (^): Indicates the match begins with the first character of the string.
• Plus sign (+): If the plus sign (+) is at the beginning of the string, the string indicates an E.164
standard number.
• Dollar sign ($): Indicates that the last digit of a number must match the last character of the string.
• string: Consists of characters that can include digits 0 through 9, and pound sign (#), asterisk (*),
dot (.), exclamation point (!), and percent sign (%).
Table 16 Description of characters in a string
Character Meanin
g
0-9
Digits from 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 the
sign does not appear or appears only
once. For example, 56!1234 can
match 51234 and 561234.
These signs must follow a valid digit or
digit string.
Percent sign (%)
Indicates the subexpression before the
sign does not appear or appears
multiple times. For example,
9876(54)% can match 9876,
987654, 98765454, 9876545454,
and so on.