<div dir="ltr"><div>I ended up doing this right before the call to loose_route():</div><div><br></div><div><div>                if ((is_method("ACK") || is_method("BYE")) && !isdsturiset()) {</div>
<div>                   handle_ruri_alias();</div><div>                   if ($du != $null) {</div><div>                      $ru = $du;</div><div>                      $du = $null;</div><div>                   }</div><div>
                }</div></div><div><br></div>Thanks a lot Daniel!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 29, 2013 at 10:58 AM, Marc Soda <span dir="ltr"><<a href="mailto:msoda@coredial.com" target="_blank">msoda@coredial.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Thu, Aug 29, 2013 at 3:53 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">what device is at 701? The 200ok receved from it has the contact
    address with the IP of kamailio:<div><span style="color:rgb(34,34,34)"></span></div></div></blockquote><div><br></div></div><div>SFLPhone</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div bgcolor="#FFFFFF" text="#000000">
    It seems there is a NAT between your kamailio and 701, as kamailio
    adds alias parameter to Contact in 200ok. That can be used to route
    the ack, like:<br>
    <br>
    handle_ruri_alias();<br>
    $ru = $du;<br>
    $du = $null;<br></div></blockquote><div><br></div></div><div> There is no NAT in this scenario, although NAT support is enabled as we will have to deal with it.  Should I still use handle_ruri_alias()?</div><div><br>
</div>
<div>Thanks,</div><div>Marc</div></div>

</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div>Marc Soda, Sr. Systems Engineer</div><div><b><font color="#000099">CoreDial, LLC</font></b> | <a href="http://www.coredial.com" target="_blank">www.coredial.com</a></div>
<div><br></div><div>1787 Sentry Parkway West, Building 16, Suite 100, Blue Bell, PA 19422</div><div>Office: (215) 297-4400 x203 | Fax: (215) 297-4401 | Email: <a href="mailto:msoda@coredial.com" target="_blank">msoda@coredial.com</a></div>
<div><br></div><div>- - - - -</div><div><br></div><div>The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission,  dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.</div>

</div>