📄 asteriskserverimpl.html
字号:
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, org.asteriskjava.live.CallerId, java.util.Map)">AsteriskServer</A></CODE></B></DD><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>Specified by:</B><DD><CODE><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></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)<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/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="originateToApplication(java.lang.String, java.lang.String, java.lang.String, long)"><!-- --></A><H3>originateToApplication</H3><PRE>public <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><B>Description copied from interface: <CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#originateToApplication(java.lang.String, java.lang.String, java.lang.String, long)">AsteriskServer</A></CODE></B></DD><DD>Generates an outgoing channel to an application.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/live/AsteriskServer.html#originateToApplication(java.lang.String, java.lang.String, java.lang.String, long)">originateToApplication</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)<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="originateToApplication(java.lang.String, java.lang.String, java.lang.String, long, org.asteriskjava.live.CallerId, java.util.Map)"><!-- --></A><H3>originateToApplication</H3><PRE>public <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, <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><B>Description copied from interface: <CODE><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)">AsteriskServer</A></CODE></B></DD><DD>Generates an outgoing channel to an application and sets an optional map of channel variables.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><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></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>.<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="originateToExtensionAsync(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.OriginateCallback)"><!-- --></A><H3>originateToExtensionAsync</H3><PRE>public void <B>originateToExtensionAsync</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> cb) 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#originateToExtensionAsync(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.OriginateCallback)">AsteriskServer</A></CODE></B></DD><DD>Asynchronously 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#originateToExtensionAsync(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.OriginateCallback)">originateToExtensionAsync</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)<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="originateToExtensionAsync(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.CallerId, java.util.Map, org.asteriskjava.live.OriginateCallback)"><!-- --></A><H3>originateToExtensionAsync</H3><PRE>public void <B>originateToExtensionAsync</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> cb) 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#originateToExtensionAsync(java.lang.String, java.lang.String, java.lang.String, int, long, org.asteriskjava.live.CallerId, java.util.Map, org.asteriskjava.live.OriginateCallback)">AsteriskServer</A></CODE></B></DD><DD>Asynchronously generates an outgoing channel to a dialplan entry (extension, context, priority) and sets an optional map of channel variables.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><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></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)<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="originateToApplicationAsync(java.lang.String, java.lang.String, java.lang.String, long, org.asteriskjava.live.OriginateCallback)"><!-- --></A><H3>originateToApplicationAsync</H3><PRE>public void <B>originateToApplicationAsync</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> cb) 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#originateToApplicationAsync(java.lang.String, java.lang.String, java.lang.String, long, org.asteriskjava.live.OriginateCallback)">AsteriskServer</A></CODE></B></DD><DD>Asynchronously generates an outgoing channel to an application.<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.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>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="originateToApplicationAsync(java.lang.String, java.lang.String, java.lang.String, long, org.asteriskjava.live.CallerId, java.util.Map, org.asteriskjava.live.OriginateCallback)"><!-- --></A><H3>originateToApplicationAsync</H3><PRE>public void <B>originateToApplicationAsync</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> cb) 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#originateToApplicationAsync(java.lang.String, java.lang.String, java.lang.String, long, org.asteriskjava.live.CallerId, java.util.Map, org.asteriskjava.live.OriginateCallback)">AsteriskServer</A></CODE></B></DD><DD>Asynchronously generates an outgoing channel to an application and sets an optional map of channel variables.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -