Command Reference Guide
186 ● match-template 3Com Router 5000 Family and Router 6000 Family
Command Reference
■ The character or characters in front of "!”, “%”, and “+” are not to be matched
accurately. They are handled similar to the wildcard “.”. Moreover, these symbols
cannot be used alone. There must be a valid digit or digits in front of them.
■ If you want to use “[ ]” and “( )” at the same time, you must use them in the
format “( [ ] )”. Other formats, such as “[ [ ] ]” and “[ ( ) ]” are illegal.
■ “-“ can only be used in “[ ]”, and it only connects the same type of characters, such
as “0-9”. The formats like “0-A” are illegal.
■ The metacharacter "!+%" indicates the times that the characters to the left of the
plus sign in the expression should have one match or sequence of matches in the
target object. In number match, if it matches any digit of a valid telephone
number, it means a complete match. In the longest match mode, after a complete
match, voice gatway will not wait for a user to continue to dial a number. If it
needs to wait for a user to continure to dial a number, refer to T mode.
Example Set 5557922 as the telephone number of voice entity 10.
[3Com -voice-dial-entity10] match-template +5557922
Set 66.... as the match template of voice entity 20.
[3Com -voice-dial-entity20] match-template 66....
Set the match template for the numbers beginning with 661, 662, 663, and 669, and
containing four other digits.
[3Com -voice-dial-entity1] match-template 66[1-39]....
Set the match template for the numbers beginning with 66 and 6602 and containing
four other digits.
[3Com -voice-dial-entity1] match-template 66(02)!....
Set the match template for the numbers beginning with 66 and within the length of
31 digits.
[3Com -voice-dial-entity1] match-template 66T
Set the match template for the numbers beginning with any number and within the
length of 31 digits.
[3Com -voice-dial-entity1] match-template T
View This command can be used in the following views:
■ Voice Entity view
Description The match template defined by the match-template command can be used to
match the number reaching the corresponding voice entity. The voice entity will
( ) A group of characters. For example, (123A) means a string “123A”.
It is usually used with “!”, “%”, and “+”. For example, “408(12)+”
can match 40812 or 408121212. But it cannot match 408. That is,
“12” can appear continuously and it must at least appear once.
Character Meaning