public class QueueMemberEvent extends ResponseEvent
It is implemented in apps/app_queue.c
QueueStatusAction
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
AST_DEVICE_BUSY |
static int |
AST_DEVICE_INUSE |
static int |
AST_DEVICE_INVALID |
static int |
AST_DEVICE_NOT_INUSE
Queue member is available.
|
static int |
AST_DEVICE_ONHOLD |
static int |
AST_DEVICE_RINGING |
static int |
AST_DEVICE_RINGINUSE |
static int |
AST_DEVICE_UNAVAILABLE |
static int |
AST_DEVICE_UNKNOWN |
static String |
MEMBERSHIP_DYNAMIC |
static String |
MEMBERSHIP_STATIC |
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
QueueMemberEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
Integer |
getCallsTaken()
Returns the number of calls answered by the member.
|
Integer |
getIncall() |
String |
getInterface()
Returns the name of the member's interface.
|
Long |
getLastCall()
Returns the time the last successful call answered by the added member
was hungup.
|
Long |
getLastPause()
The time when started last pause for queue member.
|
String |
getLocation()
Deprecated.
since Asterisk 12
|
String |
getMemberName()
Deprecated.
since 1.0.0. Use
getName() instead. |
String |
getMembership()
Returns if this member has been dynamically added by the QueueAdd command
(in the dialplan or via the Manager API) or if this member is has been
statically defined in
queues.conf . |
String |
getName()
Returns the name of the member.
|
Boolean |
getPaused()
Is this queue member paused (not accepting calls)?
|
String |
getPausedreason() |
Integer |
getPenalty()
Returns the penalty for the added member.
|
String |
getQueue()
Returns the name of the queue.
|
String |
getStateinterface() |
Integer |
getStatus()
Returns the status of this queue member.
|
boolean |
isDynamic()
Convenience method that checks whether this member has been dynamically
added by the QueueAdd command.
|
boolean |
isStatic()
Convenience method that checks whether this member has been statically
defined in
queues.conf . |
void |
setCallsTaken(Integer callsTaken)
Sets the number of calls answered by the added member.
|
void |
setIncall(Integer incall) |
void |
setInterface(String _interface)
Sets the name of the member's interface.
|
void |
setLastCall(Long lastCall)
Sets the time the last successful call answered by this member was
hungup.
|
void |
setLastPause(Long lastPause)
Sets the time when started last pause for queue member.
|
void |
setLocation(String _interface)
Deprecated.
since Asterisk 12
|
void |
setMemberName(String memberName) |
void |
setMembership(String membership)
Sets if this member has been dynamically or statically added.
|
void |
setName(String name) |
void |
setPaused(Boolean paused)
Sets if this member has been paused.
|
void |
setPausedreason(String pausedreason) |
void |
setPenalty(Integer penalty)
Sets the penalty for this member.
|
void |
setQueue(String queue)
Sets the name of the queue.
|
void |
setStateinterface(String stateinterface) |
void |
setStatus(Integer status)
Sets the status of this queue member.
|
getActionId, getInternalActionId, setActionId, setInternalActionId
appendPropertyIfNotNull, 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, toString
getSource
public static final int AST_DEVICE_UNKNOWN
public static final int AST_DEVICE_NOT_INUSE
public static final int AST_DEVICE_INUSE
public static final int AST_DEVICE_BUSY
public static final int AST_DEVICE_INVALID
public static final int AST_DEVICE_UNAVAILABLE
public static final int AST_DEVICE_RINGING
public static final int AST_DEVICE_RINGINUSE
public static final int AST_DEVICE_ONHOLD
public static final String MEMBERSHIP_STATIC
public static final String MEMBERSHIP_DYNAMIC
public QueueMemberEvent(Object source)
source
- public String getQueue()
public void setQueue(String queue)
queue
- the name of the queue.public final String getInterface()
E.g. the channel name or agent group.
public final void setInterface(String _interface)
member
- the name of the member's interface.@Deprecated public final String getLocation()
E.g. the channel name or agent group.
@Deprecated public final void setLocation(String _interface)
member
- the name of the member's interface.public String getMembership()
queues.conf
.public boolean isStatic()
queues.conf
.true
if this member has been statically defined in
queues.conf
, false
otherwise.public boolean isDynamic()
true
if this member has been dynamically added by
the QueueAdd command, false
otherwise.public void setMembership(String membership)
membership
- "dynamic" if the added member is a dynamic queue
member, "static" if the added member is a static queue member.public Integer getPenalty()
public void setPenalty(Integer penalty)
penalty
- the penalty for this member.public Integer getCallsTaken()
public void setCallsTaken(Integer callsTaken)
callsTaken
- the number of calls answered by the added member.public Long getLastCall()
public void setLastCall(Long lastCall)
lastCall
- the time (in seconds since 01/01/1970) the last
successful call answered by the added member was hungup.public Long getLastPause()
public void setLastPause(Long lastPause)
lastPause
- the time (in seconds since 01/01/1970)public Integer getStatus()
Available since Asterisk 1.2
Valid status codes are:
null
if this
attribute is not supported by your version of Asterisk.public void setStatus(Integer status)
status
- the status of this queue memberpublic Boolean getPaused()
Available since Asterisk 1.2.
Boolean.TRUE
if this member has been paused,
Boolean.FALSE
if not or null
if pausing
is not supported by your version of Asterisk.public void setPaused(Boolean paused)
public String getName()
public void setName(String name)
@Deprecated public String getMemberName()
getName()
instead.public void setMemberName(String memberName)
public String getStateinterface()
public void setStateinterface(String stateinterface)
public Integer getIncall()
public void setIncall(Integer incall)
public String getPausedreason()
public void setPausedreason(String pausedreason)
Copyright © 2004–2020. All rights reserved.