<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Hello,</p>
    <p>the mangler module does not have any idea of inbound/outbound
      directions, so you can use it for any of them.</p>
    <p><br>
    </p>
    <p>Also, the nathelper module should have a function allowing to
      change the ip in the sdp, iirc.</p>
    <p><br>
    </p>
    <p>On the other hand, if you use rtppengine for the calls, then the
      ips should be replaced by it.</p>
    <p><br>
    </p>
    <p>Do not forget to use msg_apply_changes() in case you want those
      changes to be visible immediately in the configuration file.</p>
    <p><br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 29.07.20 13:18, Edward Romanenco
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM0PR04MB6692FFEDE7A9ECDE85AD9C5BC7700@AM0PR04MB6692.eurprd04.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        Hey guys,</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <div style="margin: 0px; font-size: 12pt; font-family: Calibri,
          Arial, Helvetica, sans-serif; color: black; background-color:
          rgb(255, 255, 255)">
          I am working on a project involving<span> </span><span
            style="margin: 0px">Kamailio</span><span> </span>dockerezation,
          which is meant to run alongside Freeswitch and RTPEngine
          containers, on the basis of a Docker-Compose file which is
          launched on top of a CentOS 7.7 host system<span
            style="margin: 0px">.</span></div>
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        Anyway, I would love to know if there is any way to manipulate /
        mask the IP addresses that are being appended to a status 183
        response for an incoming invite.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Calibri, Arial,
          Helvetica, sans-serif; font-size: 12pt;">For some reason which
          I am trying to figure out in parallel, Freeswitch uses the
          local network bridge subnet instead of the defined external
          RTP IPs, and I was wondering - Can I manipulate them using
          Kamailio? I know that </span><span style="color: rgb(0, 0, 0);
          font-family: Calibri, Arial, Helvetica, sans-serif; font-size:
          12pt;">Mangler module can do it for outbound calls, but can I
          do the same for inbound?</span><br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span>v=0.<br>
        </span>
        <div>o=FreeSWITCH 1595974788 1595974789 IN IP4 172.18.0.40.<br>
        </div>
        <div>s=FreeSWITCH.<br>
        </div>
        <div>c=IN IP4 172.18.0.40.<br>
        </div>
        <div>t=0 0.<br>
        </div>
        <div>m=audio 45878 RTP/AVP 8 101.<br>
        </div>
        <div>a=rtpmap:8 PCMA/8000.<br>
        </div>
        <div>a=rtpmap:101 telephone-event/8000.<br>
        </div>
        <span>a=fmtp:101 0-16</span><br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span><br>
        </span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span>Edward</span></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>