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

📄 asteriskserver.html

📁 关于asterisk的java包
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates an outgoing channel to an application.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#originateToApplication(java.lang.String, java.lang.String, java.lang.String, long, org.asteriskjava.live.CallerId, java.util.Map)">originateToApplication</A></B>(java.lang.String&nbsp;channel,                       java.lang.String&nbsp;application,                       java.lang.String&nbsp;data,                       long&nbsp;timeout,                       <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A>&nbsp;callerId,                       java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;variables)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates an outgoing channel to an application and sets an optional map of channel variables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#originateToApplicationAsync(java.lang.String, java.lang.String, java.lang.String, long, org.asteriskjava.live.CallerId, java.util.Map, org.asteriskjava.live.OriginateCallback)">originateToApplicationAsync</A></B>(java.lang.String&nbsp;channel,                            java.lang.String&nbsp;application,                            java.lang.String&nbsp;data,                            long&nbsp;timeout,                            <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A>&nbsp;callerId,                            java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;variables,                            <A HREF="../../../org/asteriskjava/live/OriginateCallback.html" title="interface in org.asteriskjava.live">OriginateCallback</A>&nbsp;callback)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Asynchronously generates an outgoing channel to an application and sets an optional map of channel variables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#originateToApplicationAsync(java.lang.String, java.lang.String, java.lang.String, long, org.asteriskjava.live.OriginateCallback)">originateToApplicationAsync</A></B>(java.lang.String&nbsp;channel,                            java.lang.String&nbsp;application,                            java.lang.String&nbsp;data,                            long&nbsp;timeout,                            <A HREF="../../../org/asteriskjava/live/OriginateCallback.html" title="interface in org.asteriskjava.live">OriginateCallback</A>&nbsp;callback)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Asynchronously generates an outgoing channel to an application.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#originateToExtension(java.lang.String, java.lang.String, java.lang.String, int, long)">originateToExtension</A></B>(java.lang.String&nbsp;channel,                     java.lang.String&nbsp;context,                     java.lang.String&nbsp;exten,                     int&nbsp;priority,                     long&nbsp;timeout)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates an outgoing channel to a dialplan entry (extension, context, priority).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#originateToExtension(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.CallerId, java.util.Map)">originateToExtension</A></B>(java.lang.String&nbsp;channel,                     java.lang.String&nbsp;context,                     java.lang.String&nbsp;exten,                     int&nbsp;priority,                     long&nbsp;timeout,                     <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A>&nbsp;callerId,                     java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;variables)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates an outgoing channel to a dialplan entry (extension, context, priority) and sets an optional map of channel variables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#originateToExtensionAsync(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.CallerId, java.util.Map, org.asteriskjava.live.OriginateCallback)">originateToExtensionAsync</A></B>(java.lang.String&nbsp;channel,                          java.lang.String&nbsp;context,                          java.lang.String&nbsp;exten,                          int&nbsp;priority,                          long&nbsp;timeout,                          <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A>&nbsp;callerId,                          java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;variables,                          <A HREF="../../../org/asteriskjava/live/OriginateCallback.html" title="interface in org.asteriskjava.live">OriginateCallback</A>&nbsp;callback)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Asynchronously generates an outgoing channel to a dialplan entry (extension, context, priority) and sets an optional map of channel variables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#originateToExtensionAsync(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.OriginateCallback)">originateToExtensionAsync</A></B>(java.lang.String&nbsp;channel,                          java.lang.String&nbsp;context,                          java.lang.String&nbsp;exten,                          int&nbsp;priority,                          long&nbsp;timeout,                          <A HREF="../../../org/asteriskjava/live/OriginateCallback.html" title="interface in org.asteriskjava.live">OriginateCallback</A>&nbsp;callback)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Asynchronously generates an outgoing channel to a dialplan entry (extension, context, priority).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#removeAsteriskServerListener(org.asteriskjava.live.AsteriskServerListener)">removeAsteriskServerListener</A></B>(<A HREF="../../../org/asteriskjava/live/AsteriskServerListener.html" title="interface in org.asteriskjava.live">AsteriskServerListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a listener from this Asterisk server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#setGlobalVariable(java.lang.String, java.lang.String)">setGlobalVariable</A></B>(java.lang.String&nbsp;variable,                  java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of the given global variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#shutdown()">shutdown</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes the connection to this server.</TD></TR></TABLE>&nbsp;<P><!-- ============ 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="getManagerConnection()"><!-- --></A><H3>getManagerConnection</H3><PRE><A HREF="../../../org/asteriskjava/manager/ManagerConnection.html" title="interface in org.asteriskjava.manager">ManagerConnection</A> <B>getManagerConnection</B>()</PRE><DL><DD>Returns the underlying ManagerConnection.<P><DD><DL><DT><B>Returns:</B><DD>the underlying ManagerConnection.</DL></DD></DL><HR><A NAME="originateToExtension(java.lang.String, java.lang.String, java.lang.String, int, long)"><!-- --></A><H3>originateToExtension</H3><PRE><A HREF="../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A> <B>originateToExtension</B>(java.lang.String&nbsp;channel,                                     java.lang.String&nbsp;context,                                     java.lang.String&nbsp;exten,                                     int&nbsp;priority,                                     long&nbsp;timeout)                                     throws <A HREF="../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A>,                                            <A HREF="../../../org/asteriskjava/live/NoSuchChannelException.html" title="class in org.asteriskjava.live">NoSuchChannelException</A></PRE><DL><DD>Generates an outgoing channel to a dialplan entry (extension, context, priority).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>channel</CODE> - channel name to call, for example "SIP/1310".<DD><CODE>context</CODE> - context to connect to<DD><CODE>exten</CODE> - extension to connect to<DD><CODE>priority</CODE> - priority to connect to<DD><CODE>timeout</CODE> - how long to wait for the channel to be answered before its                 considered to have failed (in ms)<DT><B>Returns:</B><DD>the generated channel<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/asteriskjava/live/NoSuchChannelException.html" title="class in org.asteriskjava.live">NoSuchChannelException</A></CODE> - if the channel is not available on the                                       Asterisk server, for example because you used "SIP/1310" and                                       1310 is not a valid SIP user, the SIP channel module hasn't                                       been loaded or the SIP or IAX peer is not registered                                       currently.<DD><CODE><A HREF="../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if the originate action cannot be                                       sent to Asterisk</DL></DD></DL><HR><A NAME="originateToExtension(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.CallerId, java.util.Map)"><!-- --></A><H3>originateToExtension</H3><PRE><A HREF="../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A> <B>originateToExtension</B>(java.lang.String&nbsp;channel,                                     java.lang.String&nbsp;context,                                     java.lang.String&nbsp;exten,                                     int&nbsp;priority,                                     long&nbsp;timeout,                                     <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A>&nbsp;callerId,                                     java.util.Map&lt;java.lang.String,java.lang.String&gt;&nbsp;variables)                                     throws <A HREF="../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A>,                                            <A HREF="../../../org/asteriskjava/live/NoSuchChannelException.html" title="class in org.asteriskjava.live">NoSuchChannelException</A></PRE><DL><DD>Generates an outgoing channel to a dialplan entry (extension, context, priority) and sets an optional map of channel variables.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>channel</CODE> - channel name to call, for example "SIP/1310".<DD><CODE>context</CODE> - context to connect to<DD><CODE>exten</CODE> - extension to connect to<DD><CODE>priority</CODE> - priority to connect to<DD><CODE>timeout</CODE> - how long to wait for the channel to be answered before its                  considered to have failed (in ms)<DD><CODE>callerId</CODE> - callerId to use for the outgoing channel, may be                  <code>null</code>.<DD><CODE>variables</CODE> - channel variables to set, may be <code>null</code>.<DT><B>Returns:</B><DD>the generated channel<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/asteriskjava/live/NoSuchChannelException.html" title="class in org.asteriskjava.live">NoSuchChannelException</A></CODE> - if the channel is not available on the                                       Asterisk server, for example because you used "SIP/1310" and                                       1310 is not a valid SIP user, the SIP channel module hasn't                                       been loaded or the SIP or IAX peer is not registered                                       currently.<DD><CODE><A HREF="../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if the originate action cannot be                                       sent to Asterisk</DL></DD></DL><HR><A NAME="originateToApplication(java.lang.String, java.lang.String, java.lang.String, long)"><!-- --></A><H3>originateToApplication</H3><PRE><A HREF="../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A> <B>originateToApplication</B>(java.lang.String&nbsp;channel,                                       java.lang.String&nbsp;application,                                       java.lang.String&nbsp;data,                                       long&nbsp;timeout)                                       throws <A HREF="../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A>,                                              <A HREF="../../../org/asteriskjava/live/NoSuchChannelException.html" title="class in org.asteriskjava.live">NoSuchChannelException</A></PRE><DL><DD>Generates an outgoing channel to an application.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>channel</CODE> - channel name to call, for example "SIP/1310".<DD><CODE>application</CODE> - application to connect to, for example "MeetMe"<DD><CODE>data</CODE> - data to pass to the application, for example "1000|d", may be                    <code>null</code>.<DD><CODE>timeout</CODE> - how long to wait for the channel to be answered before its                    considered to have failed (in ms)<DT><B>Returns:</B><DD>the generated channel<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/asteriskjava/live/NoSuchChannelException.html" title="class in org.asteriskjava.live">NoSuchChannelException</A></CODE> - if the channel is not available on the                                       Asterisk server, for example because you used "SIP/1310" and                                       1310 is not a valid SIP user, the SIP channel module hasn't                                       been loaded or the SIP or IAX peer is not registered                                       currently.<DD><CODE><A HREF="../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if the originate action cannot be                                       sent to Asterisk</DL></DD></DL>

⌨️ 快捷键说明

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