static SIPChannel() { LocalIPAddresses = NetServices.GetAllLocalIPAddresses(); // When using IPAddress.Any a default end point is still needed for placing in SIP headers and payloads. // Using 0.0.0.0 in SIP headers causes issues for some SIP software stacks. InternetDefaultAddress = NetServices.GetLocalAddressForInternet(); }
public void GetInternetAddressUnitTest() { Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name); var localInternetAddresses = NetServices.GetLocalAddressForInternet(); Assert.NotNull(localInternetAddresses); Console.WriteLine($"Local Internet address {localInternetAddresses}."); }
public void GetInternetAddressUnitTest() { logger.LogDebug("--> " + System.Reflection.MethodBase.GetCurrentMethod().Name); logger.BeginScope(System.Reflection.MethodBase.GetCurrentMethod().Name); var localInternetAddresses = NetServices.GetLocalAddressForInternet(); Assert.NotNull(localInternetAddresses); logger.LogDebug($"Local Internet address {localInternetAddresses}."); }