[sr-dev] handling failed t_relay() when multiple usr locations
Klaus Darilion
klaus.mailinglists at pernau.at
Mon Mar 8 11:46:43 CET 2010
I do not know, but see this thread:
http://www.mail-archive.com/sr-dev@lists.sip-router.org/msg03593.html
klaus
Am 08.03.2010 11:09, schrieb Iñaki Baz Castillo:
> El Lunes 08 Marzo 2010, Klaus Darilion escribió:
>> 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_con
>> nect
>>
>> to ignore the broken TCP contacts.
>
> Interesting, thanks a lot. And in case there is just an unique location
> (unreachable TCP location) which code would generate t_relay() after setting
> "set_forward_no_connnect"?:
>
> 3 - no destination available (no branches were added or request already
> cancelled)
> 5 - destination filtered (black listed)
> 6 - generic send failed
>
> ?
>
>
> I mean something as:
>
> route {
> ...
> if (lookup()) {
> // requests to local users. They are usually behind NAT so it does
> // not make sense to try to establish a new TCP connection.
> set_forward_no_connect();
> // If t_relay() returns -3 probably there were unreachable
> // TCP registrations behind NAT. Behave as if the user is no longer
> // registered.
> if ! t_relay() {
> if $rc == -3
> sl_reply("480", "User Not Online");
> else
> ...
> }
> }
> ...
> }
>
>
>
More information about the sr-dev
mailing list