[Freeswitch-svn] [commit] r13522 - freeswitch/trunk/src

FreeSWITCH SVN brian at freeswitch.org
Sat May 30 03:01:22 PDT 2009


Author: brian
Date: Sat May 30 05:01:21 2009
New Revision: 13522

Log:
 speed up discovery and clean up code a tiny bit 

Modified:
   freeswitch/trunk/src/switch_nat.c

Modified: freeswitch/trunk/src/switch_nat.c
==============================================================================
--- freeswitch/trunk/src/switch_nat.c	(original)
+++ freeswitch/trunk/src/switch_nat.c	Sat May 30 05:01:21 2009
@@ -57,19 +57,20 @@
 	struct UPNPDev * dev;
 	char * descXML;
 	int descXMLsize = 0;
-    const char * multicastif = 0;
-    const char * minissdpdpath = 0;
+	const char * multicastif = 0;
+	const char * minissdpdpath = 0;
 	int r = -2;
 
 	memset(&nat_globals.urls, 0, sizeof(struct UPNPUrls));
 	memset(&nat_globals.data, 0, sizeof(struct IGDdatas));
-	devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
+	devlist = upnpDiscover(1000, multicastif, minissdpdpath, 0);
 
 	if (devlist) {
 		dev = devlist;
 		while (dev) {
-			if (strstr (dev->st, "InternetGatewayDevice"))
+			if (strstr (dev->st, "InternetGatewayDevice")) {
 				break;
+			}
 			dev = dev->pNext;
 		}
 		if (!dev) {



More information about the Freeswitch-svn mailing list