<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 15/01/2020 13.39, Nuno Miguel Reis
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGTw3V7+s_VGGNaz7_F_eOfHY+s4jx+42PWYs4u=J+SEAVz_fA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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" moz-do-not-send="true">100.100.100.100:65100</a>,
event though, RTPENGINE assumes that RTP stream is coming from
<a href="http://100.100.100.100" moz-do-not-send="true">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>
</blockquote>
<p>Rtpengine does this automatically, unless the `asymmetric` flag
is used. You should see a log message about a `confirmed peer
address` as soon as the first RTP is received on a port.</p>
<p>Cheers<br>
</p>
</body>
</html>