public class ParkAction extends AbstractManagerAction
Defined in res/res_features.c
Available since Asterisk 1.4.
Constructor and Description |
---|
ParkAction()
Creates a new empty ParkAction.
|
ParkAction(String channel,
String channel2)
Creates a new ParkAction.
|
ParkAction(String channel,
String channel2,
Integer timeout)
Creates a new ParkAction with a timeout.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getChannel()
Returns the name of the channel to park.
|
String |
getChannel2()
Returns the name of the channel to announce park info to and return to on
timeout.
|
Integer |
getTimeout()
Returns the timeout in seconds before callback.
|
void |
setChannel(String channel)
Sets the name of the channel to park.
|
void |
setChannel2(String channel2)
Sets the name of the channel to announce park info to and return to on
timeout.
|
void |
setTimeout(Integer timeout)
Sets the timeout in seconds before callback.
|
getActionId, setActionId, toString
public ParkAction()
public ParkAction(String channel, 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(String channel, String channel2, 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.public String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getChannel()
public void setChannel(String channel)
This property is mandatory.
channel
- the name of the channel to park.public String getChannel2()
public void setChannel2(String channel2)
This property is mandatory.
channel2
- the name of the channel to announce park info to and
return to on timeout.public Integer getTimeout()
public void setTimeout(Integer timeout)
timeout
- the timeout in seconds before callback.Copyright © 2004–2016. All rights reserved.