R0106-HP MSR Router Series Voice Configuration Guide(V7)
65
Configuring a number match mode
Two number match modes are available: longest match and shortest match.
Suppose you have configured match-template 0106688 on a voice entity and match-template
01066880011 on another voice entity.
When a subscriber dials 01066880011:
• If shortest match is used, the router matches and calls the number 0106688.
• If longest match is used, the router matches and calls the number 01066880011.
When a subscriber dials 0106688:
• If shortest match is used, the router matches and calls the number 0106688.
• If longest match is used, the router waits until the dial timer expires. Then the router matches the
received number against match templates. If a match is found, the router calls the matching number.
If no match is found, the router releases the call.
You can configure a terminator that identifies the end of a number. For example, suppose the terminator
is the pound sign #. When a subscriber dials 0106688#, the router immediately matches the number
0106688 with match templates regardless of whether longest match is used. If a match is found, the
router calls the matching number.
Procedure
To configure a number match mode:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter voice view.
voice-setup N/A
3. Enter dial program view.
dial-program N/A
4. Configure a number match
mode.
number-match { longest |
shortest }
By default, shortest match is used.
5. Configure a terminator.
terminator character
By default, no terminator is
configured.
Examples
As shown in Figure 25, configure number match modes for calls from Telephone A to Telephones B and
C.