namespace AsterNET.Manager.Event
{
///
/// A ParkedCallEvent is triggered when a channel is parked (in this case no
/// action id is set) and in response to a ParkedCallsAction.
/// It is implemented in res/res_features.c
///
///
public class ParkedCallEvent : ResponseEvent
{
private string exten;
private string from;
private long timeout;
private string callerId;
private string callerIdNum;
private string callerIdName;
/// Get/Set the extension the channel is parked at.
public string Exten
{
get { return exten; }
set { this.exten = value; }
}
/// Get/Set the name of the channel that parked the call.
public string From
{
get { return from; }
set { this.from = value; }
}
///
/// Get/Set the number of seconds this call will be parked.
/// This corresponds to the parkingtime option in
/// features.conf.
///
public long Timeout
{
get { return timeout; }
set { this.timeout = value; }
}
///
/// Get/Set the Caller*ID number of the parked channel.
///
public string CallerId
{
get { return this.callerId; }
set { this.callerId = value; }
}
///
/// Get/Set the Caller*ID number of the parked channel.
///
public string CallerIdNum
{
get { return this.callerIdNum; }
set { this.callerIdNum = value; }
}
///
/// Get/Set the Caller*ID name of the parked channel.
///
public string CallerIdName
{
get { return this.callerIdName; }
set { this.callerIdName = value; }
}
public ParkedCallEvent(ManagerConnection source)
: base(source)
{
}
}
}