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
417 stars 114 forks source link

RTPPROXY behind the NAT: -A advaddr1[/advaddr2] -l addr1[/addr2] settings #123

Open yboujraf opened 3 years ago

yboujraf commented 3 years ago

Dear all

I compiled with success the rtpproxy but not sure it is compatible with Kamailio 4.4 on Debian Stretch.

I have rtpproxy & kamailio behind the NAT.

The setup is :

RTPPROXY :

'-A advaddr1[/advaddr2]' parameter and in kamailio adding 'listen=' parameter, could fix my issue?

rtpproxy -u rtpproxy:rtpproxy -A PRIVATE_IP/PUBLIC_IP -s udp:PRIVATE_IP:7722 -l PRIVATE_IP/PUBLIC_IP -m 11000 -M 12000 -d DBUG:LOG_LOCAL5 -p /var/run/rtpproxy/rtpproxy.pid

KAMAILIO :

listen=udp:PRIVATE_IP:5060 advertise PUBLIC_IP:5060 listen=tcp:PRIVATE_IP:5060 advertise PUBLIC_IP:5060

Do I need to add extra code in kamailio routing to enable advertise for NAT ?

Best Regards,