2009/1/20 Woody Dickson <[email protected]>: > Hi, > I am encountering problems with failure route. Does anyone know what > is the cause of this error and how to resolve that? > > > Jan 20 15:18:58 localhost /usr/local/sbin/opensips[7964]: > ERROR:tm:t_forward_nonack: no branch for forwarding > Jan 20 15:18:58 localhost /usr/local/sbin/opensips[7964]: > ERROR:tm:w_t_relay: t_forward_nonack failed > > > Here is what i have in my failure route: > > if (t_was_cancelled()) { > exit; > }; > if (t_check_status("486")) { > prefix("b"); > ds_next_domain(); > route(1); > exit; > }; > if (t_check_status("408") || t_check_status("480")) { > prefix("u"); > ds_next_domain(); > route(1); > exit; > };
You must add "append_branch();" before modifying the RURI in order to generate a new branch and route it. PD: This must is changing and soon it won't be needed. Also, AFAIK, there are already some modules having functions that automatically generate a new branch when running in failure_route. -- Iñaki Baz Castillo <[email protected]> _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
