public SIPMonitorCore_2011(SIPMessageCore_2011 msgCore, string deviceId, string name, SIPEndPoint remoteEndPoint)
 {
     _msgCore        = msgCore;
     _deviceId       = deviceId;
     _deviceName     = name;
     _remoteEndPoint = remoteEndPoint;
 }
        public void Initialize(SIPAuthenticateRequestDelegate SIPAuthenticateRequest_External, List <SIPAccount> accounts)
        {
            foreach (var account in accounts)
            {
                MessageBase msg = null;
                switch (account.PlatformVersion)
                {
                case PlatformVersion.VERSION_2011:
                    msg = new SIPMessageCore_2011();
                    break;

                case PlatformVersion.VERSION_2014:
                    break;

                case PlatformVersion.VERSION_2016:
                    msg = new SIPMessageCore_2016();
                    break;
                }
                msg.Initialize(_sipRequestAuthenticator, account, Transport);
                string msgKey = account.RemoteIP + ":" + account.RemotePort;
                MessageCore.Add(msgKey, msg);
            }
        }