<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I have a kamailio proxy in front of FreeSWITCH.</p>
    <p>Whenever FreeSWITCH initiates the dialog (e.g. sends an INVITE),
      kamailio doesn't use the 'received' parameter and it forwards to
      the RFC1918 IP address. The initial INVITE from FreeSWITCH has the
      following headers:</p>
    <tt>To: <a class="moz-txt-link-rfc2396E"
        href="sip:1001@192.168.1.200:5063"><sip:1001@192.168.1.200:5063></a></tt><tt><br>
    </tt><tt>Route: <a class="moz-txt-link-rfc2396E" href="sip:1.2.3.4"><sip:1.2.3.4></a>;lr;received=<a
        class="moz-txt-link-freetext" href="sip:5.6.7.8:5063">sip:5.6.7.8:5063</a></tt><br>
    <br>
    Where <tt>1.2.3.4</tt> is the kamailio public IP and<tt> 5.6.7.8</tt>
    is the public IP of the UAC behind NAT.<br>
    I have <tt>modparam("path", "use_received", 1)</tt> in my config
    file and to my understanding that should be sufficient to route to
    the proper IP, but kamailio keeps sending INVITEs to <tt>192.168.1.200</tt>.<br>
    <br>
    Can anyone tell me what am I missing?<br>
    Thanks!<br>
    <br>
    Kind regards,<br>
    Iskren<br>
  </body>
</html>