[OpenSIPS-Users] loose_route: loop on ACK requests

Daniel Goepp dan at goepp.net
Fri Oct 30 19:35:49 CET 2009


I had a similar problem and it was because I didn't have the proper domain.
Once I added the domain, problem went away.  For example:

opensipsctl domain add sip.mycompany.com

-dg


On Fri, Oct 30, 2009 at 10:00 AM, Airton Kuada <
airtonkuada at celepar.pr.gov.br> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091030/c00a9e40/attachment.htm 


More information about the Users mailing list