<body>
<pre>Hi all.<br><br>I'm having problems about loose_route(). Opensips is routing ACK requests to itself.<br><br> Follow bellow the code regarding loose_route:<br><br> if (has_totag()) <br> {<br> if (loose_route()) <br> {<br>        if (is_method("BYE"))<br> {<br>         setflag(1); # do accounting ...<br>         setflag(3); # ... even if the transaction fails<br>        } else <br> if (is_method("INVITE")) <br> {<br>                 record_route();<br>                }<br> xlog ("ROTEAMENTO ....... $rm");<br> route(1);<br> } else {<br>                if ( is_method("ACK") ) { //**************** HERE OCCUR THE PROBLEM ****************************<br>                        if ( t_check_trans() ) {<br> xlog ("ENVIANDO ACK COM TRANSACAO ABERTA PARA FRENTE");<br>                                        t_relay();<br>                                        exit;<br>                                } else {<br>                                        # ACK without matching transaction -><br>                                        # ignore and discard<br> xlog ("IGNORANDO ACK SEM TRANSACAO");<br>                                        exit;<br>                                }<br>                        }<br>                        sl_send_reply("404","Not here");<br>                }<br></pre>
</body>