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

Klaus Darilion klaus.mailinglists at pernau.at
Mon Mar 8 10:50:14 CET 2010


I do not know a way to remove the binding from location table. But you 
could use
http://sip-router.org/wiki/cookbooks/core-cookbook/devel#set_forward_no_connect

to ignore the broken TCP contacts.

regards
klaus

Am 07.03.2010 19:09, schrieb Iñaki Baz Castillo:
> 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?
>
>



More information about the sr-dev mailing list