📄 monitoraction.html
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="MonitorAction()"><!-- --></A><H3>MonitorAction</H3><PRE>public <B>MonitorAction</B>()</PRE><DL><DD>Creates a new empty MonitorAction.<P></DL><HR><A NAME="MonitorAction(java.lang.String, java.lang.String)"><!-- --></A><H3>MonitorAction</H3><PRE>public <B>MonitorAction</B>(java.lang.String channel, java.lang.String file)</PRE><DL><DD>Creates a new MonitorAction that starts monitoring the given channel and writes voice data to the given files.<p> The format of the files is "wav", they are not mixed.<P><DL><DT><B>Parameters:</B><DD><CODE>channel</CODE> - the name of the channel to monitor<DD><CODE>file</CODE> - the (base) name of the files to which the voice data is written<DT><B>Since:</B></DT> <DD>0.2</DD></DL></DL><HR><A NAME="MonitorAction(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>MonitorAction</H3><PRE>public <B>MonitorAction</B>(java.lang.String channel, java.lang.String file, java.lang.String format)</PRE><DL><DD>Creates a new MonitorAction that starts monitoring the given channel and writes voice data to the given files.<p> The files are not mixed.<P><DL><DT><B>Parameters:</B><DD><CODE>channel</CODE> - the name of the channel to monitor<DD><CODE>file</CODE> - the (base) name of the files to which the voice data is written<DD><CODE>format</CODE> - the format to use for encoding the voice files<DT><B>Since:</B></DT> <DD>0.2</DD></DL></DL><HR><A NAME="MonitorAction(java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean)"><!-- --></A><H3>MonitorAction</H3><PRE>public <B>MonitorAction</B>(java.lang.String channel, java.lang.String file, java.lang.String format, java.lang.Boolean mix)</PRE><DL><DD>Creates a new MonitorAction that starts monitoring the given channel and writes voice data to the given file(s).<P><DL><DT><B>Parameters:</B><DD><CODE>channel</CODE> - the name of the channel to monitor<DD><CODE>file</CODE> - the (base) name of the file(s) to which the voice data is written<DD><CODE>format</CODE> - the format to use for encoding the voice files<DD><CODE>mix</CODE> - true if the two voice files should be joined at the end of the call<DT><B>Since:</B></DT> <DD>0.2</DD></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getAction()"><!-- --></A><H3>getAction</H3><PRE>public java.lang.String <B>getAction</B>()</PRE><DL><DD>Returns the name of this action, i.e. "Monitor".<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/manager/action/ManagerAction.html#getAction()">getAction</A></CODE> in interface <CODE><A HREF="../../../../org/asteriskjava/manager/action/ManagerAction.html" title="interface in org.asteriskjava.manager.action">ManagerAction</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/manager/action/AbstractManagerAction.html#getAction()">getAction</A></CODE> in class <CODE><A HREF="../../../../org/asteriskjava/manager/action/AbstractManagerAction.html" title="class in org.asteriskjava.manager.action">AbstractManagerAction</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getChannel()"><!-- --></A><H3>getChannel</H3><PRE>public java.lang.String <B>getChannel</B>()</PRE><DL><DD>Returns the name of the channel to monitor.<P><DD><DL></DL></DD></DL><HR><A NAME="setChannel(java.lang.String)"><!-- --></A><H3>setChannel</H3><PRE>public void <B>setChannel</B>(java.lang.String channel)</PRE><DL><DD>Sets the name of the channel to monitor.<p> This property is mandatory.<P><DD><DL></DL></DD></DL><HR><A NAME="getFile()"><!-- --></A><H3>getFile</H3><PRE>public java.lang.String <B>getFile</B>()</PRE><DL><DD>Returns the name of the file to which the voice data is written.<P><DD><DL></DL></DD></DL><HR><A NAME="setFile(java.lang.String)"><!-- --></A><H3>setFile</H3><PRE>public void <B>setFile</B>(java.lang.String file)</PRE><DL><DD>Sets the (base) name of the file(s) to which the voice data is written.<p> If this property is not set it defaults to to the channel name as per CLI with the '/' replaced by '-'.<P><DD><DL></DL></DD></DL><HR><A NAME="getFormat()"><!-- --></A><H3>getFormat</H3><PRE>public java.lang.String <B>getFormat</B>()</PRE><DL><DD>Returns the format to use for encoding the voice files.<P><DD><DL></DL></DD></DL><HR><A NAME="setFormat(java.lang.String)"><!-- --></A><H3>setFormat</H3><PRE>public void <B>setFormat</B>(java.lang.String format)</PRE><DL><DD>Sets the format to use for encoding the voice files.<p> If this property is not set it defaults to "wav".<P><DD><DL></DL></DD></DL><HR><A NAME="getMix()"><!-- --></A><H3>getMix</H3><PRE>public java.lang.Boolean <B>getMix</B>()</PRE><DL><DD>Returns true if the two voice files should be joined at the end of the call.<P><DD><DL></DL></DD></DL><HR><A NAME="setMix(java.lang.Boolean)"><!-- --></A><H3>setMix</H3><PRE>public void <B>setMix</B>(java.lang.Boolean mix)</PRE><DL><DD>Set to true if the two voice files should be joined at the end of the call.<P><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MonitorAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Asterisk-Java</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/asteriskjava/manager/action/MeetMeUnmuteAction.html" title="class in org.asteriskjava.manager.action"><B>PREV CLASS</B></A> <A HREF="../../../../org/asteriskjava/manager/action/OriginateAction.html" title="class in org.asteriskjava.manager.action"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/asteriskjava/manager/action/MonitorAction.html" target="_top"><B>FRAMES</B></A> <A HREF="MonitorAction.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 2004-2007 Stefan Reuter. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -