Example #1
0
 public void PlaceCallOnHold(ActiveCall call)
 {
     if (call != null)
     {
         var holdCallAction = new CXSetHeldCallAction(call.UUID, true);
         var transaction    = new CXTransaction(holdCallAction);
         SendTransactionRequest(transaction);
     }
 }
Example #2
0
 public void EndCall(ActiveCall call)
 {
     if (call != null)
     {
         var endCallAction = new CXEndCallAction(call.UUID);
         var transaction   = new CXTransaction(endCallAction);
         SendTransactionRequest(transaction);
     }
 }
Example #3
0
 public void AnswerCall(ActiveCall call)
 {
     if (call != null)
     {
         var answerCallAction = new CXAnswerCallAction(call.UUID);
         var transaction      = new CXTransaction(answerCallAction);
         SendTransactionRequest(transaction);
     }
 }
Example #4
0
 public void MuteCall(ActiveCall call, bool mute)
 {
     if (call != null)
     {
         var holdCallAction = new CXSetMutedCallAction(call.UUID, mute);
         var transaction    = new CXTransaction(holdCallAction);
         SendTransactionRequest(transaction);
     }
 }
Example #5
0
 public void RemoveCallFromOnHold(ActiveCall call)
 {
     if (call != null)
     {
         var holdCallAction = new CXSetHeldCallAction(call.UUID, false);
         var transaction    = new CXTransaction(holdCallAction);
         SendTransactionRequest(transaction);
     }
 }
Example #6
0
        public ActiveCall StartCall(string name, int id)
        {
            var newCall = new ActiveCall(new NSUuid(), name, id, true, null, false);

            Calls.Add(newCall);

            var handle          = new CXHandle(CXHandleType.Generic, name);
            var startCallAction = new CXStartCallAction(newCall.UUID, handle);
            var transaction     = new CXTransaction(startCallAction);

            SendTransactionRequest(transaction);

            return(newCall);
        }