📄 asteriskserver.html
字号:
<BR> 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> <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 channel, java.lang.String application, java.lang.String data, long timeout, <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A> callerId, java.util.Map<java.lang.String,java.lang.String> variables)</CODE><BR> 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> 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 channel, java.lang.String application, java.lang.String data, long timeout, <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A> callerId, java.util.Map<java.lang.String,java.lang.String> variables, <A HREF="../../../org/asteriskjava/live/OriginateCallback.html" title="interface in org.asteriskjava.live">OriginateCallback</A> callback)</CODE><BR> 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> 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 channel, java.lang.String application, java.lang.String data, long timeout, <A HREF="../../../org/asteriskjava/live/OriginateCallback.html" title="interface in org.asteriskjava.live">OriginateCallback</A> callback)</CODE><BR> 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> <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 channel, java.lang.String context, java.lang.String exten, int priority, long timeout)</CODE><BR> 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> <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 channel, java.lang.String context, java.lang.String exten, int priority, long timeout, <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A> callerId, java.util.Map<java.lang.String,java.lang.String> variables)</CODE><BR> 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> 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 channel, java.lang.String context, java.lang.String exten, int priority, long timeout, <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A> callerId, java.util.Map<java.lang.String,java.lang.String> variables, <A HREF="../../../org/asteriskjava/live/OriginateCallback.html" title="interface in org.asteriskjava.live">OriginateCallback</A> callback)</CODE><BR> 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> 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 channel, java.lang.String context, java.lang.String exten, int priority, long timeout, <A HREF="../../../org/asteriskjava/live/OriginateCallback.html" title="interface in org.asteriskjava.live">OriginateCallback</A> callback)</CODE><BR> 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> 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> listener)</CODE><BR> 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> 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 variable, java.lang.String value)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/asteriskjava/live/AsteriskServer.html#shutdown()">shutdown</A></B>()</CODE><BR> Closes the connection to this server.</TD></TR></TABLE> <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 channel, java.lang.String context, java.lang.String exten, int priority, long 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 channel, java.lang.String context, java.lang.String exten, int priority, long timeout, <A HREF="../../../org/asteriskjava/live/CallerId.html" title="class in org.asteriskjava.live">CallerId</A> callerId, java.util.Map<java.lang.String,java.lang.String> 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 channel, java.lang.String application, java.lang.String data, long 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 + -