asternet/Asterisk.2013/Asterisk.NET/Manager/Action/ZapDialOffhookAction.cs

42 lines
1.3 KiB
C#
Raw Normal View History

2014-01-08 14:16:39 +00:00
namespace AsterNET.Manager.Action
{
2015-01-03 15:37:29 +00:00
/// <summary>
/// The ZapDialOffhookAction dials a number on a zap channel while offhook.
/// </summary>
public class ZapDialOffhookAction : ManagerAction
{
/// <summary> Creates a new empty ZapDialOffhookAction.</summary>
public ZapDialOffhookAction()
{
}
/// <summary>
/// Creates a new ZapDialOffhookAction that dials the given number on the given zap channel.
/// </summary>
public ZapDialOffhookAction(int zapChannel, string number)
{
this.ZapChannel = zapChannel;
this.Number = number;
}
/// <summary>
/// Get the name of this action, i.e. "ZapDialOffhook".
/// </summary>
public override string Action
{
get { return "ZapDialOffhook"; }
}
/// <summary>
/// Get/Set the number of the zap channel.<br />
/// This property is mandatory.
/// </summary>
public int ZapChannel { get; set; }
2015-01-03 15:37:29 +00:00
/// <summary>
/// Get/Set the number to dial.<br />
/// This property is mandatory.
/// </summary>
public string Number { get; set; }
}
}