[OpenSIPS-Users] question about failure_route handling

Iñaki Baz Castillo ibc at aliax.net
Tue Jan 20 09:59:12 CET 2009


2009/1/20 Woody Dickson <woodydickson at gmail.com>:
> 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
<ibc at aliax.net>


More information about the Users mailing list