📄 asteriskserverimpl.html
字号:
<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/internal/AsteriskServerImpl.html#setManagerConnection(org.asteriskjava.manager.ManagerConnection)">setManagerConnection</A></B>(<A HREF="../../../../org/asteriskjava/manager/ManagerConnection.html" title="interface in org.asteriskjava.manager">ManagerConnection</A> eventConnection)</CODE><BR> </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/internal/AsteriskServerImpl.html#setSkipQueues(boolean)">setSkipQueues</A></B>(boolean skipQueues)</CODE><BR> Determines if queue status is retrieved at startup.</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/internal/AsteriskServerImpl.html#shutdown()">shutdown</A></B>()</CODE><BR> Closes the connection to this server.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="AsteriskServerImpl()"><!-- --></A><H3>AsteriskServerImpl</H3><PRE>public <B>AsteriskServerImpl</B>()</PRE><DL><DD>Creates a new instance.<P></DL><HR><A NAME="AsteriskServerImpl(org.asteriskjava.manager.ManagerConnection)"><!-- --></A><H3>AsteriskServerImpl</H3><PRE>public <B>AsteriskServerImpl</B>(<A HREF="../../../../org/asteriskjava/manager/ManagerConnection.html" title="interface in org.asteriskjava.manager">ManagerConnection</A> eventConnection)</PRE><DL><DD>Creates a new instance.<P><DL><DT><B>Parameters:</B><DD><CODE>eventConnection</CODE> - the ManagerConnection to use for receiving events from Asterisk.</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="setSkipQueues(boolean)"><!-- --></A><H3>setSkipQueues</H3><PRE>public void <B>setSkipQueues</B>(boolean skipQueues)</PRE><DL><DD>Determines if queue status is retrieved at startup. If you don't need queue information and still run Asterisk 1.0.x you can set this to <code>true</code> to circumvent the startup delay caused by the missing QueueStatusComplete event. <p> Default is <code>false</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>skipQueues</CODE> - <code>true</code> to skip queue initialization, <code>false</code> to not skip.<DT><B>Since:</B></DT> <DD>0.2</DD></DL></DD></DL><HR><A NAME="setManagerConnection(org.asteriskjava.manager.ManagerConnection)"><!-- --></A><H3>setManagerConnection</H3><PRE>public void <B>setManagerConnection</B>(<A HREF="../../../../org/asteriskjava/manager/ManagerConnection.html" title="interface in org.asteriskjava.manager">ManagerConnection</A> eventConnection)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getManagerConnection()"><!-- --></A><H3>getManagerConnection</H3><PRE>public <A HREF="../../../../org/asteriskjava/manager/ManagerConnection.html" title="interface in org.asteriskjava.manager">ManagerConnection</A> <B>getManagerConnection</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getManagerConnection()">AsteriskServer</A></CODE></B></DD><DD>Returns the underlying ManagerConnection.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getManagerConnection()">getManagerConnection</A></CODE> in interface <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html" title="interface in org.asteriskjava.live">AsteriskServer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the underlying ManagerConnection.</DL></DD></DL><HR><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>() throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE></DL></DD></DL><HR><A NAME="originateToExtension(java.lang.String, java.lang.String, java.lang.String, int, long)"><!-- --></A><H3>originateToExtension</H3><PRE>public <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><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#originateToExtension(java.lang.String, java.lang.String, java.lang.String, int, long)">AsteriskServer</A></CODE></B></DD><DD>Generates an outgoing channel to a dialplan entry (extension, context, priority).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#originateToExtension(java.lang.String, java.lang.String, java.lang.String, int, long)">originateToExtension</A></CODE> in interface <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html" title="interface in org.asteriskjava.live">AsteriskServer</A></CODE></DL></DD><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/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if the originate action cannot be sent to Asterisk<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.</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>public <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)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -