internal void AcceptCall(CallViewModel viewModel) { //********************************************************************************************** // Incoming Call Accepted //******************************************************************************************** lock (CallsViewModelList) { if (FindCallViewModel(viewModel)) { LOG.Info(String.Format("Accepting call call for {0}. {1}", viewModel.CallerInfo, viewModel.ActiveCall.NativeCallPtr)); viewModel.AcceptCall(); bool muteMicrophone = false; bool muteSpeaker = false; //bool enableVideo = true; if (App.CurrentAccount != null) { muteMicrophone = App.CurrentAccount.MuteMicrophone; muteSpeaker = App.CurrentAccount.MuteSpeaker; // enableVideo = App.CurrentAccount.EnableVideo; } try { _linphoneService.AcceptCall(viewModel.ActiveCall.NativeCallPtr, ServiceManager.Instance.ConfigurationService.Get(Configuration.ConfSection.GENERAL, Configuration.ConfEntry.USE_RTT, true), muteMicrophone, muteSpeaker, true); } catch (Exception ex) { ServiceManager.LogError("AcceptCall", ex); } } } }
internal void AcceptCall(CallViewModel viewModel) { lock (CallsViewModelList) { if (FindCallViewModel(viewModel)) { LOG.Info(String.Format("Accepting call call for {0}. {1}", viewModel.CallerInfo, viewModel.ActiveCall.NativeCallPtr)); viewModel.AcceptCall(); bool muteMicrophone = false; bool muteSpeaker = false; //bool enableVideo = true; if (App.CurrentAccount != null) { muteMicrophone = App.CurrentAccount.MuteMicrophone; muteSpeaker = App.CurrentAccount.MuteSpeaker; // enableVideo = App.CurrentAccount.EnableVideo; } try { _linphoneService.AcceptCall(viewModel.ActiveCall.NativeCallPtr, ServiceManager.Instance.ConfigurationService.Get(Configuration.ConfSection.GENERAL, Configuration.ConfEntry.USE_RTT, true), muteMicrophone, muteSpeaker, true); } catch (Exception ex) { ServiceManager.LogError("AcceptCall", ex); } } } }