net.sf.asterisk.manager.event
Class AgentCalledEvent
java.lang.Object
java.util.EventObject
net.sf.asterisk.manager.event.ManagerEvent
net.sf.asterisk.manager.event.AgentCalledEvent
- All Implemented Interfaces:
- java.io.Serializable
public class AgentCalledEvent
- extends ManagerEvent
An AgentCalledEvent is triggered when an agent is rung.
To enable AgentCalledEvents you have to set
eventwhencalled = yes
in queues.conf
.
This event is implemented in apps/app_queue.c
- Version:
- $Id: AgentCalledEvent.java,v 1.3 2005/08/27 03:22:32 srt Exp $
- Author:
- srt
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
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 |
AgentCalledEvent
public AgentCalledEvent(java.lang.Object source)
- Parameters:
source
-
getAgentCalled
public java.lang.String getAgentCalled()
setAgentCalled
public void setAgentCalled(java.lang.String agentCalled)
getChannelCalling
public java.lang.String getChannelCalling()
setChannelCalling
public void setChannelCalling(java.lang.String channelCalling)
getCallerId
public java.lang.String getCallerId()
setCallerId
public void setCallerId(java.lang.String callerId)
getCallerIdName
public java.lang.String getCallerIdName()
- Returns the Caller*ID name of the calling channel.
- Returns:
- the Caller*ID name of the calling channel or "unknown" if no
Caller*Id has been set.
- Since:
- 0.2
setCallerIdName
public void setCallerIdName(java.lang.String callerIdName)
- Sets the Caller*ID name of the calling channel.
- Parameters:
callerIdName
- the Caller*ID name of the calling channel.- Since:
- 0.2
getContext
public java.lang.String getContext()
setContext
public void setContext(java.lang.String context)
getExtension
public java.lang.String getExtension()
setExtension
public void setExtension(java.lang.String extension)
getPriority
public java.lang.String getPriority()
setPriority
public void setPriority(java.lang.String priority)
Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.