R0106-HP MSR Router Series Voice Command Reference(V7)
108
[Sysname-voice] dial-program
[Sysname-voice-dial] number-substitute 1
[Sysname-voice-dial-substitute1] dot-match right-left
[Sysname-voice-dial-substitute1] rule 0 ^..10...$ ..267410..
If you dial the number 9810765, the number that matches the input template is 8765, and the
output number is 8726741065.
Examples
# Configure a number substitution rule for number substitution rule list 1. The input template is ^..01...$,
and the output template is ...1.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] number-substitute 1
[Sysname-voice-dial-substitute1] rule 0 ^..01...$ ...1
Related commands
• dot-match
• first-rule
• substitute (Voice dial-program view)
• substitute (Voice entity view/Voice subscriber-line view)
send-number
Use send-number to configure the number sending mode.
Use undo send-number to restore the default number sending mode.
Syntax
send-number { digit-number | all | truncate }
undo send-number
Default
The truncate mode is used.
Views
POTS entity view
Predefined user roles
network-admin
Parameters
digit-number: Specifies the number of digits (extracted from the end of a number) to be sent, in the range
of 0 to 31. It must be no greater than the total number of digits in the called number.
all: Sends all the digits of a called number.
truncate: Sends a truncated called number. When the match-template command configured on the voice
entity contains dots (.), only the digits that match the dots are sent.
Examples
# Configure POTS entity 10 to send all the digits of called numbers.