<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Yury,<br>
      <br>
      Why do you need to update the incoming SDP before engaging
      RTPproxy ? Just pass to it whatever you get into SDP (even if
      private) and let rtpproxy to "learn" the correct IP:port of the
      media end points based on the incoming traffic. <br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
    <div class="moz-cite-prefix">On 11/14/2017 04:05 AM, Yury Kirsanov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD1_seuG1rhXiMuGfs6NoQshfw_5MdA8HQtFNroVZ+2eG-ohRw@mail.gmail.com">
      <div dir="ltr">Hi,
        <div>I have a problem with remote client who can't properly
          configure NAT and is sending private IP in all SDP and SIP
          packets. I've resolved issues with registration but can't
          resolve the issue with SDP. My topology is as following:</div>
        <div><br>
        </div>
        <div><Client> ----- <NAT router> ------- <RTP
          Proxy> ---------- <OpenSIPS> -------- <NAT>
          ----------- <PBX></div>
        <div><br>
        </div>
        <div>So, I need to simultaneously engage RTP Proxy to bridge
          external Internet and our local LAN and need to rewrite SDP
          body of original Client's packet with received IP address. If
          I'm doing fix_nated_sdp and then rtpproxy_offer - I'm getting
          doubled IPs in SDP message, like this:<br>
          <br>
        </div>
        <div>
          <div class="gmail-WordSection1">
            <p class="MsoNormal"
              style="margin-bottom:0.0001pt;line-height:normal"><span
                style="font-size:10pt;font-family:"Segoe
                UI",sans-serif;color:black">100.11.100.200192.168.20.200</span></p>
            <p class="MsoNormal"
              style="margin-bottom:0.0001pt;line-height:normal"><span
                style="font-size:10pt;font-family:"Segoe
                UI",sans-serif;color:black"><br>
              </span></p>
            <p class="MsoNormal"
              style="margin-bottom:0.0001pt;line-height:normal"><span
                style="font-size:10pt;font-family:"Segoe
                UI",sans-serif;color:black">Is there any way to
                update SDP of client's packet and then command RTP Proxy
                to use updated IP? Thanks!</span></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>