Re: [SR-Users] Failover with SRV records

2010-11-29 Thread Eric Hiller
Once I commented out the 3 lines below it works fine to failover. failure_route[1]{ xlog(" FAILED FAILURE_ROUTE[1]\n"); if(t_any_timeout()){ xlog(" TIMEOUT!\n"); # append_branch(); # xlog(" host is now $rd; all is $ru\n");

Re: [SR-Users] Failover with SRV records

2010-11-29 Thread Iñaki Baz Castillo
2010/11/29 marius zbihlei : >> AFAIR using raw sockets checking ICMP notifications would be possible >> (not yet implemented, but possible as I remember from a thread with >> Andrei). >> > > Possible, but not easily implementable, as ICMP Host unreachable are sent > asynchronously from the kernel.

Re: [SR-Users] Failover with SRV records

2010-11-29 Thread marius zbihlei
On 11/29/2010 02:16 PM, Iñaki Baz Castillo wrote: 2010/11/29 marius zbihlei: Kamailio does not use ICMP replies to check if a host is reachable on a UDP sendto(). This means that ICMP port unreachable errors are not handled by K and so the same host is retried on TM retransmits. AFAIR

Re: [SR-Users] Failover with SRV records

2010-11-29 Thread Iñaki Baz Castillo
2010/11/29 marius zbihlei : > Kamailio does not use ICMP replies to check if a host is reachable on a UDP > sendto(). This means that ICMP port unreachable errors are not handled by K > and so the same host is retried on TM retransmits. AFAIR using raw sockets checking ICMP notifications would be

Re: [SR-Users] Failover with SRV records

2010-11-29 Thread marius zbihlei
On 11/29/2010 06:03 AM, Eric Hiller wrote: Sorry all for the second question of the night as I go through working out bugs in my setup. I want to use SRV records to loadbalance across hosts. This works great, when all the hosts listed in the SRV are up. However, I want kamailio to use the next

[SR-Users] Failover with SRV records

2010-11-28 Thread Eric Hiller
Sorry all for the second question of the night as I go through working out bugs in my setup. I want to use SRV records to loadbalance across hosts. This works great, when all the hosts listed in the SRV are up. However, I want kamailio to use the next host if the current hosts fails. I tried ju