public class AgentsEvent extends ResponseEvent
Available since Asterisk 1.2
AgentsAction,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
AGENT_STATUS_IDLE
Agent is logged in and waiting for call.
|
static String |
AGENT_STATUS_LOGGEDOFF
Agent isn't logged in.
|
static String |
AGENT_STATUS_ONCALL
Agent is logged in and on a call.
|
static String |
AGENT_STATUS_UNKNOWN
Don't know anything about agent.
|
actionIdcallerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, prioritysource| Constructor and Description |
|---|
AgentsEvent(Object source) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAgent()
Returns the agentid.
|
String |
getLoggedInChan()
Returns the name of channel this agent logged in from.
|
Long |
getLoggedInTime()
Returns the time (in seconds since 01/01/1970) when the agent logged in.
|
String |
getName()
Returns the name of this agent.
|
String |
getStatus()
Returns the status of this agent.
|
String |
getTalkingTo()
Returns the numerical Caller*ID of the channel this agent is talking to.
|
String |
getTalkingToChan()
Returns the name of the channel this agent is talking to.
|
void |
setAgent(String agent)
Sets the agentid.
|
void |
setLoggedInChan(String loggedInChan)
Sets the name of channel this agent logged in from.
|
void |
setLoggedInTime(Long loggedInTime)
Sets the time when the agent logged in.
|
void |
setName(String name)
Sets the name of this agent.
|
void |
setStatus(String status)
Sets the status of this agent.
|
void |
setTalkingTo(String talkingTo)
Sets the numerical Caller*ID of the channel this agent is talking to.
|
void |
setTalkingToChan(String talkingToChan) |
getActionId, getInternalActionId, setActionId, setInternalActionIdappendPropertyIfNotNull, getCallerIdName, getCallerIdNum, getChannelState, getChannelStateDesc, getConnectedLineName, getConnectedLineNum, getContext, getDateReceived, getExten, getFile, getFunc, getLine, getPriority, getPrivilege, getSequenceNumber, getServer, getSystemName, getTimestamp, setCallerIdName, setCallerIdNum, setChannelState, setChannelStateDesc, setConnectedLineName, setConnectedLineNum, setContext, setDateReceived, setExten, setFile, setFunc, setLine, setPriority, setPrivilege, setSequenceNumber, setServer, setSystemName, setTimestamp, toStringgetSourcepublic static final String AGENT_STATUS_LOGGEDOFF
public static final String AGENT_STATUS_IDLE
public static final String AGENT_STATUS_ONCALL
public static final String AGENT_STATUS_UNKNOWN
public AgentsEvent(Object source)
source - public String getAgent()
public void setAgent(String agent)
public String getName()
public void setName(String name)
name - the name of this agentpublic String getStatus()
This is one of
AGENT_STATUS_LOGGEDOFF,
AGENT_STATUS_IDLE,
AGENT_STATUS_ONCALL,
AGENT_STATUS_UNKNOWNpublic void setStatus(String status)
status - the status of this agentpublic String getLoggedInChan()
public void setLoggedInChan(String loggedInChan)
loggedInChan - the name of channel this agent logged in frompublic Long getLoggedInTime()
public void setLoggedInTime(Long loggedInTime)
loggedInTime - the time when the agent logged inpublic String getTalkingTo()
public void setTalkingTo(String talkingTo)
talkingTo - the numerical Caller*ID of the channel this agent is
talking topublic String getTalkingToChan()
Available since Asterisk 1.6.
public void setTalkingToChan(String talkingToChan)
Copyright © 2004–2024. All rights reserved.