Ejemplo n.º 1
0
        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();
                }
            });
        }
Ejemplo n.º 2
0
 public void EndCall(ActiveCall call)
 {
     if (call != null)
     {
         var endCallAction = new CXEndCallAction(call.UUID);
         var transaction   = new CXTransaction(endCallAction);
         SendTransactionRequest(transaction);
     }
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public static void PerformEndCallAction(this ICXProviderDelegate This, CXProvider provider, CXEndCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);
Ejemplo n.º 5
0
 public virtual void PerformEndCallAction(CXProvider provider, CXEndCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);