public override void PerformEndCallAction(CXProvider provider, CXEndCallAction action) { Console.WriteLine("CXProviderDelegate: PerformEndCallAction " + action.CallUuid); // Find requested call var call = CallManager.FindCall(action.CallUuid); // Found? if (call == null) { // No, inform system and exit action.Fail(); return; } // Attempt to answer call call.EndCall((successful) => { // Was the call successfully answered? if (successful) { // Remove call from manager's queue CallManager.Calls.Remove(call); // Yes, inform system action.Fulfill(); } else { // No, inform system action.Fail(); } }); }
public void EndCall(ActiveCall call) { if (call != null) { var endCallAction = new CXEndCallAction(call.UUID); var transaction = new CXTransaction(endCallAction); SendTransactionRequest(transaction); } }
public void EndCall(ActiveCall call) { // Build action var endCallAction = new CXEndCallAction(call.UUID); // Create transaction var transaction = new CXTransaction(endCallAction); // Inform system of call request SendTransactionRequest(transaction); }
public static void PerformEndCallAction(this ICXProviderDelegate This, CXProvider provider, CXEndCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);
public virtual void PerformEndCallAction(CXProvider provider, CXEndCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);