R2511-HP MSR Router Series Voice Configuration Guide(V5)

169
Configuring TCP to carry outgoing SIP calls
Network requirements
Two routers Router A and Router B work as SIP UAs. It is required that the SIP calls from Telephone 1111
to telephone 2222 be carried over TCP.
Figure 47 Network diagram
Confguration procedure
1. Configure Router A:
# Configure the IP address of the Ethernet interface.
<RouterA> system-view
[RouterA] interface ethernet 2/1
[RouterA-Ethernet2/1] ip address 192.168.2.1 255.255.255.0
[RouterA-Ethernet2/1] quit
# Specify TCP as the global transport layer protocol for outgoing SIP calls.
[RouterA] voice-setup
[RouterA-voice] sip
[RouterA-voice-sip] transport tcp
[RouterA-voice-sip] quit
# Configure the voice entities.
[RouterA-voice] dial-program
[RouterA-voice-dial] entity 2222 voip
[RouterA-voice-dial-entity2222] address sip ip 192.168.2.2
[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
[RouterA-voice-dial-entity1111] quit
[RouterA-voice-dial] quit
2. Configure Router B:
# Configure the IP address of the Ethernet interface.
<RouterB> system-view
[RouterB] interface ethernet 2/1
[RouterB-Ethernet2/1] ip address 192.168.2.2 255.255.255.0
[RouterB-Ethernet2/1] quit
# Specify TCP as the transport layer protocol for incoming SIP calls. (Optional, because the TCP
listening port is enabled by default.)