I do not know, but see this thread:
http://www.mail-archive.com/[email protected]/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
           ...
       }
     }
     ...
   }




_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to