public class MonitorAction extends AbstractManagerAction
It is implemented in res/res_monitor.c
Constructor and Description |
---|
MonitorAction()
Creates a new empty MonitorAction.
|
MonitorAction(String channel,
String file)
Creates a new MonitorAction that starts monitoring the given channel and
writes voice data to the given files.
|
MonitorAction(String channel,
String file,
String format)
Creates a new MonitorAction that starts monitoring the given channel and
writes voice data to the given files.
|
MonitorAction(String channel,
String file,
String format,
Boolean mix)
Creates a new MonitorAction that starts monitoring the given channel and
writes voice data to the given file(s).
|
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 monitor.
|
String |
getFile()
Returns the name of the file to which the voice data is written.
|
String |
getFormat()
Returns the format to use for encoding the voice files.
|
Boolean |
getMix()
Returns true if the two voice files should be joined at the end of the
call.
|
void |
setChannel(String channel)
Sets the name of the channel to monitor.
|
void |
setFile(String file)
Sets the (base) name of the file(s) to which the voice data is written.
|
void |
setFormat(String format)
Sets the format to use for encoding the voice files.
|
void |
setMix(Boolean mix)
Set to true if the two voice files should be joined at the end of the
call.
|
getActionId, setActionId, toString
public MonitorAction()
public MonitorAction(String channel, String file)
The format of the files is "wav", they are not mixed.
channel
- the name of the channel to monitorfile
- the (base) name of the files to which the voice data is
writtenpublic MonitorAction(String channel, String file, String format)
The files are not mixed.
channel
- the name of the channel to monitorfile
- the (base) name of the files to which the voice data is
writtenformat
- the format to use for encoding the voice filespublic MonitorAction(String channel, String file, String format, Boolean mix)
channel
- the name of the channel to monitorfile
- the (base) name of the file(s) to which the voice data is
writtenformat
- the format to use for encoding the voice filesmix
- true if the two voice files should be joined at the end of the
callpublic String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getChannel()
public void setChannel(String channel)
This property is mandatory.
public String getFile()
public void setFile(String file)
If this property is not set it defaults to to the channel name as per CLI with the '/' replaced by '-'.
public String getFormat()
public void setFormat(String format)
If this property is not set it defaults to "wav".
public Boolean getMix()
public void setMix(Boolean mix)
Copyright © 2004–2020. All rights reserved.