public class MixMonitorAction extends AbstractManagerAction
Constructor and Description |
---|
MixMonitorAction()
Creates a new empty MixMonitorAction
|
MixMonitorAction(String channel)
Creates a new MixMonitorAction that starts monitoring the given channel
using a default filename.
|
MixMonitorAction(String channel,
String filename)
Creates a new MixMonitorAction that starts monitoring the given channel
with the specified filename.
|
MixMonitorAction(String channel,
String filename,
String options)
Creates a new MixMonitorAction with options that starts monitoring the
given channel with the specified filename.
|
MixMonitorAction(String channel,
String filename,
String options,
String command)
Creates a new MixMonitorAction with options that starts monitoring the
given channel with the specified filename.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getChannel()
Returns the name of the Asterisk channel to monitor.
|
String |
getCommand()
Get the command to be executed when the MixMonitor recording has
ended.
|
String |
getFile()
Returns the filename that Asterisk will use when saving the recording.
|
String |
getOptions()
Gets the options that are passed to MixMonitor.
|
void |
setChannel(String channel)
Sets the name of the Asterisk channel to the given value.
|
void |
setCommand(String command)
Sets the command to be executed when the MixMonitor recording has
ended.
|
void |
setFile(String filename)
Sets the filename that Asterisk will use when saving the recording.
|
void |
setOptions(String options)
Sets the options that are passed to MixMonitor.
|
getActionId, setActionId, toString
public MixMonitorAction()
public MixMonitorAction(String channel)
channel
- the name of the channel to monitorpublic MixMonitorAction(String channel, String filename)
channel
- the name of the channel to monitorfilename
- the filename to use for the recordingpublic MixMonitorAction(String channel, String filename, String options)
channel
- the name of the channel to monitorfilename
- the filename to use for the recordingoptions
- the MixMonitor options to use when starting the recordingpublic MixMonitorAction(String channel, String filename, String options, String command)
command
option has been available since Asterisk 12channel
- the name of the channel to monitorfilename
- the filename to use for the recordingoptions
- the MixMonitor options to use when starting the recordingcommand
- the command to execute when the recording is completepublic String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getChannel()
public void setChannel(String channel)
channel
- the Asterisk channel namepublic String getFile()
public void setFile(String filename)
filename
- the recording filenamepublic String getOptions()
public void setOptions(String options)
options
- the MixMonitor optionspublic String getCommand()
public void setCommand(String command)
command
- the command to executeCopyright © 2004–2021. All rights reserved.