public void Start() { try { logger.Debug("SIP Registrar daemon starting..."); // Configure the SIP transport layer. m_sipTransport = new SIPTransport(SIPDNSManager.ResolveSIPService, new SIPTransactionEngine(), false); m_sipTransport.PerformanceMonitorPrefix = SIPSorceryPerformanceMonitor.REGISTRAR_PREFIX; List <SIPChannel> sipChannels = SIPTransportConfig.ParseSIPChannelsNode(_accounts); //List<SIPChannel> sipChannels = SIPTransportConfig.ParseSIPChannelsNode(account.LocalIP, account.LocalPort); m_sipTransport.AddSIPChannel(sipChannels); MessageBase = new MessageBase(SIPAuthenticateRequest_External, m_sipTransport, SIPConstants.SIP_SERVER_STRING); //MessageCore.Initialize(SIPAuthenticateRequest_External, _platformList,_account); MessageBase.Initialize(SIPAuthenticateRequest_External, _accounts); m_sipTransport.SIPTransportRequestReceived += MessageBase.AddMessageRequest; m_sipTransport.SIPTransportResponseReceived += MessageBase.AddMessageResponse; Console.ForegroundColor = ConsoleColor.Green; logger.Debug("SIP Registrar successfully started."); Console.ForegroundColor = ConsoleColor.White; } catch (Exception excp) { logger.Error("Exception SIPRegistrarDaemon Start. " + excp.Message); } }