R2511-HP MSR Router Series Voice Configuration Guide(V5)
175
Configuring SRTP for SIP calls
Network requriements
Two routers Router A and Router B work as SIP UAs. It is required that SIP calls use the SRTP protocol to
protect call conversations.
Figure 50 Network diagram
Configuration 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 SRTP as the media flow protocol for SIP calls.
[RouterA] voice-setup
[RouterA-voice] sip
[RouterA-voice-sip] media-protocol srtp
[RouterA-voice-sip] quit
# Specify 1111 as a local number of POTS voice entity 1111.
[RouterA-voice-dial] entity 1111 pots
[RouterA-voice-dial-entity1111] line 1/0
[RouterA-voice-dial-entity1111] match-template 1111
# Configure VoIP voice entity 2222, and configure the IP address of the peer VoIP gateway as
192.168.2.2, and the called number as 2222.
[RouterA-voice] dial-program
[RouterA-voice-dial] entity 2222 voip
[RouterA-voice-dial-entity2222] address sip ip 192.168.2.2 port 5060
[RouterA-voice-dial-entity2222] match-template 2222
[RouterA-voice-dial-entity2222] 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 SRTP as the media flow protocol for SIP calls.
[RouterB] voice-setup










