Command Reference Guide

3Com Router 5000 Family and Router 6000 Family rule 239
Command Reference
rule
Purpose Use the rule command to configure the number-substitute rules.
Use the undo rule command to delete the specified or all number-substitute rules.
Syntax rule rule-tag input-number output-number
undo rule { rule-tag | all }
Parameters all
Deletes all number substitution rules.
rule-tag
Number of a rule. Valid values are 0 to 127.
input-number
Input string for number substitute. Format of the
number is [ ^ ] [ + ]
string [ $ ], with the maximum
length of 31 digits. The characters are described in the
following:
^: Indicates a number must be matched from the
first character. When the system matches a
subscriber number with the match string, it must
begin from the first character of the subscriber
number.
+: Appears at the beginning of a calling number to
indicate that the number is E.164 compliant.
$: Indicates that the last character of the number
must be matched, that is, the last character of the
number must match the last character of the match
string.
string: String composed of any characters of
“0123456789#*.!%”. The characters are
described in the following table:
Tabl e 1 Meanings of the characters in string
output-number
Output string for number substitute. It is composed of
any characters of “0123456789#*.”, with the largest
length of 31 digits. The meanings of the characters are
shown in the table above.
Field Description
0-9 Numbers from 0 to 9. Each means a digit.
# and * Each means a valid digit.
. A wildcard. It can match any digit of a valid number. For example,
555. . . . matches any string that begins with 555 and with four
additional characters.
! The character or characters right in front of it does not appear or
appears once. For example, 56!1234 can match 51234 and 561234.
+ The character or characters right in front of it appears once or
several times.
% The character or characters right in front of it does not appear or
appears several times.