⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 originateaction.html

📁 关于asterisk的java包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<HR><A NAME="getPriority()"><!-- --></A><H3>getPriority</H3><PRE>public java.lang.Integer <B>getPriority</B>()</PRE><DL><DD>Returns the priority of the extension to connect to.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setPriority(java.lang.Integer)"><!-- --></A><H3>setPriority</H3><PRE>public void <B>setPriority</B>(java.lang.Integer&nbsp;priority)</PRE><DL><DD>Sets the priority of the extension to connect to. If you set the priority you also have to set the context and exten properties.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getApplication()"><!-- --></A><H3>getApplication</H3><PRE>public java.lang.String <B>getApplication</B>()</PRE><DL><DD>Returns the name of the application to connect to.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setApplication(java.lang.String)"><!-- --></A><H3>setApplication</H3><PRE>public void <B>setApplication</B>(java.lang.String&nbsp;application)</PRE><DL><DD>Sets the name of the application to connect to.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getData()"><!-- --></A><H3>getData</H3><PRE>public java.lang.String <B>getData</B>()</PRE><DL><DD>Returns the parameters to pass to the application.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setData(java.lang.String)"><!-- --></A><H3>setData</H3><PRE>public void <B>setData</B>(java.lang.String&nbsp;data)</PRE><DL><DD>Sets the parameters to pass to the application.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getTimeout()"><!-- --></A><H3>getTimeout</H3><PRE>public java.lang.Long <B>getTimeout</B>()</PRE><DL><DD>Returns the timeout for the origination.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setTimeout(java.lang.Integer)"><!-- --></A><H3>setTimeout</H3><PRE>public void <B>setTimeout</B>(java.lang.Integer&nbsp;timeout)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/asteriskjava/manager/action/OriginateAction.html#setTimeout(java.lang.Long)"><CODE>setTimeout(Long)</CODE></A> instead.</I><P><DD>Sets the timeout (in milliseconds) for the origination.<p> The channel must be answered within this time, otherwise the origination is considered to have failed and an OriginateFailureEvent is generated.<p> If not set, Asterisk assumes a default value of 30000 meaning 30 seconds.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>timeout</CODE> - the timeout in milliseconds</DL></DD></DL><HR><A NAME="setTimeout(java.lang.Long)"><!-- --></A><H3>setTimeout</H3><PRE>public void <B>setTimeout</B>(java.lang.Long&nbsp;timeout)</PRE><DL><DD>Sets the timeout (in milliseconds) for the origination.<p> The channel must be answered within this time, otherwise the origination is considered to have failed and an OriginateFailureEvent is generated.<p> If not set, Asterisk assumes a default value of 30000 meaning 30 seconds.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>timeout</CODE> - the timeout in milliseconds</DL></DD></DL><HR><A NAME="setVariable(java.lang.String)"><!-- --></A><H3>setVariable</H3><PRE>public void <B>setVariable</B>(java.lang.String&nbsp;variable)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../org/asteriskjava/manager/action/OriginateAction.html#setVariables(java.util.Map)"><CODE>setVariables(Map)</CODE></A> instead.</I><P><DD>Sets the variables to set on the originated call.<p> Variable assignments are of the form "VARNAME=VALUE". You can specify multiple variable assignments separated by the '|' character.<p> Example: "VAR1=abc|VAR2=def" sets the channel variables VAR1 to "abc" and VAR2 to "def".<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setVariable(java.lang.String, java.lang.String)"><!-- --></A><H3>setVariable</H3><PRE>public void <B>setVariable</B>(java.lang.String&nbsp;name,                        java.lang.String&nbsp;value)</PRE><DL><DD>Sets an variable on the originated call.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the variable to set.<DD><CODE>value</CODE> - the value of the variable to set.<DT><B>Since:</B></DT>  <DD>0.3</DD></DL></DD></DL><HR><A NAME="getVariables()"><!-- --></A><H3>getVariables</H3><PRE>public java.util.Map&lt;java.lang.String,java.lang.String&gt; <B>getVariables</B>()</PRE><DL><DD>Returns the variables to set on the originated call.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a Map containing the variable names as key and their         values as value.<DT><B>Since:</B></DT>  <DD>0.2</DD></DL></DD></DL><HR><A NAME="setVariables(java.util.Map)"><!-- --></A><H3>setVariables</H3><PRE>public void <B>setVariables</B>(java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;variables)</PRE><DL><DD>Sets the variables to set on the originated call.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>variables</CODE> - a Map containing the variable names as key and their                  values as value.<DT><B>Since:</B></DT>  <DD>0.2</DD></DL></DD></DL><HR><A NAME="getAsync()"><!-- --></A><H3>getAsync</H3><PRE>public java.lang.Boolean <B>getAsync</B>()</PRE><DL><DD>Returns true if this is a fast origination.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setAsync(java.lang.Boolean)"><!-- --></A><H3>setAsync</H3><PRE>public void <B>setAsync</B>(java.lang.Boolean&nbsp;async)</PRE><DL><DD>Set to true for fast origination. Only with fast origination Asterisk will send OriginateSuccess- and OriginateFailureEvents.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getActionCompleteEventClass()"><!-- --></A><H3>getActionCompleteEventClass</H3><PRE>public java.lang.Class <B>getActionCompleteEventClass</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/manager/action/EventGeneratingAction.html#getActionCompleteEventClass()">EventGeneratingAction</A></CODE></B></DD><DD>Returns the event type that indicates that Asterisk is finished sending response events for this action.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/manager/action/EventGeneratingAction.html#getActionCompleteEventClass()">getActionCompleteEventClass</A></CODE> in interface <CODE><A HREF="../../../../org/asteriskjava/manager/action/EventGeneratingAction.html" title="interface in org.asteriskjava.manager.action">EventGeneratingAction</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a Class that is an instance of ResponseEvent.<DT><B>See Also:</B><DD><A HREF="../../../../org/asteriskjava/manager/event/ResponseEvent.html" title="class in org.asteriskjava.manager.event"><CODE>ResponseEvent</CODE></A></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/OriginateAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../../../org/asteriskjava/manager/action/MonitorAction.html" title="class in org.asteriskjava.manager.action"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/asteriskjava/manager/action/ParkAction.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/OriginateAction.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="OriginateAction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 2004-2007 Stefan Reuter. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -