|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.action.AbstractManagerAction net.sf.asterisk.manager.action.AgentCallbackLoginAction
public class AgentCallbackLoginAction
The AgentCallbackLoginAction sets an agent as logged in with callback.
You can pass an extentsion (and optionally a context) to specify the
destination of the callback.
In contrast to the AgentCallbackLogin application that you can use within
Asterisk's dialplan, you don't need to know the agent's password when logging
in an agent.
Available since Asterisk 1.2
Constructor Summary | |
---|---|
AgentCallbackLoginAction()
Creates a new empty AgentCallbackLoginAction. |
|
AgentCallbackLoginAction(java.lang.String agent,
java.lang.String exten)
Creates a new AgentCallbackLoginAction, that logs in the given agent at the given callback extension. |
|
AgentCallbackLoginAction(java.lang.String agent,
java.lang.String exten,
java.lang.String context)
Creates a new AgentCallbackLoginAction, that logs in the given agent at the given callback extension in the given context. |
Method Summary | |
---|---|
java.lang.Boolean |
getAckCall()
Returns if an acknowledgement is needed when agent is called back. |
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getAgent()
Returns the name of the agent to log in, for example "1002". |
java.lang.String |
getContext()
Returns the context of the extension to use for callback. |
java.lang.String |
getExten()
Returns the extension to use for callback. |
java.lang.Long |
getWrapupTime()
Returns the minimum amount of time after disconnecting before the caller can receive a new call. |
void |
setAckCall(java.lang.Boolean ackCall)
Sets if an acknowledgement is needed when agent is called back. This property is optional, it allows you to override the defaults defined in Asterisk's configuration. |
void |
setAgent(java.lang.String agent)
Sets the name of the agent to log in, for example "1002". This is property is mandatory. |
void |
setContext(java.lang.String context)
Sets the context of the extension to use for callback. |
void |
setExten(java.lang.String exten)
Sets the extension to use for callback. This is property is mandatory. |
void |
setWrapupTime(java.lang.Long wrapupTime)
Sets the minimum amount of time after disconnecting before the caller can receive a new call. This property is optional, it allows you to override the defaults defined in Asterisk's configuration. |
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction |
---|
getActionId, setActionId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AgentCallbackLoginAction()
public AgentCallbackLoginAction(java.lang.String agent, java.lang.String exten)
agent
- the name of the agent to log inexten
- the extension that is called to connect a queue member with
this agentpublic AgentCallbackLoginAction(java.lang.String agent, java.lang.String exten, java.lang.String context)
agent
- the name of the agent to log inexten
- the extension that is called to connect a queue member with
this agentcontext
- the context of the extension to use for callbackMethod Detail |
---|
public java.lang.String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public java.lang.String getAgent()
public void setAgent(java.lang.String agent)
agent
- the name of the agent to log inpublic java.lang.String getExten()
public void setExten(java.lang.String exten)
exten
- the extension to use for callback.public java.lang.String getContext()
public void setContext(java.lang.String context)
context
- the context of the extension to use for callback.public java.lang.Boolean getAckCall()
null
if
default should be used.public void setAckCall(java.lang.Boolean ackCall)
ackCall
- Boolean.TRUE to 'true' to require an acknowledgement by
'#' when agent is called back, Boolean.FALSE otherwise.
null
if default should be used.public java.lang.Long getWrapupTime()
public void setWrapupTime(java.lang.Long wrapupTime)
wrapupTime
- the minimum amount of time after disconnecting before
the caller can receive a new call in milliseconds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |