📄 originateaction.html
字号:
</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/manager/action/OriginateAction.html#setTimeout(java.lang.Integer)">setTimeout</A></B>(java.lang.Integer timeout)</CODE><BR> <B>Deprecated.</B> <I>use <A HREF="../../../../org/asteriskjava/manager/action/OriginateAction.html#setTimeout(java.lang.Long)"><CODE>setTimeout(Long)</CODE></A> instead.</I></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/manager/action/OriginateAction.html#setTimeout(java.lang.Long)">setTimeout</A></B>(java.lang.Long timeout)</CODE><BR> Sets the timeout (in milliseconds) for the origination.</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/manager/action/OriginateAction.html#setVariable(java.lang.String)">setVariable</A></B>(java.lang.String variable)</CODE><BR> <B>Deprecated.</B> <I>use <A HREF="../../../../org/asteriskjava/manager/action/OriginateAction.html#setVariables(java.util.Map)"><CODE>setVariables(Map)</CODE></A> instead.</I></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/manager/action/OriginateAction.html#setVariable(java.lang.String, java.lang.String)">setVariable</A></B>(java.lang.String name, java.lang.String value)</CODE><BR> Sets an variable on the originated call.</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/manager/action/OriginateAction.html#setVariables(java.util.Map)">setVariables</A></B>(java.util.Map<java.lang.String,java.lang.String> variables)</CODE><BR> Sets the variables to set on the originated call.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.asteriskjava.manager.action.AbstractManagerAction"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.asteriskjava.manager.action.<A HREF="../../../../org/asteriskjava/manager/action/AbstractManagerAction.html" title="class in org.asteriskjava.manager.action">AbstractManagerAction</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/asteriskjava/manager/action/AbstractManagerAction.html#getActionId()">getActionId</A>, <A HREF="../../../../org/asteriskjava/manager/action/AbstractManagerAction.html#setActionId(java.lang.String)">setActionId</A>, <A HREF="../../../../org/asteriskjava/manager/action/AbstractManagerAction.html#toString()">toString</A></CODE></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, wait, wait, wait</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.asteriskjava.manager.action.ManagerAction"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface org.asteriskjava.manager.action.<A HREF="../../../../org/asteriskjava/manager/action/ManagerAction.html" title="interface in org.asteriskjava.manager.action">ManagerAction</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/asteriskjava/manager/action/ManagerAction.html#getActionId()">getActionId</A>, <A HREF="../../../../org/asteriskjava/manager/action/ManagerAction.html#setActionId(java.lang.String)">setActionId</A></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="OriginateAction()"><!-- --></A><H3>OriginateAction</H3><PRE>public <B>OriginateAction</B>()</PRE><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="getAction()"><!-- --></A><H3>getAction</H3><PRE>public java.lang.String <B>getAction</B>()</PRE><DL><DD>Returns the name of this action, i.e. "Originate".<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/manager/action/ManagerAction.html#getAction()">getAction</A></CODE> in interface <CODE><A HREF="../../../../org/asteriskjava/manager/action/ManagerAction.html" title="interface in org.asteriskjava.manager.action">ManagerAction</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/asteriskjava/manager/action/AbstractManagerAction.html#getAction()">getAction</A></CODE> in class <CODE><A HREF="../../../../org/asteriskjava/manager/action/AbstractManagerAction.html" title="class in org.asteriskjava.manager.action">AbstractManagerAction</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name of this action.</DL></DD></DL><HR><A NAME="getAccount()"><!-- --></A><H3>getAccount</H3><PRE>public java.lang.String <B>getAccount</B>()</PRE><DL><DD>Returns the account code to use for the originated call.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the account code to use for the originated call.</DL></DD></DL><HR><A NAME="setAccount(java.lang.String)"><!-- --></A><H3>setAccount</H3><PRE>public void <B>setAccount</B>(java.lang.String account)</PRE><DL><DD>Sets the account code to use for the originated call.<p> The account code is included in the call detail record generated for this call and will be used for billing.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>account</CODE> - the account code to use for the originated call.</DL></DD></DL><HR><A NAME="getCallerId()"><!-- --></A><H3>getCallerId</H3><PRE>public java.lang.String <B>getCallerId</B>()</PRE><DL><DD>Returns the caller id to set on the outgoing channel.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setCallerId(java.lang.String)"><!-- --></A><H3>setCallerId</H3><PRE>public void <B>setCallerId</B>(java.lang.String callerId)</PRE><DL><DD>Sets the caller id to set on the outgoing channel.<p> This includes both the Caller*Id Number and Caller*Id Name in the form "Jon Doe <1234>".<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>callerId</CODE> - the caller id to set on the outgoing channel.</DL></DD></DL><HR><A NAME="getCallingPres()"><!-- --></A><H3>getCallingPres</H3><PRE>public java.lang.Integer <B>getCallingPres</B>()</PRE><DL><DD>Returns the calling presentation for the outgoing channel.<p> This property is only available on BRIstuffed Asterisk servers.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the calling presentation for the outgoing channel.<DT><B>See Also:</B><DD><A HREF="../../../../org/asteriskjava/manager/action/OriginateAction.html#setCallingPres(java.lang.Integer)"><CODE>setCallingPres(Integer)</CODE></A></DL></DD></DL><HR><A NAME="setCallingPres(java.lang.Integer)"><!-- --></A><H3>setCallingPres</H3><PRE>public void <B>setCallingPres</B>(java.lang.Integer callingPres)</PRE><DL><DD>Sets the calling presentation for the outgoing channel.<p> The number is an octet and the only bits you need worry about are bits 1,2,6 and 7.<p> Bits 1 and 2 define the screening indicator and bits 6 and 7 define the presentation indicator.<p> In essence, it says, 'Is the person who has been called allowed to see the callers number?' (presentation) and 'What authority was used to verify that this is a genuine number?' (screening).<p> <p/> Presentation indicator (Bits 6 and 7): <pre> Bits Meaning 7 6 0 0 Presentation allowed 0 1 Presentation restricted 1 0 Number not available due to interworking 1 1 Reserved </pre> Screening indicator (Bits 1 and 2): <pre> Bits Meaning 2 1 0 0 User-provided, not screened 0 1 User-provided, verified and passed 1 0 User-provided, verified and failed 1 1 Network provided </pre> Examples for some general settings: <pre> Presentation Allowed, Network Provided: 3 (00000011) Presentation Restricted, User-provided, not screened: 32 (00100000) Presentation Restricted, User-provided, verified, and passed: 33 (00100001) Presentation Restricted, Network Provided: 35 (00100011) </pre> This property is only available on BRIstuffed Asterisk servers.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>callingPres</CODE> - the calling presentation for the outgoing channel.</DL></DD></DL><HR><A NAME="getChannel()"><!-- --></A><H3>getChannel</H3><PRE>public java.lang.String <B>getChannel</B>()</PRE><DL><DD>Returns the name of the channel to connect to the outgoing call.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setChannel(java.lang.String)"><!-- --></A><H3>setChannel</H3><PRE>public void <B>setChannel</B>(java.lang.String channel)</PRE><DL><DD>Sets the name of the channel to connect to the outgoing call.<p> This property is mandatory.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getContext()"><!-- --></A><H3>getContext</H3><PRE>public java.lang.String <B>getContext</B>()</PRE><DL><DD>Returns the name of the context of the extension to connect to.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setContext(java.lang.String)"><!-- --></A><H3>setContext</H3><PRE>public void <B>setContext</B>(java.lang.String context)</PRE><DL><DD>Sets the name of the context of the extension to connect to.<p> If you set the context you also have to set the exten and priority properties.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getExten()"><!-- --></A><H3>getExten</H3><PRE>public java.lang.String <B>getExten</B>()</PRE><DL><DD>Returns the extension to connect to.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setExten(java.lang.String)"><!-- --></A><H3>setExten</H3><PRE>public void <B>setExten</B>(java.lang.String exten)</PRE><DL><DD>Sets the extension to connect to.<p> If you set the extension you also have to set the context and priority properties.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -