<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    Looking in your SIP trace, I see that in the 200OK Contact, you have
    Contact: &lt;sip:72.XX.XX.140;did=7de.9accc6f5&gt;. , and when
    OpenSIPS is routing the ACK out, it is routing it to<br>
    <br>
     U 182.XX.XX.164:5060 -&gt; 72.XX.XX.140:5060<br>
    ACK sip:72.XX.XX.140;did=7de.9accc6f5 SIP/2.0.<br>
    <br>
    so not sure where exactly is the loop.<br>
    <br>
    Best Regards,<br>
    <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
    <div class="moz-cite-prefix">On 07.04.2015 19:32, Satish Patel
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPgF-fr_VrA=HBkjJMVSncVaPaaPbcnAw1bzzScr7kmsKWSyGg@mail.gmail.com"
      type="cite">
      <div dir="ltr">It is URGENT!! 
        <div><br>
        </div>
        <div>can some one help?  This is very strange issue and i am
          stuck here :( </div>
        <div><br>
        </div>
        <div>loose_route()  sending ACK/BYE itself instead of next hope
          :(</div>
        <div><br>
        </div>
        <div>I have removed all entries from "domain" table but no luck
          :( </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Mar 26, 2015 at 12:09 AM,
          Satish Patel <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>&gt;</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>
                <div>
                  <div>
                    <div>Hi,<br>
                      <br>
                    </div>
                    senario:<br>
                    <br>
                  </div>
                  [UA]-------------[Opensips]---------[Freeswitch]<br>
                  <br>
                  <br>
                </div>
                UA sending correct ACK to freeswitch but Opensips
                loose_route() sending it to itself and it break dialog,
                If use fix_dialog_route() then it works, I don't have
                any IP address added in domain table also. <br>
                <br>
              </div>
              How do i check whether Freeswitch using loose_route for
              strict route? <br>
              <div>
                <div><br>
                  <div>
                    <div>
                      <div><br>
                        I have following script:<br>
                        <br>
                        if (has_totag()) {<br>
                                       <br>
                                        if (loose_route()) {<br>
                                               <br>
                                               if (is_method("BYE")) {<br>
                                                       
                        #setflag(ACC_DO); # do accounting ...<br>
                                                       
                        #setflag(ACC_FAILED); # ... even if the
                        transaction fails<br>
                                                } else if
                        (is_method("INVITE")) {<br>
                                                        # even if in
                        most of the cases is useless, do RR for<br>
                                                        # re-INVITEs
                        alos, as some buggy clients do change route set<br>
                                                        # during the
                        dialog.<br>
                                                        record_route();<br>
                                                }<br>
                        <br>
                                                if
                        (check_route_param("nat=yes"))<br>
                                                        setflag(NAT);<br>
                        <br>
                                                # route it out to
                        whatever destination was set by loose_route()<br>
                                                # in $du (destination
                        URI).<br>
                                                route(relay);<br>
                                             }  else {<br>
                        <br>
                                                if ( is_method("ACK") )
                        {<br>
                                                        if (
                        t_check_trans() ) {<br>
                                                                # non
                        loose-route, but stateful ACK; must be an ACK
                        after<br>
                                                                # a 487
                        or e.g. 404 from upstream server<br>
                                                               
                        xlog("non loose-route section\n");<br>
                                                               
                        #t_relay();<br>
                                                                exit;<br>
                                                        } else {<br>
                                                                # ACK
                        without matching transaction -&gt;<br>
                                                                # ignore
                        and discard<br>
                                                               
                        xlog("ACK without matching transaction\n");<br>
                                                                exit;<br>
                                                        }<br>
                                                }<br>
                        <br>
                        <br>
                        <br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>