From 54abb777041fef06953b29f6227f1847368e75f6 Mon Sep 17 00:00:00 2001 From: Craig Roberts Date: Wed, 29 Aug 2018 19:29:02 -0400 Subject: [PATCH] Add BlindTransferAction --- .../Manager/Action/BlindTransferAction.cs | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs diff --git a/Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs b/Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs new file mode 100644 index 0000000..2468eaf --- /dev/null +++ b/Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace AsterNET.Manager.Action +{ + /// + /// Redirect all channels currently bridged to the specified channel to the specified destination. + /// + /// See https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+ManagerAction_BlindTransfer + /// + class BlindTransferAction : ManagerAction + { + /// + /// Creates a new empty . + /// + public BlindTransferAction() + { + } + + /// + /// Creates a new . + /// + /// + /// + /// + public BlindTransferAction(string channel, string context, string extension) + { + Channel = channel; + Context = context; + Exten = extension; + } + + /// + /// Get the name of this action, i.e. "BlindTransfer". + /// + public override string Action + { + get { return "BlindTransfer"; } + } + + /// + /// Gets or sets the channel. + /// + public string Channel { get; set; } + + /// + /// Gets or sets the context. + /// + public string Context { get; set; } + + /// + /// Gets or sets the exten. + /// + public string Exten { get; set; } + } +}