Re: [Sofia-sip-devel] sresolv module questions

2007-03-05 Thread Pekka Pessi
2007/2/16, Colin Whittaker [EMAIL PROTECTED]: Well, that didn't really work... The for loop doesn't traverse when there is one server. Thanks for the patches. I tried to figure out what the surrounding code does, and I think the logic calling sres_next_server() and reacting to

Re: [Sofia-sip-devel] sresolv module questions

2007-02-15 Thread Colin Whittaker
Ok, I took a stab a this, but I think you may have a better or more complete solution. I basically just timed out the dns_icmp and dns_error on the servers. Here is the diff: sres.c 2688a2689,2690 #define DNS_ICMP_TIMEOUT 60 // Retry after 1 min and ICMP error #define DNS_ERROR_TIMEOUT 3600

Re: [Sofia-sip-devel] sresolv module questions

2007-02-15 Thread Colin Whittaker
Well, that didn't really work... The for loop doesn't traverse when there is one server. Here is another attempt: sres.c 2688a2689,2690 #define DNS_ICMP_TIMEOUT 60 // Retry after 1 min and ICMP error #define DNS_ERROR_TIMEOUT 3600 // Retry after 1 hour and "perm" error 2697a2700 time_t now

Re: [Sofia-sip-devel] sresolv module questions

2006-12-12 Thread Pekka Pessi
On 12/11/06, Colin Whittaker [EMAIL PROTECTED] wrote: I've started using DNS, and it appears that I must specify the FQDN for the proxy or registrar, and that the DNS server must have any entry. Is there a way to get the sresolv module to use the /etc/hosts file ? I've setup nsswitch.conf to

Re: [Sofia-sip-devel] sresolv module questions

2006-12-12 Thread Colin Whittaker
Pekka Pessi wrote: On 12/11/06, Colin Whittaker [EMAIL PROTECTED] wrote: I've started using DNS, and it appears that I must specify the FQDN for the proxy or registrar, and that the DNS server must have any entry. Is there a way to get the sresolv module to use the /etc/hosts file