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

46
Figure 20 Network diagram
Configuration procedure
1. Configure Router A:
# Configure the IP address 1.1.1.1/24 for interface GigabitEthernet 1/0/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] ip address 1.1.1.1 255.255.255.0
[RouterA-GigabitEthernet1/0/1] quit
# Create a timeslot set on interface E1 2/4/1.
[RouterA] controller e1 2/4/1
[RouterA-E1 2/4/1] timeslot-set 1 timeslot-list 1-31 signal r2
[RouterA-E1 2/4/1] quit
# Configure the local number 0101001 for POTS entity 1001, and bind the digital voice interface
line 2/4/1:1 to the POTS entity.
[RouterA-voice-dial] entity 1001 pots
[RouterA-voice-dial-entity1001] match-template 0101001
[RouterA-voice-dial-entity1001] line 2/4/1:1
[RouterA-voice-dial-entity1001] send-number all
[RouterA-voice-dial-entity1001] quit
# Configure the local number 0101002 for PORTS entity 1002, and bind the digital voice
interface line 2/4/1:1 to the POTS entity.
[RouterA-voice-dial] entity 1002 pots
[RouterA-voice-dial-entity1002] match-template 0101002
[RouterA-voice-dial-entity1002] line 2/4/1:1
[RouterA-voice-dial-entity1002] send-number all
[RouterA-voice-dial-entity1002] quit
# Configure the called number template 0755…. for VoIP entity 0755, and configure the
destination IP address as 2.2.2.2.
[RouterA-voice-dial] entity 0755 voip
[RouterA-voice-dial-entity755] match-template 0755....
[RouterA-voice-dial-entity755] address sip ip 2.2.2.2
2. Configure Router B:
# Configure the IP address 2.2.2.2/24 for interface GigabitEthernet 1/0/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 1/0/1
[RouterB-GigabitEthernet1/0/1] ip address 2.2.2.2 255.255.255.0