Exemplo n.º 1
0
 public void PlaceCallOnHold(ActiveCall call)
 {
     if (call != null)
     {
         var holdCallAction = new CXSetHeldCallAction(call.UUID, true);
         var transaction    = new CXTransaction(holdCallAction);
         SendTransactionRequest(transaction);
     }
 }
Exemplo n.º 2
0
 public void RemoveCallFromOnHold(ActiveCall call)
 {
     if (call != null)
     {
         var holdCallAction = new CXSetHeldCallAction(call.UUID, false);
         var transaction    = new CXTransaction(holdCallAction);
         SendTransactionRequest(transaction);
     }
 }
Exemplo n.º 3
0
        public void PlaceCallOnHold(ActiveCall call)
        {
            // Build action
            var holdCallAction = new CXSetHeldCallAction(call.UUID, true);

            // Create transaction
            var transaction = new CXTransaction(holdCallAction);

            // Inform system of call request
            SendTransactionRequest(transaction);
        }
Exemplo n.º 4
0
        public override void PerformSetHeldCallAction(CXProvider provider, CXSetHeldCallAction action)
        {
            // Find requested call
            var call = CallManager.FindCall(action.CallUuid);

            // Found?
            if (call == null)
            {
                // No, inform system and exit
                action.Fail();
                return;
            }

            // Update hold status
            call.IsOnHold = action.OnHold;

            // Inform system of success
            action.Fulfill();
        }
Exemplo n.º 5
0
 public static void PerformSetHeldCallAction(this ICXProviderDelegate This, CXProvider provider, CXSetHeldCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);
Exemplo n.º 6
0
 public virtual void PerformSetHeldCallAction(CXProvider provider, CXSetHeldCallAction action) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);