r3247 - trunk/libminisip/source/ipprovider
erik at minisip.org
erik at minisip.org
Thu Mar 22 16:47:25 CET 2007
Author: erik
Date: 2007-03-22 16:47:24 +0100 (Thu, 22 Mar 2007)
New Revision: 3247
Modified:
trunk/libminisip/source/ipprovider/SimpleIpProvider.cxx
Log:
* If the user has a prefered interface that has no IP address, don't use
that empty one. Instead fall back to guessing which local IP is the
one to use.
Modified: trunk/libminisip/source/ipprovider/SimpleIpProvider.cxx
===================================================================
--- trunk/libminisip/source/ipprovider/SimpleIpProvider.cxx 2007-03-16 12:13:07 UTC (rev 3246)
+++ trunk/libminisip/source/ipprovider/SimpleIpProvider.cxx 2007-03-22 15:47:24 UTC (rev 3247)
@@ -72,11 +72,19 @@
break;
}
}
+
+
#ifdef DEBUG_OUTPUT
cerr << "SimpleIPProvider: preferred network interface = " << config->networkInterfaceName << endl;
if( ipFound ) cerr << "SimpleIPProvider: preferred interface found" << endl;
else cerr << "SimpleIPProvider: preferred interface NOT found" << endl;
+ if ( ipFound && localIp=="" ){
+ cerr << "SimpleIPProvider: WARNING: prefered interface has no IP address configured"<<endl;
+ }
#endif
+ //If the preferred interface is without IP, continue searching...
+ if (localIp=="")
+ ipFound=false;
}
//if ip is not found (either not specified or the adapter is not good ...
More information about the Minisip-devel
mailing list