if (is_method("INVITE")) { record_route(); uac_replace_from("sip:997321...@xxxxxx.be"); rewritehost("xxxxxx.be"); } if (has_totag()) { if (loose_route()) { if (is_method("BYE")) { xlog("L_NOTICE", "------------------> LOOSE route"); t_relay();
I think there are too many t_relay(). Just one will suffice. if(has_totag()){ if(is_method("BYE")){ xlog(......); } t_relay(); #relay all in-dialog messages (also BYEs) exit; } Can you try with smth like this? Cheers Marius _______________________________________________ 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