[Opalvoip-svn] SF.net SVN: opalvoip:[31081] opal/trunk/src/h323/h323ep.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2013-12-12 03:15:02
|
Revision: 31081 http://sourceforge.net/p/opalvoip/code/31081 Author: rjongbloed Date: 2013-12-12 03:14:55 +0000 (Thu, 12 Dec 2013) Log Message: ----------- Extra logging Modified Paths: -------------- opal/trunk/src/h323/h323ep.cxx Modified: opal/trunk/src/h323/h323ep.cxx =================================================================== --- opal/trunk/src/h323/h323ep.cxx 2013-12-12 03:10:17 UTC (rev 31080) +++ opal/trunk/src/h323/h323ep.cxx 2013-12-12 03:14:55 UTC (rev 31081) @@ -420,14 +420,19 @@ PIPSocket::Address interfaceIP(PIPSocket::GetInvalidAddress()); // See if the system can tell us which interface would be used - PIPSocket::Address remoteIP; - if (gkAddress.GetIpAddress(remoteIP) && !remoteIP.IsAny()) - interfaceIP = PIPSocket::GetRouteInterfaceAddress(remoteIP); + { + PIPSocket::Address remoteIP; + if (gkAddress.GetIpAddress(remoteIP) && !remoteIP.IsAny()) { + interfaceIP = PIPSocket::GetRouteInterfaceAddress(remoteIP); + PTRACE_IF(4, interfaceIP.IsValid(), "H323\tUsing interface " << interfaceIP << " routed from " << remoteIP); + } + } if (!interfaceIP.IsValid()) { OpalTransportAddressArray interfaces = GetInterfaceAddresses(); for (PINDEX i = 0; i < interfaces.GetSize(); ++i) { if (interfaces[i].IsCompatible(gkAddress)) { + PTRACE(4, "H323\tInterface " << interfaces[i] << " compatible with " << gkAddress); if (interfaceIP.IsValid()) interfaces[i].GetIpAddress(interfaceIP); else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |