Command Reference Guide

3Com Router 5000 Family and Router 6000 Family match-template 185
Command Reference
match-template
Purpose Use the match-template command to configure the match template for a voice
entity.
Use the
undo match-template command to delete this configuration.
Syntax match-template match-string
undo match-template
Parameters match-string
Match template. Its format is [ + ] { string [ T ] [ $ ] | T },
with the largest length of 31 characters. The
characters are described in the following.
+: Appears at the beginning of a calling number to
indicate that the number is E.164-compliant.
$: Is the last character, indicating the end of the
number. That means the entire called number must
match all the characters before “$” in the string.
T: Timer. It means the system is waiting the
subscriber for dialing any number till: the number
length threshold is exceeded; the subscriber inputs
the terminator; or the timer expires. It seems to
subscribers that T matches any number in any
length.
string: A string composed of any characters of
“0123456789ABCD#*.!+%[]()-”. The meanings of
the characters are described in the following table:
Tabl e 1 Meanings of the characters in string
Character Meaning
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. But its appearance at the beginning of the whole
number means the number is E.164-compliant.
- Hyphen. It connects two values (the smaller one before it and the
bigger one after it) to indicate a range. For example, “1-9” means
numbers from 1 to 9 (inclusive).
% The character or characters right in front of it does not appear, or
appears several times.
[ ] Select one character from the group. For example, [1-36A] can
match only one character among 1, 2, 3, 6, and A.