[OpenSIPS-Users] question about failure_route handling

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jan 20 13:08:10 CET 2009


Hi Inaki,

maybe it is not the case  here (depends on the version), but in the 
OpenSIPS 1.5 is no longer needed to do the append_branch() in the 
failure route in order to use the RURI - see :
    http://lists.opensips.org/pipermail/users/2009-January/002365.html

Regards,
Bogdan

Iñaki Baz Castillo wrote:
> 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.
>
>   




More information about the Users mailing list