<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 18/08/2015 14:43, Fred Posner wrote:<br>
    </div>
    <blockquote cite="mid:55D3285F.2040904@palner.com" type="cite">
      <pre wrap="">On 08/18/2015 08:36 AM, Jean-Marie Baran wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,

I am trying to have RTPproxy works with Kamailio behind a NAT. As it
seems RTPproxy cannot handle NAT natively, I installed RTPproxy 1.2.1 by
miconda: <a class="moz-txt-link-freetext" href="https://github.com/miconda/rtpproxy">https://github.com/miconda/rtpproxy</a>


</pre>
      </blockquote>
      <pre wrap="">
This one is good or the new 2.0 version also supports the -A flag. You
may want to run in debug or info mode to see if you're passing packets.
</pre>
    </blockquote>
    <br>
    Ok, that's good to know that version 2 also handle it. I did not pay
    attention.<br>
    <br>
    <blockquote cite="mid:55D3285F.2040904@palner.com" type="cite">
      <pre wrap="">
Something like:

rtpproxy -A PUBLICIP -F -l PRIVATEIP -m 10000 -M 20000 -s
udp:127.0.0.1:7722 -d INFO

Making sure that the m (minimum) and M (maximum) ports match what you
have opened/forwarded on your firewall.

</pre>
      <blockquote type="cite">
        <pre wrap="">
My question here is what should be the addresses in the SDP when
redirected from Kamailio to the client ?

Cheer,
-- 
*Jean-Marie Baran*

</pre>
      </blockquote>
      <pre wrap="">
The address should be your public ip (for outside connections), which
should also be in the advertised statement within kamailio.
</pre>
    </blockquote>
    <br>
    Okay, so now Kamailio receives an ACK with SDP, and replace the
    c=/o= fields with its public IP. Then it transmits the ACK to the
    client which in turn send its RTP packets to the public IP of
    Kamailio (that is, the router in front of Kamailio). However there
    is no trace of the RTP packets on the machine running Kamailio.<br>
    <br>
    Because I like graphics:<br>
    <br>
    <font face="Courier 10 Pitch">Client          Kamailio         
      Router          Third party SIP Server<br>
         |                |                |                      |<br>
         |                |                |<------ACK (SDP)------|<br>
         |                |<---ACK (SDP)---|                      |<br>
         |<---ACK (SDP)---|                |                      |<br>
         |                |                |                      |<br>
         |-------RTP---------------------->|?                     |<br>
         |                |                |                      |<br>
      <br>
          {________Private network________} {______Internet______}<br>
      <br>
      <font face="sans-serif">The question mark denotes the fact that I
        lose trace of RTP packets here. Any idea why the packets are not
        relayed ?</font><br>
    </font>
    <blockquote cite="mid:55D3285F.2040904@palner.com" type="cite">
      <pre wrap="">
--fred
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <title></title>
      <b>Jean-Marie Baran</b><br>
      AMA developer
      <div class="moz-signature"> <br>
        Skype: jeanmarie.baran<br>
        Email: <a href="mailto:jean-marie.baran@ama.bzh">jean-marie.baran@ama.bzh</a><br>
        <a href="http://www.advancedmedicalapplications.com">www.advancedmedicalapplications.com</a><br>
        <img alt="AMA Logo" src="cid:part3.02050902.07060109@ama.bzh"
          height="100" width="284"><br>
      </div>
    </div>
  </body>
</html>