public void TLSSRVTest()
        {
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name);

            string host = "snom.com";

            SIPDNSLookupResult lookupResult = new SIPDNSLookupResult(SIPURI.ParseSIPURIRelaxed(host));
            SIPDNSManager.DNSSRVRecordLookup(SIPSchemesEnum.sip, SIPProtocolsEnum.tls, host, false, ref lookupResult);

            Console.WriteLine("result=" + lookupResult.SIPSRVResults[0].Data + ".");

            Assert.IsTrue(lookupResult.SIPSRVResults != null && lookupResult.SIPSRVResults.Count > 0, "The number of SRV results returned was incorrect.");
            Assert.IsTrue(lookupResult.SIPSRVResults[0].SIPService == SIPServicesEnum.siptls, "The SIP Service returned for the lookup was incorrect.");
            Assert.IsTrue(lookupResult.SIPSRVResults[0].Data == "sip.snom.com.", "The target returned for the lookup was incorrect.");
        }
        public void HostWithNAPTRRecordTest()
        {
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name);

            //int attempts = 0;
            string host = "columbia.edu";

            SIPDNSLookupResult lookupResult = new SIPDNSLookupResult(SIPURI.ParseSIPURIRelaxed(host));
            SIPDNSManager.DNSNAPTRRecordLookup(host, false, ref lookupResult);

            Assert.IsTrue(lookupResult.SIPNAPTRResults != null && lookupResult.SIPNAPTRResults.Count > 0, "The number of NAPTR results returned was incorrect.");
            //Assert.IsTrue(lookupResult.SIPSRVResults != null && lookupResult.SIPSRVResults.Count > 0, "The number of SRV results returned was incorrect.");
            //Assert.IsTrue(lookupResult.EndPointResults.Count > 0, "The number of lookup results returned was incorrect.");
        }