Configuring DNS involved calling for SIP UAs
Network requirements
Two routers work as SIP UAs and SIP calls are made through DNS.
Figure 44 Network diagram
Configuration procedure
1.
Configure Router A:
# Configure the Ethernet interface.
<RouterA> system-view
[RouterA] interface ethernet 2/1
[RouterA-Ethernet2/1] ip address 192.168.2.1 255.255.255.0
# Map the IP address 192.168.2.2 to the host name cc.news.com.
<Sysname> system-view
[Sysname] ip host cc.news.com 192.168.2.2
# Configure voice entities.
<RouterA> system-view
[RouterA] voice-setup
[RouterA-voice] dial-program
[RouterA-voice-dial] entity 2222 voip
[RouterA-voice-dial-entity2222] address sip dns cc.news.com
[RouterA-voice-dial-entity2222] match-template 2222
[RouterA-voice-dial-entity2222] quit
[RouterA-voice-dial] entity 1111 pots
[RouterA-voice-dial-entity1111] line 1/0
[RouterA-voice-dial-entity1111] match-template 1111
2.
Configure Router B:
# Configure the Ethernet interface.
<RouterB> system-view
[RouterB] interface ethernet 2/1
[RouterB-Ethernet2/1] ip address 192.168.2.2 255.255.255.0
# Configure voice entities.
<RouterB> system-view
[RouterB] voice-setup
[RouterB-voice] dial-program
[RouterB-voice-dial] entity 2222 pots
[RouterB-voice-dial-entity2222] line 1/0
[RouterB-voice-dial-entity2222] match-template 2222
164