<div dir="auto">It looks like rtpengine has to be a bridge between docker-compose network and external ( for docker compose ) net.<div dir="auto"><br></div><div dir="auto">First of all there is an option of rrpengine to listen 2 interfaces, which can be the same interface but one of them can be advertised to external ip.</div><div dir="auto">So you can give aliases to those virtual interfaces and use flag "direction" when call rtpengine module in kamailio.</div><div dir="auto"><br></div><div dir="auto">Also you can use "media-addr" flag when call rtpengine module instead using direction flag, this is more flexible but more tricky.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 4 Aug 2020, 10:30 Daniel-Constantin Mierla, <<a href="mailto:miconda@gmail.com" rel="noreferrer noreferrer" target="_blank">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div>
    <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>On 29.07.20 13:18, Edward Romanenco
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      
      <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></fieldset>
      <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer noreferrer noreferrer" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer noreferrer noreferrer" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" rel="noreferrer noreferrer noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer noreferrer noreferrer" target="_blank">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" rel="noreferrer noreferrer noreferrer" target="_blank">https://www.paypal.me/dcmierla</a></pre>
  </div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer noreferrer noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>