📄 asteriskserverimpl.html
字号:
<P><DD><DL><DT><B>Specified by:</B><DD><CODE><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></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>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)<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>.<DD><CODE>cb</CODE> - callback to inform about the result<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</DL></DD></DL><HR><A NAME="getChannels()"><!-- --></A><H3>getChannels</H3><PRE>public java.util.Collection<<A HREF="../../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A>> <B>getChannels</B>() throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getChannels()">AsteriskServer</A></CODE></B></DD><DD>Returns the active channels of the Asterisk server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getChannels()">getChannels</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>a Collection of active channels.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if there is a problem communication with Asterisk</DL></DD></DL><HR><A NAME="getChannelByName(java.lang.String)"><!-- --></A><H3>getChannelByName</H3><PRE>public <A HREF="../../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A> <B>getChannelByName</B>(java.lang.String name) throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getChannelByName(java.lang.String)">AsteriskServer</A></CODE></B></DD><DD>Returns a channel by its name.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getChannelByName(java.lang.String)">getChannelByName</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>name</CODE> - name of the channel to return<DT><B>Returns:</B><DD>the channel with the given name or <code>null</code> if there is no such channel.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if there is a problem communication with Asterisk</DL></DD></DL><HR><A NAME="getChannelById(java.lang.String)"><!-- --></A><H3>getChannelById</H3><PRE>public <A HREF="../../../../org/asteriskjava/live/AsteriskChannel.html" title="interface in org.asteriskjava.live">AsteriskChannel</A> <B>getChannelById</B>(java.lang.String id) throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getChannelById(java.lang.String)">AsteriskServer</A></CODE></B></DD><DD>Returns a channel by its unique id.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getChannelById(java.lang.String)">getChannelById</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>id</CODE> - the unique id of the channel to return<DT><B>Returns:</B><DD>the channel with the given unique id or <code>null</code> if there is no such channel.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if there is a problem communication with Asterisk</DL></DD></DL><HR><A NAME="getMeetMeRooms()"><!-- --></A><H3>getMeetMeRooms</H3><PRE>public java.util.Collection<<A HREF="../../../../org/asteriskjava/live/MeetMeRoom.html" title="interface in org.asteriskjava.live">MeetMeRoom</A>> <B>getMeetMeRooms</B>() throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getMeetMeRooms()">AsteriskServer</A></CODE></B></DD><DD>Returns the acitve MeetMe rooms on the Asterisk server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getMeetMeRooms()">getMeetMeRooms</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>a Collection of MeetMeRooms<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if there is a problem communication with Asterisk</DL></DD></DL><HR><A NAME="getMeetMeRoom(java.lang.String)"><!-- --></A><H3>getMeetMeRoom</H3><PRE>public <A HREF="../../../../org/asteriskjava/live/MeetMeRoom.html" title="interface in org.asteriskjava.live">MeetMeRoom</A> <B>getMeetMeRoom</B>(java.lang.String name) throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getMeetMeRoom(java.lang.String)">AsteriskServer</A></CODE></B></DD><DD>Returns the MeetMe room with the given number, if the room does not yet exist a new <A HREF="../../../../org/asteriskjava/live/MeetMeRoom.html" title="interface in org.asteriskjava.live"><CODE>MeetMeRoom</CODE></A> object is created.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getMeetMeRoom(java.lang.String)">getMeetMeRoom</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>name</CODE> - the number of the room to return<DT><B>Returns:</B><DD>the MeetMe room with the given number.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if there is a problem communication with Asterisk</DL></DD></DL><HR><A NAME="getQueues()"><!-- --></A><H3>getQueues</H3><PRE>public java.util.Collection<<A HREF="../../../../org/asteriskjava/live/AsteriskQueue.html" title="interface in org.asteriskjava.live">AsteriskQueue</A>> <B>getQueues</B>() throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getQueues()">AsteriskServer</A></CODE></B></DD><DD>Returns the queues served by the Asterisk server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getQueues()">getQueues</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>a Collection of queues.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if there is a problem communication with Asterisk</DL></DD></DL><HR><A NAME="getVersion()"><!-- --></A><H3>getVersion</H3><PRE>public java.lang.String <B>getVersion</B>() throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getVersion()">AsteriskServer</A></CODE></B></DD><DD>Returns the exact version string of this Asterisk server. <p/> This typically looks like "Asterisk 1.2.9.1-BRIstuffed-0.3.0-PRE-1q built by root @ pbx0 on a i686 running Linux on 2006-06-20 20:21:30 UTC".<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getVersion()">getVersion</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 version of this Asterisk server<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></CODE> - if the version cannot be retrieved from Asterisk</DL></DD></DL><HR><A NAME="getVersion(java.lang.String)"><!-- --></A><H3>getVersion</H3><PRE>public int[] <B>getVersion</B>(java.lang.String file) throws <A HREF="../../../../org/asteriskjava/live/ManagerCommunicationException.html" title="class in org.asteriskjava.live">ManagerCommunicationException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getVersion(java.lang.String)">AsteriskServer</A></CODE></B></DD><DD>Returns the CVS revision of a given source file of this Asterisk server. <p/> For example getVersion("app_meetme.c") may return {1, 102} for CVS revision "1.102". <p/> Note that this feature is not available with Asterisk 1.0.x. <p/> You can use this feature if you need to write applications that behave different depending on specific modules being available in a specific version or not.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#getVersion(java.lang.String)">getVersion</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>Paramet
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -