public SIPTLSChannel(X509Certificate2 serverCertificate, IPEndPoint endPoint)
{
if (serverCertificate == null)
{
throw new ArgumentNullException("serverCertificate", "An X509 certificate must be supplied for a SIP TLS channel.");
}
if (endPoint == null)
{
throw new ArgumentNullException("endPoint", "An IP end point must be supplied for a SIP TLS channel.");
}
m_localSIPEndPoint = new SIPEndPoint(SIPProtocolsEnum.tls, endPoint);
LocalTCPSockets.Add(endPoint.ToString());
m_isReliable = true;
m_isTLS = true;
//m_certificatePath = certificateFileName;
///base.Name = "s" + Crypto.GetRandomInt(4);
m_serverCertificate = serverCertificate;
Initialise();
}