|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.manager.action.AbstractManagerAction
org.asteriskjava.manager.action.ParkAction
public class ParkAction
The ParkAction parks a channel using Asterisk's park feature.
Defined in res/res_features.c
Available since Asterisk 1.4.
Constructor Summary | |
---|---|
ParkAction()
Creates a new empty ParkAction. |
|
ParkAction(java.lang.String channel,
java.lang.String channel2)
Creates a new ParkAction. |
|
ParkAction(java.lang.String channel,
java.lang.String channel2,
java.lang.Integer timeout)
Creates a new ParkAction with a timeout. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getChannel()
Returns the name of the channel to park. |
java.lang.String |
getChannel2()
Returns the name of the channel to announce park info to and return to on timeout. |
java.lang.Integer |
getTimeout()
Returns the timeout in seconds before callback. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel to park. |
void |
setChannel2(java.lang.String channel2)
Sets the name of the channel to announce park info to and return to on timeout. |
void |
setTimeout(java.lang.Integer timeout)
Sets the timeout in seconds before callback. |
Methods inherited from class org.asteriskjava.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 ParkAction()
public ParkAction(java.lang.String channel, java.lang.String channel2)
channel
- name of the channel to park.channel2
- name of the channel to announce park info to and return
to on timeout.public ParkAction(java.lang.String channel, java.lang.String channel2, java.lang.Integer timeout)
channel
- the name of the channel to park.channel2
- the name of the channel to announce park info to and
return to on timeout.timeout
- the timeout in seconds before callback.Method Detail |
---|
public java.lang.String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
This property is mandatory.
channel
- the name of the channel to park.public java.lang.String getChannel2()
public void setChannel2(java.lang.String channel2)
This property is mandatory.
channel2
- the name of the channel to announce park info to and
return to on timeout.public java.lang.Integer getTimeout()
public void setTimeout(java.lang.Integer timeout)
timeout
- the timeout in seconds before callback.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |