Exemplo n.º 1
0
        public void Stop()
        {
            Task <LL_RecordStopResult> taskLLRecordStop = Call.API.LL_RecordStopAsync(new LL_RecordStopParams()
            {
                NodeID    = Call.NodeID,
                CallID    = Call.ID,
                ControlID = ControlID,
            });

            LL_RecordStopResult resultLLRecordStop = taskLLRecordStop.Result;

            // If there was an internal error of any kind then throw an exception
            Call.API.ThrowIfError(resultLLRecordStop.Code, resultLLRecordStop.Message);
        }
Exemplo n.º 2
0
        public StopResult Stop()
        {
            Task <LL_RecordStopResult> taskLLRecordStop = Call.API.LL_RecordStopAsync(new LL_RecordStopParams()
            {
                NodeID    = Call.NodeID,
                CallID    = Call.ID,
                ControlID = ControlID,
            });

            LL_RecordStopResult resultLLRecordStop = taskLLRecordStop.Result;

            return(new StopResult()
            {
                Successful = resultLLRecordStop.Code == "200",
            });
        }