[sr-dev] handling failed t_relay() when multiple usr locations

Alex Balashov abalashov at evaristesys.com
Sun Mar 7 21:59:22 CET 2010


You might be able to use a branch route ...

On 03/07/2010 01:09 PM, Iñaki Baz Castillo wrote:

> Hi, imagine this case:
>
> - bob is registered from multiple locations:
>    a) a responding UDP/TCP location
>    b) a non responding TCP location (it crashed)
>
> - alice calls bob
>
> - Kamailio gets both branches from location table and runs t_relay().
>
> - t_relay() replies "true" as location a) is responding.
>
> However in this case it would be useful to realize that the second location
> (unreachable TCP location) doesn't work, and being TCP it's safe to remove it
> from location table.
>
> AFAIK (correct me if I'm wrong) there is some script function to remove user
> locations, but there is no way to use it in the example above (am I wrong?).
>
> As a suggestion, there could be a usrloc option to remove TCP contacts from
> location table when t_relay() fails, perhaps in conjunction with some new flag
> for t_relay() function.
>
> Is there any better aproach for this purpose?
>
>


-- 
Alex Balashov - Principal
Evariste Systems LLC

Tel    : +1 678-954-0670
Direct : +1 678-954-0671
Web    : http://www.evaristesys.com/



More information about the sr-dev mailing list