[OpenSIPS-Users] loose_route: loop on ACK requests

Alex Balashov abalashov at evaristesys.com
Fri Oct 30 21:05:58 CET 2009


It sounds like OpenSIPS does not realise that the destination domain 
of a hop-by-hop ACK's Request URI is local.

Airton Kuada wrote:

> 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 at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Alex Balashov - Principal
Evariste Systems
Web     : http://www.evaristesys.com/
Tel     : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671



More information about the Users mailing list