namespace AsterNET.Manager.Action
{
///
/// The HangupAction causes the pbx to hang up a given channel.
///
public class HangupAction : ManagerAction
{
///
/// Creates a new empty HangupAction.
///
public HangupAction()
{
}
///
/// Creates a new HangupAction that hangs up the given channel.
///
/// the name of the channel to hangup.
public HangupAction(string channel)
{
Channel = channel;
}
///
/// Get the name of this action, i.e. "Hangup".
///
public override string Action
{
get { return "Hangup"; }
}
///
/// Get/Set the name of the channel to hangup.
///
public string Channel { get; set; }
}
}