asternet/Asterisk.2013/Asterisk.NET/Manager/Action/AGIAction.cs
2014-01-08 14:16:39 +00:00

37 lines
930 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsterNET.Manager.Action
{
/// <summary>
/// This action lets you execute any AGI command through the Manager interface
/// For example, check the AsterNET.Test project
/// </summary>
public class AgiAction : ManagerAction
{
public string Channel { get; set; }
public string Command { get; set; }
/// <summary>
/// Get the name of this action, i.e. "AGI".
/// </summary>
override public string Action
{
get { return "AGI"; }
}
/// <summary>
/// Creates a new empty AgiAction.
/// </summary>
public AgiAction(string channel, string command)
{
Channel = channel;
Command = command;
}
}
}