Configuring a global number match mode
Use the number-match command to determine the number match mode: longest match or shortest match. Suppose you have configured match-template 0106688 and match-template 01066880011 respectively on two voice entities.
When a subscriber dials 01066880011:
If the router is configured to use the shortest match mode, the dialed number will match 0106688. That is, the router will establish a call connection to 0106688 at the remote end, without processing the last four digits 0011.
If the router is configured to use the longest match mode, the dialed number will match 01066880011. That is, the router will establish a call connection to 01066880011 at the remote end.
When a subscriber dials 0106688:
If the router is configured to use shortest match mode, it will match match-template 0106688.
If the router is configured to use longest match mode, it will wait for further digits. After the dial timer expires, the router will ignore the configured longest match mode and automatically use shortest match to establish a call connection.
When a subscriber dials 0106688#, if you configure the router to use longest match mode and the dial terminator "#" on the router, the router will as well ignore the configured longest match mode and use shortest match mode to establish a call connection.
To configure a global number match mode:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter voice view. | voice-setup | N/A |
3. Enter voice dial program view. | dial-program | N/A |
4. Configure a global number match mode. | number-match { longest | shortest } | By default, the shortest match mode is adopted. |