Пример #1
0
        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();
                }
            });
        }
Пример #2
0
 public void AnswerCall(ActiveCall call)
 {
     if (call != null)
     {
         var answerCallAction = new CXAnswerCallAction(call.UUID);
         var transaction      = new CXTransaction(answerCallAction);
         SendTransactionRequest(transaction);
     }
 }
Пример #3
0
 public static void PerformAnswerCallAction(this ICXProviderDelegate This, CXProvider provider, CXAnswerCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);
Пример #4
0
 public virtual void PerformAnswerCallAction(CXProvider provider, CXAnswerCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);