Esempio 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);
     }
 }
Esempio n. 2
0
 public void EndCall(ActiveCall call)
 {
     if (call != null)
     {
         var endCallAction = new CXEndCallAction(call.UUID);
         var transaction   = new CXTransaction(endCallAction);
         SendTransactionRequest(transaction);
     }
 }
Esempio n. 3
0
 public void AnswerCall(ActiveCall call)
 {
     if (call != null)
     {
         var answerCallAction = new CXAnswerCallAction(call.UUID);
         var transaction      = new CXTransaction(answerCallAction);
         SendTransactionRequest(transaction);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 5
0
 public void RemoveCallFromOnHold(ActiveCall call)
 {
     if (call != null)
     {
         var holdCallAction = new CXSetHeldCallAction(call.UUID, false);
         var transaction    = new CXTransaction(holdCallAction);
         SendTransactionRequest(transaction);
     }
 }
Esempio n. 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);
        }