diff --git a/Asterisk.2013/Asterisk.NET/Manager/Action/ParkAction.cs b/Asterisk.2013/Asterisk.NET/Manager/Action/ParkAction.cs new file mode 100644 index 0000000..3b32809 --- /dev/null +++ b/Asterisk.2013/Asterisk.NET/Manager/Action/ParkAction.cs @@ -0,0 +1,86 @@ +using System; + +namespace AsterNET.Manager.Action +{ + /// + /// The ParkAction allows to send a Channel to a Parking lot.
+ /// A successful login is the precondition for sending for that + ///
+ + public class ParkAction : ManagerAction + { + private string channel; + private string channel2; + private string timeout; + private string parkinglot; + + /// + /// Get the name of this action, i.e. "Park". + /// + override public string Action + { + get { return "Park"; } + } + /// + /// Set the Channel which should be parked + /// + public string Channel + { + get { return this.channel; } + set { this.channel = value; } + } + /// + /// Set the Channel where the Call will end up after the timeout is reached. + /// + public string Channel2 + { + get { return this.channel2; } + set { this.channel2 = value; } + } + + /// + /// Timeout in msec, after timeout is reached call will come back to channel2 + /// + public string Timeout + { + get { return this.timeout; } + set { this.timeout = value; } + } + /// + /// Set the Parking lot. + /// + public string Parkinglot + { + get { return this.parkinglot; } + set { this.parkinglot = value; } + } + + /// + /// Creates a new ParkAction. + /// + /// + /// + /// + public ParkAction(string channel, string channel2, string timeout) + { + this.channel = channel; + this.channel2 = channel2; + this.timeout = timeout; + } + + /// + /// Creates a new ParkAction.
+ ///
+ /// Set the Channel which should be parked + /// Set the Channel where the Call will end up after the timeout is reached. + /// Timeout in msec, after timeout is reached call will come back to channel2 + /// Set the Parking lot. + public ParkAction(string channel, string channel2, string timeout, string parkinglot) + { + this.channel = channel; + this.channel2 = channel2; + this.timeout = timeout; + this.parkinglot = parkinglot; + } + } +} \ No newline at end of file diff --git a/Asterisk.2013/ChangeLog.txt b/Asterisk.2013/ChangeLog.txt index e62ba99..77389c4 100644 --- a/Asterisk.2013/ChangeLog.txt +++ b/Asterisk.2013/ChangeLog.txt @@ -1,4 +1,7 @@ -09.09.2014 (skrusty) +27.02.2014 (skrusty) + Added Contribution by metzlers, ParkAction for AMI, see https://asternet.codeplex.com/workitem/1288 + +09.01.2014 (skrusty) Fixed issues with ConfBridge events causing AMI to fail. 08.01.2014 (skrusty)