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

106
# Configure user name routerB, plaintext password 7890, and domain name server1.
[RouterB-voice-dial-entity2222] user routerB password simple 7890 realm server1
# Configure VoIP entity 2222 to get the call destination address from the proxy server and to
match number 1111.
[RouterB-voice-dial-entity2222] quit
[RouterB-voice-dial] entity 1111 voip
[RouterB-voice-dial-entity1111] address sip proxy
[RouterB-voice-dial-entity1111] match-template 1111
[RouterB-voice-dial-entity1111] quit
Verifying the configuration
# After the routers register phone numbers on the registrar, place calls to verify that phone 1111 a n d
phone 2222 can call each other through the SIP proxy server.
# Execute the display voice sip register-status command to display the registration state for phones 1111
and 2222.
# Execute the display voice sip call command to display the SIP call information.
Configuring SIP calling through DNS
Network requirements
As shown in Figure 37, configure Router A to get the call destination address through DNS, and configure
Router B to use a static call destination address so the phones 1111 and 2222 can call each other.
Figure 37 Network diagram
Configuration procedure
1. Configure Router A:
# Configure an IP address for GigabitEthernet 2/1/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 192.168.2.1 255.255.255.0
[RouterA-GigabitEthernet2/1/1] quit
# Map the IP address 192.168.2.2 to the host name cc.news.com.
[RouterA] ip host cc.news.com 192.168.2.2
# Configure the VoIP entity 2222 to call the destination through domain name cc.news.com and
to match number 2222.
[RouterA] voice-setup
[RouterA-voice] dial-program
[RouterA-voice-dial] entity 2222 voip
[RouterA-voice-dial-entity2222] address sip dns cc.news.com port 5060
[RouterA-voice-dial-entity2222] match-template 2222
[RouterA-voice-dial-entity2222] quit