public void Initial() { CallController = new CallEventsController(); BeelineSettings = Locator.GetServiceNotNull <BeelineSettingsModule>().Settings; if (string.IsNullOrEmpty(BeelineSettings.BeelineHost)) { TelephonyManager.TelephonyLog.Error("Manager.Init: Адрес сервера недоступен"); return; } if (string.IsNullOrEmpty(BeelineSettings.BeelineToken)) { TelephonyManager.TelephonyLog.Error("Manager.Init: Токен сервера пустой"); return; } BeeConnect = new BeeConnect(BeelineSettings.BeelineHost, BeelineSettings.BeelineToken); TelephonyManager.TelephonyLog.Debug(string.Format("Beeline initialized: {0}! Host: {1}/// token: {2}", BeeConnect.init.ToString(), BeelineSettings.BeelineHost, BeelineSettings.BeelineToken)); BeelineConnect = new BeelineConnector(BeeConnect, TestSubscriptionUri); TelephonyManager.TelephonyLog.Debug("BeelineConnectConnector construction OK"); BeelineConnect.Initialize(); TelephonyManager.TelephonyLog.Debug("BeelineConnectConnector Initialization OK"); #region Подписка на события телефонии BeelineConnect.onNewInnerCall += eventNewInnerCall; BeelineConnect.onNewOuterCall += eventNewOuterCall; BeelineConnect.onCallAnswered += eventCallAnswer; BeelineConnect.onCallEnding += eventCallReleased; BeelineConnect.onCallCenterInnerCall += eventNewCallCenterCall; #endregion //_lockForCallCenterReleasedCall = new object(); TelephonyManager.TelephonyLog.Debug( string.Format("Total {0} users subscription", BeelineConnect.AbonentsConnector.Count.ToString())); }
public void FindRelationsByCallIDTest() { var tmp = new CallEventsController(); string callID = "123"; tmp.FindRelationsByCallID(callID); Assert.Fail(); }