beautypg.com

Verifying the configuration – H3C Technologies H3C MSR 5600 User Manual

Page 85

background image

75

# Apply the number substitution rule list 21101 to called numbers on VoIP entity 10, which will

change the called numbers 0101688, 0103366, and 0102323 into 0001, 0002, and 0003
respectively.

[RouterB-voice-dial-entity10] substitute called 21101

# Apply the number substitution rule list 21102 to calling numbers on VoIP entity 10, which will

change the calling numbers 1688, 3366, and 2323 into 0210001, 0210002, and 0210003

respectively.

[RouterB-voice-dial-entity10] substitute calling 21102

2.

Configure Router A:
# Create number substitution rule list 101 and add rules to the list.

system-view

[RouterA] voice-setup

[RouterA-voice] dial-program

[RouterA-voice-dial] number-substitute 101

[RouterA-voice-dial-substitute101] rule 1 ^0001$ 1234

[RouterA-voice-dial-substitute101] rule 2 ^0002$ 6788

[RouterA-voice-dial-substitute101] rule 3 ^0003$ 6565

[RouterA-voice-dial-substitute101] quit

# Create number substitution rule list 102 and add rules to the list.

[RouterA-voice-dial] number-substitute 102

[RouterA-voice-dial-substitute102] dot-match left-right

[RouterA-voice-dial-substitute102] rule 1 ^...0001$ ...1234

[RouterA-voice-dial-substitute102] rule 2 ^...0002$ ...6788

[RouterA-voice-dial-substitute102] rule 3 ^...0003$ ...6565

[RouterA-voice-dial-substitute102] quit

# Apply the number substitution rule list 101 to the called numbers of incoming calls, which will

change the called numbers 0001, 0002, and 0003 into 1234, 6788, and 6565 respectively.

[RouterA-voice-dial] substitute incoming-call called 101

# Apply the number substitution rule list 102 to the calling numbers of incoming calls, which will
change the called numbers 0210001, 0210002, and 0210003 into 0211234, 0216788, and

0216565 respectively.

[RouterA-voice-dial] substitute incoming-call calling 102

# Configure the match template "…." for POTS entity 1010, bind line 1/0 to the entity, and

configure the entity to send all the digits of a called number.

[RouterA-voice-dial] entity 1010 pots

[RouterA-voice-dial-entity1010] match-template ....

[RouterA-voice-dial-entity1010] line 1/0

[RouterA-voice-dial-entity1010] send-number all

Verifying the configuration

Use phone 1688 to dial the number 0103366. Then phone 6788 rings and the displayed calling number

is 0211234.
During the calling process, Router B changes the calling number 1688 into 0210001 and changes the

called number 0103366 into 0002, and then Router A changes 0210001 into 0211234 and changes

0002 into 6788.