コード例 #1
0
 public void CancelCall(string cancelReason = null)
 {
     try
     {
         base.Cancel();
         CDR?.Cancelled(cancelReason);
     }
     catch (Exception excp)
     {
         logger.LogError("Exception UACInviteTransaction CancelCall. " + excp.Message);
         throw;
     }
 }
コード例 #2
0
 /// <summary>
 /// Cancels this transaction. This does NOT generate a CANCEL request. A separate
 /// reliable transaction needs to be created for that.
 /// </summary>
 /// <param name="cancelReason">The reason for cancelling the transaction.</param>
 public void CancelCall(string cancelReason = null)
 {
     try
     {
         UpdateTransactionState(SIPTransactionStatesEnum.Cancelled);
         CDR?.Cancelled(cancelReason);
     }
     catch (Exception excp)
     {
         Logger.Logger.Error("Exception UACInviteTransaction CancelCall. ->" + excp.Message);
         throw;
     }
 }
コード例 #3
0
 /// <summary>
 /// Cancels this transaction. This does NOT generate a CANCEL request. A separate
 /// reliable transaction needs to be created for that.
 /// </summary>
 /// <param name="cancelReason">The reason for cancelling the transaction.</param>
 public void CancelCall(string cancelReason = null)
 {
     UpdateTransactionState(SIPTransactionStatesEnum.Cancelled);
     CDR?.Cancelled(cancelReason);
 }