|
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.AbstractAgentEvent
org.asteriskjava.manager.event.AgentConnectEvent
public class AgentConnectEvent
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
| 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 |
|---|
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 AgentConnectEvent(java.lang.Object source)
| Method Detail |
|---|
public java.lang.Long getHoldTime()
public void setHoldTime(java.lang.Long holdtime)
holdtime - the amount of time the caller was on hold in seconds.public java.lang.String getBridgedChannel()
Available since Asterisk 1.4.
public void setBridgedChannel(java.lang.String bridgedChannel)
bridgedChannel - the unique ID of the queue member channel that is
taking the call.public java.lang.Long getRingtime()
Available since Asterisk 1.6.
public void setRingtime(java.lang.Long ringtime)
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||