public class QueueAddAction extends AbstractManagerAction
It is implemented in apps/app_queue.c
The memberName
property was added in Asterisk 1.4, the
stateInterface
property in Asterisk 1.6.
Constructor and Description |
---|
QueueAddAction()
Creates a new empty QueueAddAction.
|
QueueAddAction(String queue,
String iface)
Creates a new QueueAddAction that adds a new member on the given
interface to the given queue.
|
QueueAddAction(String queue,
String iface,
Integer penalty)
Creates a new QueueAddAction that adds a new member on the given
interface to the given queue with the given penalty.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getInterface()
Returns the name of the channel to dial to reach this member.
|
String |
getMemberName()
Returns the name of the queue memeber (agent name).
|
Boolean |
getPaused()
Returns if the queue member should be paused when added.
|
Integer |
getPenalty()
Returns the penalty for this member.
|
String |
getQueue()
Returns the name of the queue the new member will be added to.
|
String |
getStateInterface()
Returns the name of the channel from which to read devicestate changes.
|
void |
setInterface(String iface)
Sets the name of the channel (Technology/Location) to dial to reach this member.
|
void |
setMemberName(String memberName)
Sets the name of the queue memeber (agent name).
|
void |
setPaused(Boolean paused)
Sets if the queue member should be paused when added.
|
void |
setPenalty(Integer penalty)
Sets the penalty for this member.
|
void |
setQueue(String queue)
Sets the name of the queue the new member will be added to.
|
void |
setStateInterface(String stateInterface)
Sets the name of the channel (Technology/Location) from which to read devicestate changes.
|
getActionId, setActionId, toString
public QueueAddAction()
public QueueAddAction(String queue, String iface)
queue
- the name of the queue the new member will be added toiface
- Sets the interface to add. To add a specific channel just
use the channel name, e.g. "SIP/1234".public QueueAddAction(String queue, String iface, Integer penalty)
queue
- the name of the queue the new member will be added toiface
- Sets the interface to add. To add a specific channel just
use the channel name, e.g. "SIP/1234".penalty
- the penalty for this member. The penalty must be a
positive integer or 0 for no penalty. When calls are
distributed members with higher penalties are considered last.public String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getQueue()
public void setQueue(String queue)
This property is mandatory.
queue
- the name of the queue the new member will be added to.public String getInterface()
public void setInterface(String iface)
This property is mandatory.
iface
- the name of the channel to dial to reach this member, e.g. "SIP/1234".public Integer getPenalty()
public void setPenalty(Integer penalty)
The penalty must be a positive integer or 0 for no penalty. If it is not set 0 is assumed.
When calls are distributed members with higher penalties are considered last.
penalty
- the penalty for this member.public Boolean getPaused()
public void setPaused(Boolean paused)
paused
- Boolean.TRUE if the queue member should be paused when
added.public String getMemberName()
Available since Asterisk 1.4
public void setMemberName(String memberName)
Available since Asterisk 1.4
memberName
- the name of the queue memeber (agent name).public String getStateInterface()
Available since Asterisk 1.6
public void setStateInterface(String stateInterface)
Available since Asterisk 1.6
stateInterface
- the name of the channel from which to read devicestate changes.Copyright © 2004–2017. All rights reserved.