R0106-HP MSR Router Series Voice Configuration Guide(V7)

72
[RouterA-voice-dial-substitute1] rule 0 ^010....$ ....
[RouterA-voice-dial-substitute1] 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-substitute1] rule 0 ^010....$ ....
[RouterA-voice-dial-substitute1] 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.
[RouterA-voice-dial-entity1001] substitute called 1
When you use Telephone A to call number 0101001, VoIP entit y 1001 replaces 0101001 with 1001 and
sends the call to the destination address 1.1.1.2. Then Telephone B rings.
Configuring voice interface 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-substitute1] rule 0 ^010....$ ....
[RouterA-voice-dial-substitute1] 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
[RouterA-voice-dial] quit
[RouterA-voice] quit
# Apply number substitution rule list 1 to the called number on FXS interface 2/1/1.
[RouterA] subscriber-line 2/1/1