namespace Asterisk.NET.Manager.Event
{
///
/// A NewExtenEvent is triggered when a channel is connected to a new extension.
/// It is implemented in pbx.c
///
public class NewExtenEvent : ManagerEvent
{
private string context;
private string extension;
private int priority;
private string application;
private string appData;
private string appdEvent;
public string AppdEvent
{
get { return this.appdEvent; }
set { this.appdEvent = value; }
}
///
/// Get/Set the name of the application that is executed.
///
public string Application
{
get { return this.application; }
set { this.application = value; }
}
///
/// Get/Set the parameters passed to the application that is executed. The parameters are separated by a '|' character.
///
public string AppData
{
get { return this.appData; }
set { this.appData = value; }
}
///
/// Get/Set the name of the context of the connected extension.
///
public string Context
{
get { return this.context; }
set { this.context = value; }
}
///
/// Get/Set the extension.
///
public string Extension
{
get { return this.extension; }
set { this.extension = value; }
}
///
/// Get/Set the priority.
///
public int Priority
{
get { return this.priority; }
set { this.priority = value; }
}
public NewExtenEvent(ManagerConnection source)
: base(source)
{
}
}
}