beautypg.com

Examples, Configuring global number substitution, Configuring voice entity number substitution – H3C Technologies H3C MSR 5600 User Manual

Page 80

background image

70

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.

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.

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.

[RouterA-voice-dial-entity1001] substitute called 1

When you use Telephone A to call number 0101001, VoIP entity 1001 replaces 0101001 with 1001 and
sends the call to the destination address 1.1.1.2. Then Telephone B rings.