Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
* The QueueAddAction adds a new member to a queue.<p>
* It is implemented in <code>apps/app_queue.c</code><p>
* The <code>memberName</code> property was added in Asterisk 1.4, the
* <code>stateInterface</code> property in Asterisk 1.6.
* <code>stateInterface</code> property in Asterisk 1.6,
* the <code>reason</code> property in Asterisk 20.
*
* @author srt
* @version $Id$
Expand All @@ -31,6 +32,7 @@ public class QueueAddAction extends AbstractManagerAction {
private String iface;
private Integer penalty;
private Boolean paused;
private String reason;
private String memberName;
private String stateInterface;

Expand Down Expand Up @@ -161,6 +163,26 @@ public Boolean getPaused() {
public void setPaused(Boolean paused) {
this.paused = paused;
}

/**
* Returns the queue member pause reason.
* Available since Asterisk 20.
*
* @return Pause reason.
*/
public String getReason() {
return reason;
}

/**
* Sets the queue member pause reason.
* Available since Asterisk 20.
*
* @param reason.
*/
public void setReason(String reason) {
this.reason = reason;
}

/**
* Returns the name of the queue memeber (agent name).<p>
Expand Down