sippy / rtpproxy

The RTPproxy is a high-performance software proxy for RTP streams that can work together with Sippy B2BUA, Kamailio, OpenSIPS and SER.
http://rtpproxy.org
BSD 2-Clause "Simplified" License
408 stars 114 forks source link

Reserving four RTP ports per session #107

Closed amarsou88 closed 4 years ago

amarsou88 commented 4 years ago

Hi guys; I have a question. Why RtpProxy reseriving four RTP ports for the same session? Thank you. rtp.log.txt

sobomax commented 4 years ago

It needs two support two independent RTP sessions (A->B, B->A) and two RTCP. Technically you can get number of ports down to just two, by reusing the same port for both incoming and outgoing call legs, but that would make NAT traversal much more difficult and unreliable, so for practical reasons we've settled on a less than ideal usage.

-Max

On Sat., Apr. 11, 2020, 11:21 a.m. amarsou88, notifications@github.com wrote:

Hi guys; I have a question. Why RtpProxy reseriving four RTP ports for the same session? Thank you. rtp.log.txt https://github.com/sippy/rtpproxy/files/4465128/rtp.log.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sippy/rtpproxy/issues/107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABVMJQSR3VMSKEHSW3GHI3RMCYJRANCNFSM4MGDBRTA .

amarsou88 commented 4 years ago

Ok, thank you so much.