[Freeswitch-svn] [commit] r8401 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/sresolv

Freeswitch SVN mikej at freeswitch.org
Wed May 14 14:20:11 EDT 2008


Author: mikej
Date: Wed May 14 14:20:11 2008
New Revision: 8401

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c

Log:
Tue May 13 16:45:09 EDT 2008  Pekka Pessi <first.last at nokia.com>
  * sres.c: allow dns redirection with _sres_default_port



Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Wed May 14 14:20:11 2008
@@ -1 +1 @@
-Wed May 14 14:17:15 EDT 2008
+Wed May 14 14:19:52 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c	Wed May 14 14:20:11 2008
@@ -2190,6 +2190,8 @@
   return c;
 }
 
+uint16_t _sres_default_port = 53;
+
 /** Parse config file. 
  *
  * @return Number of search domains, if successful.
@@ -2212,7 +2214,7 @@
   c->c_opt.check_names = 1;
   c->c_opt.timeout = SRES_RETRY_INTERVAL;
   c->c_opt.attempts = SRES_MAX_RETRY_COUNT;
-  c->c_port = 53;
+  c->c_port = _sres_default_port;
 
   if (f != NULL) {  
     for (line = 1; fgets(buf, sizeof(buf), f); line++) {



More information about the Freeswitch-svn mailing list