Added ParkAction

This commit is contained in:
skrusty 2014-02-27 20:07:40 +00:00
parent dcd7e95387
commit d3b0e1a24d
2 changed files with 90 additions and 1 deletions

View file

@ -0,0 +1,86 @@
using System;
namespace AsterNET.Manager.Action
{
/// <summary>
/// The ParkAction allows to send a Channel to a Parking lot.<br/>
/// A successful login is the precondition for sending for that
/// </summary>
public class ParkAction : ManagerAction
{
private string channel;
private string channel2;
private string timeout;
private string parkinglot;
/// <summary>
/// Get the name of this action, i.e. "Park".
/// </summary>
override public string Action
{
get { return "Park"; }
}
/// <summary>
/// Set the Channel which should be parked
/// </summary>
public string Channel
{
get { return this.channel; }
set { this.channel = value; }
}
/// <summary>
/// Set the Channel where the Call will end up after the timeout is reached.
/// </summary>
public string Channel2
{
get { return this.channel2; }
set { this.channel2 = value; }
}
/// <summary>
/// Timeout in msec, after timeout is reached call will come back to channel2
/// </summary>
public string Timeout
{
get { return this.timeout; }
set { this.timeout = value; }
}
/// <summary>
/// Set the Parking lot.
/// </summary>
public string Parkinglot
{
get { return this.parkinglot; }
set { this.parkinglot = value; }
}
/// <summary>
/// Creates a new ParkAction.
/// </summary>
/// <param name="channel"></param>
/// <param name="channel2"></param>
/// <param name="timeout"></param>
public ParkAction(string channel, string channel2, string timeout)
{
this.channel = channel;
this.channel2 = channel2;
this.timeout = timeout;
}
/// <summary>
/// Creates a new ParkAction.<br/>
/// </summary>
/// <param name="channel">Set the Channel which should be parked</param>
/// <param name="channel2">Set the Channel where the Call will end up after the timeout is reached.</param>
/// <param name="timeout">Timeout in msec, after timeout is reached call will come back to channel2</param>
/// <param name="parkinglot">Set the Parking lot.</param>
public ParkAction(string channel, string channel2, string timeout, string parkinglot)
{
this.channel = channel;
this.channel2 = channel2;
this.timeout = timeout;
this.parkinglot = parkinglot;
}
}
}

View file

@ -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. Fixed issues with ConfBridge events causing AMI to fail.
08.01.2014 (skrusty) 08.01.2014 (skrusty)