|
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.MonitorAction
public class MonitorAction
The MonitorAction starts monitoring (recording) a channel.
It is implemented in res/res_monitor.c
Constructor Summary | |
---|---|
MonitorAction()
Creates a new empty MonitorAction. |
|
MonitorAction(java.lang.String channel,
java.lang.String file)
Creates a new MonitorAction that starts monitoring the given channel and writes voice data to the given files. |
|
MonitorAction(java.lang.String channel,
java.lang.String file,
java.lang.String format)
Creates a new MonitorAction that starts monitoring the given channel and writes voice data to the given files. |
|
MonitorAction(java.lang.String channel,
java.lang.String file,
java.lang.String format,
java.lang.Boolean mix)
Creates a new MonitorAction that starts monitoring the given channel and writes voice data to the given file(s). |
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 monitor. |
java.lang.String |
getFile()
Returns the name of the file to which the voice data is written. |
java.lang.String |
getFormat()
Returns the format to use for encoding the voice files. |
java.lang.Boolean |
getMix()
Returns true if the two voice files should be joined at the end of the call. |
void |
setChannel(java.lang.String channel)
Sets the name of the channel to monitor. |
void |
setFile(java.lang.String file)
Sets the (base) name of the file(s) to which the voice data is written. |
void |
setFormat(java.lang.String format)
Sets the format to use for encoding the voice files. |
void |
setMix(java.lang.Boolean mix)
Set to true if the two voice files should be joined at the end of the call. |
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 MonitorAction()
public MonitorAction(java.lang.String channel, java.lang.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(java.lang.String channel, java.lang.String file, java.lang.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(java.lang.String channel, java.lang.String file, java.lang.String format, java.lang.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
callMethod 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.
public java.lang.String getFile()
public void setFile(java.lang.String file)
If this property is not set it defaults to to the channel name as per CLI with the '/' replaced by '-'.
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
If this property is not set it defaults to "wav".
public java.lang.Boolean getMix()
public void setMix(java.lang.Boolean mix)
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |