<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
If you follow the thread, you will see that I was using :<br>
<br>
&nbsp;&nbsp; if (has_totag()) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (loose_route()) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (is_method("BYE")) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_NOTICE", "------------------&gt;&nbsp; LOOSE route");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!t_relay()) <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_reply_error();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp; }<br>
<br>
<br>
and not<br>
<pre wrap="">   if(has_totag()){
         if(is_method("BYE")){
               xlog("L_NOTICE", "------------------&gt;  LOOSE route");
           }
         t_relay(); #relay all in-dialog messages (also BYEs)
         exit;
   }

</pre>
Wich was proposed by another user...<br>
<br>
<br>
Anyway, using that, I get :<br>
<br>
Nov&nbsp; 4 18:48:37 localhost /usr/local/sbin/kamailio[30514]:
------------------&gt;&nbsp; LOOSE route<br>
Nov&nbsp; 4 18:48:38 localhost /usr/local/sbin/kamailio[30511]:
------------------&gt;&nbsp; LOOSE route<br>
Nov&nbsp; 4 18:48:40 localhost /usr/local/sbin/kamailio[30514]:
------------------&gt;&nbsp; LOOSE route<br>
Nov&nbsp; 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
ERROR:core:udp_send: sendto(sock,0xa2b359d0,65564,0,0xa2af4484,16):
Message too long(90) <br>
Nov&nbsp; 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
ERROR:tm:msg_send: udp_send failed <br>
Nov&nbsp; 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]:
ERROR:tm:t_forward_nonack: sending request failed <br>
Nov&nbsp; 4 18:48:44 localhost /usr/local/sbin/kamailio[30516]:
------------------&gt;&nbsp; LOOSE route<br>
Nov&nbsp; 4 18:48:48 localhost /usr/local/sbin/kamailio[30513]:
------------------&gt;&nbsp; LOOSE route<br>
Nov&nbsp; 4 18:48:50 localhost /usr/local/sbin/kamailio[30513]:
------------------&gt;&nbsp; LOOSE route<br>
Nov&nbsp; 4 18:48:52 localhost /usr/local/sbin/kamailio[30512]:
------------------&gt;&nbsp; LOOSE route<br>
<br>
<br>
<br>
<br>
and so on...<br>
<br>
Then, using Loose-route doesn't help.<br>
<br>
I am sure I made a mistake somewhere, but I don't know where.<br>
<br>
In the previous mail you will find my full CFG<br>
<br>
kind regards,<br>
<br>
Olivier<br>
<br>
I&ntilde;aki Baz Castillo a &eacute;crit&nbsp;:
<blockquote cite="mid:200911041637.04869.ibc@aliax.net" type="cite">
  <pre wrap="">El Mi&eacute;rcoles, 4 de Noviembre de 2009, <a class="moz-txt-link-abbreviated" href="mailto:olivier.taylor@gmail.com">olivier.taylor@gmail.com</a> escribi&oacute;:
  </pre>
  <blockquote type="cite">
    <pre wrap=""> dear I&ntilde;aki

 I have a server up and running at this time, my only problem is when I use
 uac_replace_from and receive a Bye from the callee. That's for another
 server.
 The default config doesn't help for that, or maybe I am stupid, that's
 another possibility :)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Your code is not correct:

   if(has_totag()){
         if(is_method("BYE")){
               xlog("L_NOTICE", "------------------&gt;  LOOSE route");
           }
         t_relay(); #relay all in-dialog messages (also BYEs)
         exit;
   }

You must use loose_route() before the t_relay(). If not the Route header are 
not removed so you get a loop. This is well explained in the default config 
file.



  </pre>
  <blockquote type="cite">
    <pre wrap=""> your message is very helpfull, thanks,
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Thanks.

_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a>

  </pre>
</blockquote>
</body>
</html>