[Serusers] Selective t_on_failure ?

Andres andres at telesip.net
Fri Jan 30 23:17:00 CET 2004


Andres wrote:

> Bogdan-Andrei IANCU wrote:
>
>> Hi Andres,
>>
>> The simplest solution is to register all the time a failure route for 
>> INVITES (as you do now) and from the failure route before doing fork 
>> (proxying to the other server) check the reply code and skip the one 
>> like busy :
>>
>> t_on_failure[x] {
>>    if ( !t_check_status("486|408") ) {
>>        append("xxxxx");
>>        t_relay();
>>    }
>> }  
>
>
I just tested this new function and it works as described.

Thanks Bogdan!

-- 
Andres
Network Admin
http://www.telesip.net





More information about the sr-users mailing list