|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.action.AbstractManagerAction net.sf.asterisk.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 file(s). |
|
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 file(s). |
|
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. This property is mandatory. |
void |
setFile(java.lang.String file)
Sets the (base) name of the file(s) to which the voice data is written. If this property is not set it defaults to to the channel name as per CLI with the '/' replaced by '-'. |
void |
setFormat(java.lang.String format)
Sets the format to use for encoding the voice files. If this property is not set it defaults to "wav". |
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 net.sf.asterisk.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)
channel
- the name of the channel to monitorfile
- the (base) name of the file(s) to which the voice data is
writtenpublic MonitorAction(java.lang.String channel, java.lang.String file, java.lang.String format)
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 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)
public java.lang.String getFile()
public void setFile(java.lang.String file)
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
public java.lang.Boolean getMix()
public void setMix(java.lang.Boolean mix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |