namespace Asterisk.NET.Manager.Event
{
///
/// A dial event is triggered whenever a phone attempts to dial someone.
/// This event is implemented in apps/app_dial.c
.
/// Available since Asterisk 1.2.
///
public class DialEvent : ManagerEvent
{
private string subEvent;
private string destination;
private string callerId;
private string callerIdNum;
private string callerIdName;
private string srcUniqueId;
private string destUniqueId;
private string dialString;
private string dialStatus;
private string src;
///
/// Creates a new DialEvent.
///
public DialEvent(ManagerConnection source)
: base(source)
{
}
public string DialString
{
get { return this.dialString; }
set { this.dialString = value; }
}
public string SubEvent
{
get { return this.subEvent; }
set { this.subEvent = value; }
}
public string DialStatus
{
get { return this.dialStatus; }
set { this.dialStatus = value; }
}
///
/// Returns the name of the source channel.
///
public string Src
{
get { return src; }
set { this.src = value; }
}
///
/// Get/Set the name of the destination channel.
///
public string Destination
{
get { return destination; }
set { this.destination = value; }
}
///
/// Get/Set the Caller*ID.
///
public string CallerId
{
get { return callerId; }
set { this.callerId = value; }
}
///
/// Get/Set the Caller*ID Name.
///
public string CallerIdName
{
get { return callerIdName; }
set { this.callerIdName = value; }
}
///
/// Get/Set the Caller*ID Number.
///
public string CallerIdNum
{
get { return callerIdNum; }
set { this.callerIdNum = value; }
}
///
/// Get/Set the unique ID of the source channel.
///
public string SrcUniqueId
{
get { return srcUniqueId; }
set { this.srcUniqueId = value; }
}
///
/// Get/Set the unique ID of the distination channel.
///
public string DestUniqueId
{
get { return destUniqueId; }
set { this.destUniqueId = value; }
}
}
}