HP MSR2000/3000/4000 Router Series Voice Configuration Guide
70
Ste
p
Command
Remarks
10. Apply the number substitution
rule list to the voice entity.
substitute { called | calling }
list-number
By default, no number substitution
rule list is applied to a voice entity.
Examples
This section provides examples for global number substitution and voice entity number substitution.
Figure 28 Network diagram
Configuring global number substitution
# Create number substitution rule list 1 and add a rule to the list.
<RouterA> system-view
[RouterA] voice-setup
[RouterA-voice] dial-program
[RouterA-voice-dial] number-substitute 1
[RouterA-voice-dial-substitute101] rule 0 ^010....$ ....
[RouterA-voice-dial-substitute101] quit
# Configure the destination address as 1.1.1.2 and the called number as 1001 for VoIP entity 1001.
[RouterA-voice-dial] entity 1001 voip
[RouterA-voice-dial-entity1001] address sip ip 1.1.1.2
[RouterA-voice-dial-entity1001] match-template 1001
[RouterA-voice-dial-entity1001] quit
# Apply number substitution rule list 1 to the called number of outgoing calls.
[RouterA-voice-dial] substitute outgoing-call called 1
When you use Telephone A to call number 0101001, Router A replaces 0101001 with 1001 and sends
the call to the destination address 1.1.1.2. Then Telephone B rings.
Configuring voice entity number substitution
# Create number substitution rule list 1 and add a rule to the list.
<RouterA> system-view
[RouterA] voice-setup
[RouterA-voice] dial-program
[RouterA-voice-dial] number-substitute 1
[RouterA-voice-dial-substitute101] rule 0 ^010....$ ....
[RouterA-voice-dial-substitute101] quit
# Configure the destination address as 1.1.1.2 and the called number as 0101001 for VoIP entity 1001.
[RouterA-voice-dial] entity 1001 voip
[RouterA-voice-dial-entity1001] address sip ip 1.1.1.2
[RouterA-voice-dial-entity1001] match-template 0101001
# Apply number substitution rule list 1 to the called number on VoIP entity 1001.










