Configuring number substitution, Network requirements, Configuration procedure – H3C Technologies H3C MSR 5600 User Manual
Page 84
74
Configuring number substitution
Network requirements
As shown in
, configure number substitution on the routers so departments in different areas can
call each other by using the area code of the destination area plus a four-digit local number. For example,
to use phone 1688 of the F department in area B to call phone 6788 of the M department in area A, dial
the number 0103366, in which 3366 is the number of the M department in area B. On phone 6788, the
calling number 1688 is displayed as 0211234, which is the area code of area A plus the number of the
F department in area A.
Figure 30 Network diagram
Configuration procedure
The following only provides the number substitution configuration for calls from area B to area A.
1.
Configure Router B:
# Create number substitution rule list 21101 and add rules to the list.
[RouterB] voice-setup
[RouterB-voice] dial-program
[RouterB-voice-dial] number-substitute 21101
[RouterB-voice-dial-substitute21101] rule 1 ^0101688$ 0001
[RouterB-voice-dial-substitute21101] rule 2 ^0103366$ 0002
[RouterB-voice-dial-substitute21101] rule 3 ^0102323$ 0003
[RouterB-voice-dial-substitute21101] quit
# Create number substitution rule list 21102 and add rules to the list.
[RouterB-voice-dial] number-substitute 21102
[RouterB-voice-dial-substitute21102] rule 1 ^1688$ 0210001
[RouterB-voice-dial-substitute21102] rule 2 ^3366$ 0210002
[RouterB-voice-dial-substitute21102] rule 3 ^2323$ 0210003
[RouterB-voice-dial-substitute21102] quit
# Configure the match template "010...." to match called numbers, and set the destination IP
address as 1.1.1.1 for VoIP entity 10.
[RouterB-voice-dial] entity 10 voip
[RouterB-voice-dial-entity10] match-template 010....
[RouterB-voice-dial-entity10] address sip ip 1.1.1.1
WAN
F Dept. 1688
S Dept. 2323
FXO 1/0
PBX
Eth2/1
2.2.2.2/24
Eth2/1
1.1.1.1/24
FXO 1/0
PBX
F Dept 1234
S Dept. 6565
Router A
Router B
B area code: 021
A area code: 010
M Dept. 3366
M Dept. 6788