|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.AgentCalledEvent
public class AgentCalledEvent
An AgentCalledEvent is triggered when an agent is rung.
To enable AgentCalledEvents you have to seteventwhencalled = yes
in queues.conf
.
This event is implemented in apps/app_queue.c
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
AgentCalledEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.String |
getAgentCalled()
Returns the member interface of the agent that has been called. |
java.lang.String |
getAgentName()
Returns the name of the agent that has been called. |
java.lang.String |
getCallerId()
Deprecated. as of 1.0.0, use getCallerIdNum() instead. |
java.lang.String |
getCallerIdName()
Returns the Caller ID name of the caller's channel. |
java.lang.String |
getCallerIdNum()
Returns the Caller ID number of the caller's channel. |
java.lang.String |
getChannelCalling()
Returns the name of the caller's channel that is about to be handled by the agent. |
java.lang.String |
getContext()
|
java.lang.String |
getDestinationChannel()
Returns the name of the channel calling the agent. |
java.lang.String |
getExtension()
|
java.lang.String |
getPriority()
|
java.lang.String |
getQueue()
Returns the name of the queue. |
java.lang.String |
getUniqueId()
Returns the unique id of the caller's channel that is about to be handled by the agent. |
java.util.Map<java.lang.String,java.lang.String> |
getVariables()
Returns the channel variables if eventwhencalled is set to vars
in queues.conf . |
void |
setAgentCalled(java.lang.String agentCalled)
Sets the member interface of the agent that has been called. |
void |
setAgentName(java.lang.String agentName)
|
void |
setCallerId(java.lang.String callerId)
Sets the Caller ID number of the caller's channel. |
void |
setCallerIdName(java.lang.String callerIdName)
Sets the Caller ID name of the caller's channel. |
void |
setCallerIdNum(java.lang.String callerIdNum)
|
void |
setChannelCalling(java.lang.String channelCalling)
Sets the name of the caller's channel. |
void |
setContext(java.lang.String context)
|
void |
setDestinationChannel(java.lang.String destinationChannel)
|
void |
setExtension(java.lang.String extension)
|
void |
setPriority(java.lang.String priority)
|
void |
setQueue(java.lang.String queue)
|
void |
setUniqueId(java.lang.String uniqueId)
|
void |
setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
Sets the channel variables. |
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
---|
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, setTimestamp, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AgentCalledEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.lang.String getQueue()
Available since Asterisk 1.6.
public void setQueue(java.lang.String queue)
public java.lang.String getAgentCalled()
QueueMemberEvent.getLocation()
public void setAgentCalled(java.lang.String agentCalled)
agentCalled
- the member interface of the agent that has been
called.public java.lang.String getAgentName()
Available since Asterisk 1.6.
public void setAgentName(java.lang.String agentName)
public java.lang.String getChannelCalling()
public void setChannelCalling(java.lang.String channelCalling)
channelCalling
- the name of the caller's channel.public java.lang.String getDestinationChannel()
Available since Asterisk 1.6
public void setDestinationChannel(java.lang.String destinationChannel)
public java.lang.String getCallerIdNum()
public void setCallerIdNum(java.lang.String callerIdNum)
public java.lang.String getCallerId()
getCallerIdNum()
instead.
public void setCallerId(java.lang.String callerId)
callerId
- the Caller ID number of the caller's channel.public java.lang.String getCallerIdName()
public void setCallerIdName(java.lang.String callerIdName)
callerIdName
- the Caller ID name of the caller's channel.public java.lang.String getContext()
public void setContext(java.lang.String context)
public java.lang.String getExtension()
public void setExtension(java.lang.String extension)
public java.lang.String getPriority()
public void setPriority(java.lang.String priority)
public java.lang.String getUniqueId()
getChannelCalling()
.Available since Asterisk 1.6
public void setUniqueId(java.lang.String uniqueId)
public java.util.Map<java.lang.String,java.lang.String> getVariables()
eventwhencalled
is set to vars
in queues.conf
.Available since Asterisk 1.6
public void setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
Available since Asterisk 1.6
variables
- the channel variables.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |