rtp port range

Unanswered Question
Aug 21st, 2009
User Badges:


I have AS5350 and Asterisk IP PBX connected to each other. How to set the RTP ports range using for the SIP media flows at the cisco side ?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Wilson Samuel Fri, 08/21/2009 - 04:14
User Badges:
  • Gold, 750 points or more
  • Community Spotlight Award,

    Mobile User, July 2015

SIP and RTP are two different sets of protocol.

SIP is an industry standard and uses 5060/61 (TCP/UDP) ports.

RTP has a broad range of ports assigned 16384 - 32767 UDP. However different vendors use different ports (e.g. CUCM uses only a number 24576-32767/UDP) hence you may want to check the ASterisk Documentation to make sure you open only concerned ports.


Hope this helps.

Please rate all helpful posts.


Wilson Samuel

Stoyan Stoitsev Fri, 08/21/2009 - 04:54
User Badges:
  • Bronze, 100 points or more


Cisco GWs use the full 16384 - 32767 UDP range.

If you need more specific firewalling you'll need a protocol-aware FW that will open up udp pin-holes based on what was negotiated during the call-setup session.

If you mean to limit the number of ports used to source RTP from your AS - I don't have any idea if it's possible...


Nicholas Matthews Fri, 08/21/2009 - 06:54
User Badges:
  • Red, 2250 points or more

There are no hard-standards that you can guarantee for this.

By default, the gateway will use TCP/UDP 5060, and for SIP-TLS TCP 5061.

The gateway will advertise ports between 16384-32768.

This is no means guarantees that the SIP provider will also. They frequently will use ports from anywhere in the 4000-40000 range. I would probe Asterisk about their UDP port range.



This Discussion