public override void PerformAnswerCallAction(CXProvider provider, CXAnswerCallAction action) { Console.WriteLine("CXProviderDelegate: PerformAnswerCallAction " + 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.AnswerCall((successful) => { // Was the call successfully answered? if (successful) { // Yes, inform system action.Fulfill(); } else { // No, inform system action.Fail(); } }); }
public void AnswerCall(ActiveCall call) { if (call != null) { var answerCallAction = new CXAnswerCallAction(call.UUID); var transaction = new CXTransaction(answerCallAction); SendTransactionRequest(transaction); } }
public static void PerformAnswerCallAction(this ICXProviderDelegate This, CXProvider provider, CXAnswerCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);
public virtual void PerformAnswerCallAction(CXProvider provider, CXAnswerCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);