If you follow the thread, you will see that I was using : if (has_totag()) { if (loose_route()) { if (is_method("BYE")) { xlog("L_NOTICE", "------------------> LOOSE route"); if (!t_relay()) { sl_reply_error(); } exit; } } } and not if(has_totag()){ if(is_method("BYE")){ xlog("L_NOTICE", "------------------> LOOSE route"); } t_relay(); #relay all in-dialog messages (also BYEs) exit; } Wich was proposed by another user... Anyway, using that, I get : Nov 4 18:48:37 localhost /usr/local/sbin/kamailio[30514]: ------------------> LOOSE route Nov 4 18:48:38 localhost /usr/local/sbin/kamailio[30511]: ------------------> LOOSE route Nov 4 18:48:40 localhost /usr/local/sbin/kamailio[30514]: ------------------> LOOSE route Nov 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) Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]: ERROR:tm:msg_send: udp_send failed Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30511]: ERROR:tm:t_forward_nonack: sending request failed Nov 4 18:48:44 localhost /usr/local/sbin/kamailio[30516]: ------------------> LOOSE route Nov 4 18:48:48 localhost /usr/local/sbin/kamailio[30513]: ------------------> LOOSE route Nov 4 18:48:50 localhost /usr/local/sbin/kamailio[30513]: ------------------> LOOSE route Nov 4 18:48:52 localhost /usr/local/sbin/kamailio[30512]: ------------------> LOOSE route and so on... Then, using Loose-route doesn't help. I am sure I made a mistake somewhere, but I don't know where. In the previous mail you will find my full CFG kind regards, Olivier Iñaki Baz Castillo a écrit : El Miércoles, 4 de Noviembre de 2009, olivier.tay...@gmail.com escribió:dear Iñ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 :)Your code is not correct: if(has_totag()){ if(is_method("BYE")){ xlog("L_NOTICE", "------------------> 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.your message is very helpfull, thanks,Thanks. _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users