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