<div dir="ltr">Are you using nathelper? it should take care of that for you.<div>although old, this might point in the right direction <a href="https://nil.uniza.sk/configuring-nat-traversal-using-kamailio-31-and-rtpproxy-server/">https://nil.uniza.sk/configuring-nat-traversal-using-kamailio-31-and-rtpproxy-server/</a></div><div> </div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 15, 2020 at 6:47 PM Nuno Miguel Reis <<a href="mailto:nmreis@student.dei.uc.pt">nmreis@student.dei.uc.pt</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi guys.</div><div><br></div><div>I'm replacing a environment where I was using kamailio + freeswitch by another where I'm adding rtpengine to the mix.</div><div>One of the issues I'm having now is when I have a SIP Client behind NAT:</div><div><br></div><div>When I send the INVITE from the SIP Client, the SDP is using the private LAN IP address + the advertised media port, let's admit it's <a href="http://10.10.10.10:5000" target="_blank">10.10.10.10:5000</a> when the call establishes with a public server running kamailio + rtpengine, the actual RTP arrives from the home router public IP on a natted port, let's admit it's <a href="http://100.100.100.100:65100" target="_blank">100.100.100.100:65100</a>, event though, RTPENGINE assumes that RTP stream is coming from <a href="http://100.100.100.100" target="_blank">100.100.100.100</a>:<span style="background-color:rgb(255,0,0)">5000.<span style="background-color:rgb(255,255,255)"> I'm using the '--sip-source' with RTPENGINE to make it use the received ip address instead of the private IP coming in the SDP but I'm not finding anything to make RTPENGINE adapt an start sending the RTP FLOW to the port where he starts receiving the RTP flow from, discarding the SDP media port information.</span></span></div><div><span style="background-color:rgb(255,0,0)"><span style="background-color:rgb(255,255,255)"><br></span></span></div><div><span style="background-color:rgb(255,0,0)"><span style="background-color:rgb(255,255,255)">In my previous setup with freeswitch alone, freeswitch did this transparently. How do you guys solve this issue in RTPENGINE?</span></span></div><div><span style="background-color:rgb(255,0,0)"><span style="background-color:rgb(255,255,255)"><br></span></span></div><div><span style="background-color:rgb(255,0,0)"><span style="background-color:rgb(255,255,255)">Regards,</span></span><br></div><div><div><div dir="ltr">--<br>Nuno Miguel Reis<br>Departamento de Engenharia Informática  <br>Faculdade de
    Ciências e Tecnologia  <br>Universidade de Coimbra<br></div></div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>