R0106-HP MSR Router Series Voice Configuration Guide(V7)
108
[RouterA-GigabitEthernet2/1/1] quit
# Configure TCP as the global transport protocol for outgoing SIP calls.
[RouterA] voice-setup
[RouterA-voice] sip
[RouterA-voice-sip] session transport tcp
[RouterA-voice-sip] quit
# Configure the called number as 2222 for VoIP entity 2222, and configure the destination IP
address as 192.168.2.2.
[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
# Configure local number 1111 for POTS entity 1111, and bind FXS interface 2/2/1 to the POTS
entity.
[RouterA-voice-dial] entity 1111 pots
[RouterA-voice-dial-entity1111] line 2/2/1
[RouterA-voice-dial-entity1111] match-template 1111
2. Configure Router B:
# Configure an IP address for GigabitEthernet 2/1/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] ip address 192.168.2.2 255.255.255.0
[RouterB-GigabitEthernet2/1/1] quit
# Enable the TCP listening port. By default, the TCP listening port is enabled.
[RouterB] voice-setup
[RouterB-voice] sip
[RouterB-voice-sip] transport tcp
[RouterB-voice-sip] quit
# Configure local number 2222 for POTS entity 2222 and bind FXS interface 2/2/1 to the POTS
entity.
[RouterB-voice] dial-program
[RouterB-voice-dial] entity 2222 pots
[RouterB-voice-dial-entity2222] line 2/2/1
[RouterB-voice-dial-entity2222] match-template 2222
# Configure the destination address 192.168.2.1 and number 1111 for VoIP entity 1111.
[RouterB-voice-dial]entity 1111 voip
[RouterB-voice-dial-entity1111] address sip ip 192.168.2.1
[RouterB-voice-dial-entity1111] match-template 1111
Verifying the configuration
# Place a call to verify that phone 1111 can call phone 2222 over TCP.
# Execute the display voice sip connection tcp command to display TCP connection information.