Hi,

On Mon, 24 Apr 2006, Dimitri E. Prado wrote:

Here is the patch I wrote to query the register for name servers. It is a
diff against sresolv.c in the cvs. It changes sres_parse_resolv_conf
function. I am not sure if the same function should query the register under
windows and parse resolv.conf on *nix systems. If so, maybe it should have

I've now merged your patch to the CVS-tree. I did a few modificatiosn before committing:

- updated to new sresolv code (the related code now in sres.c)
- added cascaded checks: first check non-dhcp fields for each interface,
  then dchp-provided fields, and last the system-level fields
- modified the sresolv update interval (from 5sec to 180sec) -> I guess
  there's no way to make watching the registry values as efficient
  as stat("/etc/resolve.conf") on UNIX systems
- removed the 64 char limit for key values

Let me know if this works for you. I've tested this on a WindowsXP machine.

usefull or if there are any problems with the patch. There is also a need to
link with advapi32.lib on windows.

Yep, this is now needed for all Sofia-SIP clients on win32.

PS And oh yeah, this closes sf.net bug #1445560. Thanks very
   much for the patch!

--
 under work: Sofia-SIP at http://sofia-sip.sf.net


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to