namespace AsterNET.Manager.Event
{
///
/// An AgentsEvent is triggered for each agent in response to an AgentsAction.
/// Available since Asterisk 1.2
///
///
public class AgentsEvent : ResponseEvent
{
public AgentsEvent(ManagerConnection source)
: base(source)
{
}
///
/// Get/Set the agentid.
///
public string Agent { get; set; }
///
/// Get/Set the name of this agent.
///
public string Name { get; set; }
///
/// Get/Set the status of this agent.
/// This is one of
///
/// - "AGENT_LOGGEDOFF"
/// - Agent isn't logged in
/// - "AGENT_IDLE"
/// - Agent is logged in, and waiting for call
/// - "AGENT_ONCALL"
/// - Agent is logged in, and on a call
/// - "AGENT_UNKNOWN"
/// - Don't know anything about agent. Shouldn't ever get this.
///
///
public string Status { get; set; }
///
/// Get/Set the name of channel this agent logged in from or "n/a" if the agent is not logged in.
/// Removed on Asterisk 12 app_agent_pool.so module. Use Channel instead.
///
public string LoggedInChan { get; set; }
///
/// Get/Set the numerical Caller*ID of the channel this agent is talking toor "n/a" if this agent is talking to nobody.
/// Removed on Asterisk 12 app_agent_pool.so module. Use TalkingToChan instead.
///
public string TalkingTo { get; set; }
///
/// Get/Set BRIDGEPEER value on agent channel.
/// Present if Status value is AGENT_ONCALL.
///
public string TalkingToChan { get; set; }
///
/// Get/Set Epoche time when the agent started talking with the caller.
/// Present if Status value is AGENT_ONCALL.
///
public string CallStarted { get; set; }
///
/// Get/Set the time (in seconds since 01/01/1970).
/// Present if Status value is AGENT_IDLE or AGENT_ONCALL.
///
public long LoggedInTime { get; set; }
///
/// Get/Set a numeric code for the channel's current state, related to ChannelStateDesc.
///
public int ChannelState { get; set; }
///
/// Get/Set a description for the channel's current state.
/// This is one of
///
/// - Down
/// - Rsrvd
/// - OffHook
/// - Dialing
/// - Ring
/// - Ringing
/// - Up
/// - Busy
/// - Dialing Offhook
/// - Pre-ring
/// - Unknown
///
///
public string ChannelStateDesc { get; set; }
///
/// Get/Set the callerID number.
///
public string CallerIDNum { get; set; }
///
/// Get/Set the callerID name.
///
public string CallerIDName { get; set; }
///
/// Get/Set the connected line number.
///
public string ConnectedLineNum { get; set; }
///
/// Get/Set the connected line name.
///
public string ConnectedLineName { get; set; }
///
/// Get/Set the account codee.
///
public string AccountCode { get; set; }
///
/// Get/Set the context.
///
public string Context { get; set; }
///
/// Get/Set the extension.
///
public string Exten { get; set; }
///
/// Get/Set the agent priority.
///
public int Priority { get; set; }
///
/// Get/Set the uniqueid of the oldest channel associated with this channel.
///
public int Linkedid { get; set; }
}
}