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 permanent/tra

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" er

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_

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

2007-01-02 Thread Pekka Pessi
Sorry for the way too long delay, Iäve been away for the holidays. On 12/12/06, Colin Whittaker <[EMAIL PROTECTED]> wrote: >> You are right, it does not use /etc/hosts or nsswitch.conf (or >> /etc/host.conf) > Hmm, seems like folks setting these things up would expect an application > that uses

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 fil

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