<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>To clarify and avoid misleading, rtpproxy should be able to do
      the same as rtpengine for this case<br>
    </p>
    Both modules allow to set the public IP address, by providing it as
    the second parameter to rtp relay manage function. Also, the
    applications themselves have parameters to specify the address to
    advertise.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 25.01.18 11:00, Mark Boyce wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:60F22942-C332-4E96-B9C4-D88695E3ED79@darkorigins.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Morning Arsen
      <div class=""><br class="">
      </div>
      <div class="">Thanks I’ll take a look at that.  Was using RTPProxy
        just through force of habit :-)</div>
      <div class=""><br class="">
      </div>
      <div class="">Mark<br class="">
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On 25 Jan 2018, at 09:53, Arsen <<a
                href="mailto:arsen.semionov@gmail.com" class=""
                moz-do-not-send="true">arsen.semionov@gmail.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div dir="ltr" class="">
                <div class="">Hi Mark,</div>
                <div class=""><br class="">
                </div>
                You can solve this by using rtpengine module, it can
                rewrite SDP offer / answer and replace media addresses
                with correct IPs.
                <div class=""><br class="">
                </div>
                <div class=""> <a
href="https://kamailio.org/docs/modules/5.0.x/modules/rtpengine.html#rtpengine.f.rtpengine_offer"
                    class="" moz-do-not-send="true">https://kamailio.org/docs/modules/5.0.x/modules/rtpengine.html#rtpengine.f.rtpengine_offer</a><br
                    class="">
                </div>
                <div class=""><br class="">
                </div>
                <div class=""><br class="">
                </div>
                <div class="gmail_extra"><br class="" clear="all">
                  <div class="">
                    <div class="gmail_signature"
                      data-smartmail="gmail_signature">
                      <div dir="ltr" class="">
                        <div class="">
                          <div dir="ltr" class="">
                            <div class=""><br class="">
                            </div>
                            <div class=""><span style="font-size:12.8px"
                                class="">Arsen Semionov</span><br
                                class="">
                            </div>
                            <div class=""><a
                                href="http://www.eurolan.info/"
                                target="_blank" class=""
                                moz-do-not-send="true">www.eurolan.info</a></div>
                            <div class="">cell: +442035198881</div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br class="">
                  <div class="gmail_quote">On Thu, Jan 25, 2018 at 11:40
                    AM, Mark Boyce <span dir="ltr" class=""><<a
                        href="mailto:mark@darkorigins.com"
                        target="_blank" class="" moz-do-not-send="true">mark@darkorigins.com</a>></span>
                    wrote:<br class="">
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
                      all<br class="">
                      <br class="">
                      I’m trying to create a relatively simple setup
                      with Kamailio dual homed on public/private ip and
                      asterisk on private ip only.  The idea is load
                      balance / fail over asterisk boxes.<br class="">
                      <br class="">
                      Following the real-time tutorial I have clients
                      registering with Kamailio, Kamailio registering on
                      clients behalf with asterisk as well as invites
                      going through.<br class="">
                      <br class="">
                      However what I’m seeing is that when an invite
                      occurs asterisk offers media on its private ip, as
                      it would. However this is making its way through
                      Kamailio all the way to the client.<br class="">
                      <br class="">
                      After a bit of searching all I can find is people
                      trying to get it working and failing, or putting
                      asterisk on public IP.<br class="">
                      <br class="">
                      So questions - am I doing this completely the
                      wrong way? Should Kamailio alter the media ip of
                      asterisk on the way through or do I need to do
                      that by hand?  Surely someone somewhere has a
                      write up on this already :-)<br class="">
                      <br class="">
                      Thanks<br class="">
                      Mark<br class="">
                      <br class="">
                      ______________________________<wbr class="">_________________<br
                        class="">
                      Kamailio (SER) - Users Mailing List<br class="">
                      <a href="mailto:sr-users@lists.kamailio.org"
                        class="" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br
                        class="">
                      <a
                        href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                        rel="noreferrer" target="_blank" class=""
                        moz-do-not-send="true">https://lists.kamailio.org/<wbr
                          class="">cgi-bin/mailman/listinfo/sr-<wbr
                          class="">users</a><br class="">
                    </blockquote>
                  </div>
                  <br class="">
                </div>
              </div>
              _______________________________________________<br
                class="">
              Kamailio (SER) - Users Mailing List<br class="">
              <a href="mailto:sr-users@lists.kamailio.org" class=""
                moz-do-not-send="true">sr-users@lists.kamailio.org</a><br
                class="">
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br class="">
            </div>
          </blockquote>
        </div>
        <br class="">
        <div class="">
          <div class="">
            <div style="orphans: 2; widows: 2;" class="">Mark</div>
            <div style="orphans: 2; widows: 2;" class="">-- </div>
            <div style="orphans: 2; widows: 2;" class="">Mark Boyce</div>
            <div style="orphans: 2; widows: 2;" class="">Dark Origins
              Ltd</div>
            <div style="orphans: 2; widows: 2;" class="">e: <a
                href="mailto:mark@darkorigins.com" class=""
                moz-do-not-send="true">mark@darkorigins.com</a></div>
            <div style="orphans: 2; widows: 2;" class="">t: 0845 0043
              043</div>
            <div style="orphans: 2; widows: 2;" class="">f: 0845 0043
              044</div>
          </div>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>