From 54abb777041fef06953b29f6227f1847368e75f6 Mon Sep 17 00:00:00 2001 From: Craig Roberts Date: Wed, 29 Aug 2018 19:29:02 -0400 Subject: [PATCH 1/2] 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; } + } +} From 672c8e9e10cc6a9e8eaa02f3c5f34a0e544f596c Mon Sep 17 00:00:00 2001 From: Craig Roberts Date: Thu, 30 Aug 2018 15:08:19 -0400 Subject: [PATCH 2/2] update comments --- .../Asterisk.NET/Manager/Action/BlindTransferAction.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs b/Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs index 2468eaf..9e7c43d 100644 --- a/Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs +++ b/Asterisk.2013/Asterisk.NET/Manager/Action/BlindTransferAction.cs @@ -6,8 +6,7 @@ using System.Text; namespace AsterNET.Manager.Action { /// - /// Redirect all channels currently bridged to the specified channel to the specified destination. - /// + /// 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 @@ -41,17 +40,17 @@ namespace AsterNET.Manager.Action } /// - /// Gets or sets the channel. + /// Gets or sets the channel. /// public string Channel { get; set; } /// - /// Gets or sets the context. + /// Gets or sets the context. /// public string Context { get; set; } /// - /// Gets or sets the exten. + /// Gets or sets the extension. /// public string Exten { get; set; } }