Asterisk-Java

org.asteriskjava.manager.event
Class AgentConnectEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.AbstractAgentEvent
              extended by org.asteriskjava.manager.event.AgentConnectEvent
All Implemented Interfaces:
java.io.Serializable

public class AgentConnectEvent
extends AbstractAgentEvent

An AgentConnectEvent is triggered when a caller is connected to an agent.

It is implemented in apps/app_queue.c.

Available since Asterisk 1.2

Since:
0.2
Version:
$Id: AgentConnectEvent.java 1074 2008-06-23 03:15:35Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgentConnectEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getBridgedChannel()
          Returns the unique ID of the queue member channel that is taking the call.
 java.lang.Long getHoldTime()
          Returns the amount of time the caller was on hold.
 java.lang.Long getRingtime()
          Returns the amount of time the agent's channel was ringing before answered.
 void setBridgedChannel(java.lang.String bridgedChannel)
          Sets the unique ID of the queue member channel that is taking the call.
 void setHoldTime(java.lang.Long holdtime)
          Sets the amount of time the caller was on hold.
 void setRingtime(java.lang.Long ringtime)
           
 
Methods inherited from class org.asteriskjava.manager.event.AbstractAgentEvent
getChannel, getMember, getMemberName, getQueue, getUniqueId, getVariables, setChannel, setMember, setMemberName, setQueue, setUniqueId, setVariables
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, 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

AgentConnectEvent

public AgentConnectEvent(java.lang.Object source)
Method Detail

getHoldTime

public java.lang.Long getHoldTime()
Returns the amount of time the caller was on hold.

Returns:
the amount of time the caller was on hold in seconds.

setHoldTime

public void setHoldTime(java.lang.Long holdtime)
Sets the amount of time the caller was on hold.

Parameters:
holdtime - the amount of time the caller was on hold in seconds.

getBridgedChannel

public java.lang.String getBridgedChannel()
Returns the unique ID of the queue member channel that is taking the call. This is useful when trying to link recording filenames back to a particular call from the queue.

Available since Asterisk 1.4.

Returns:
the unique ID of the queue member channel that is taking the call.

setBridgedChannel

public void setBridgedChannel(java.lang.String bridgedChannel)
Sets the unique ID of the queue member channel that is taking the call.

Parameters:
bridgedChannel - the unique ID of the queue member channel that is taking the call.

getRingtime

public java.lang.Long getRingtime()
Returns the amount of time the agent's channel was ringing before answered.

Available since Asterisk 1.6.

Returns:
the amount of time the agent's channel was ringing before answered in seconds.
Since:
1.0.0

setRingtime

public void setRingtime(java.lang.Long ringtime)

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.