📄 cdrevent.html
字号:
<B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="CdrEvent(java.lang.Object)"><!-- --></A><H3>CdrEvent</H3><PRE>public <B>CdrEvent</B>(java.lang.Object source)</PRE><DL><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - </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="getAccountCode()"><!-- --></A><H3>getAccountCode</H3><PRE>public java.lang.String <B>getAccountCode</B>()</PRE><DL><DD>Returns the account number that is usually used to identify the party to bill for the call.<p> Corresponds to CDR field <code>accountcode</code>.<P><DD><DL><DT><B>Returns:</B><DD>the account number.</DL></DD></DL><HR><A NAME="setAccountCode(java.lang.String)"><!-- --></A><H3>setAccountCode</H3><PRE>public void <B>setAccountCode</B>(java.lang.String accountCode)</PRE><DL><DD>Sets the account number.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>accountCode</CODE> - the account number.</DL></DD></DL><HR><A NAME="getSrc()"><!-- --></A><H3>getSrc</H3><PRE>public java.lang.String <B>getSrc</B>()</PRE><DL><DD>Returns the Caller*ID number.<p> Corresponds to CDR field <code>src</code>.<P><DD><DL><DT><B>Returns:</B><DD>the Caller*ID number.</DL></DD></DL><HR><A NAME="setSrc(java.lang.String)"><!-- --></A><H3>setSrc</H3><PRE>public void <B>setSrc</B>(java.lang.String source)</PRE><DL><DD>Sets the Caller*ID number.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the Caller*ID number.</DL></DD></DL><HR><A NAME="getDestination()"><!-- --></A><H3>getDestination</H3><PRE>public java.lang.String <B>getDestination</B>()</PRE><DL><DD>Returns the destination extension.<p> Corresponds to CDR field <code>dst</code>.<P><DD><DL><DT><B>Returns:</B><DD>the destination extension.</DL></DD></DL><HR><A NAME="setDestination(java.lang.String)"><!-- --></A><H3>setDestination</H3><PRE>public void <B>setDestination</B>(java.lang.String destination)</PRE><DL><DD>Sets the destination extension.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>destination</CODE> - the destination extension.</DL></DD></DL><HR><A NAME="getDestinationContext()"><!-- --></A><H3>getDestinationContext</H3><PRE>public java.lang.String <B>getDestinationContext</B>()</PRE><DL><DD>Returns the destination context.<p> Corresponds to CDR field <code>dcontext</code>.<P><DD><DL><DT><B>Returns:</B><DD>the destination context.</DL></DD></DL><HR><A NAME="setDestinationContext(java.lang.String)"><!-- --></A><H3>setDestinationContext</H3><PRE>public void <B>setDestinationContext</B>(java.lang.String destinationContext)</PRE><DL><DD>Sets the destination context.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>destinationContext</CODE> - the destination context.</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 with text.<p> Corresponds to CDR field <code>clid</code>.<P><DD><DL><DT><B>Returns:</B><DD>the Caller*ID with text</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 with text.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>callerId</CODE> - the Caller*ID with text.</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, for example "SIP/1310-asfe".<p> Corresponds to CDR field <code>channel</code>.<P><DD><DL><DT><B>Returns:</B><DD>the name of the channel.</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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>channel</CODE> - the name of the channel.</DL></DD></DL><HR><A NAME="getDestinationChannel()"><!-- --></A><H3>getDestinationChannel</H3><PRE>public java.lang.String <B>getDestinationChannel</B>()</PRE><DL><DD>Returns the name of the destination channel if appropriate.<p> Corresponds to CDR field <code>dstchannel</code>.<P><DD><DL><DT><B>Returns:</B><DD>the name of the destination channel or <code>null</code> if not available.</DL></DD></DL><HR><A NAME="setDestinationChannel(java.lang.String)"><!-- --></A><H3>setDestinationChannel</H3><PRE>public void <B>setDestinationChannel</B>(java.lang.String destinationChannel)</PRE><DL><DD>Sets the name of the destination channel.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>destinationChannel</CODE> - the name of the destination channel.</DL></DD></DL><HR><A NAME="getLastApplication()"><!-- --></A><H3>getLastApplication</H3><PRE>public java.lang.String <B>getLastApplication</B>()</PRE><DL><DD>Returns the last application if appropriate, for example "VoiceMail".<p> Corresponds to CDR field <code>lastapp</code>.<P><DD><DL><DT><B>Returns:</B><DD>the last application or <code>null</code> if not avaialble.</DL></DD></DL><HR><A NAME="setLastApplication(java.lang.String)"><!-- --></A><H3>setLastApplication</H3><PRE>public void <B>setLastApplication</B>(java.lang.String lastApplication)</PRE><DL><DD>Sets the last application.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lastApplication</CODE> - the last application.</DL></DD></DL><HR><A NAME="getLastData()"><!-- --></A><H3>getLastData</H3><PRE>public java.lang.String <B>getLastData</B>()</PRE><DL><DD>Returns the last application's data (arguments), for example "s1234".<p> Corresponds to CDR field <code>lastdata</code>.<P><DD><DL><DT><B>Returns:</B><DD>the last application's data or <code>null</code> if not avaialble.</DL></DD></DL><HR><A NAME="setLastData(java.lang.String)"><!-- --></A><H3>setLastData</H3><PRE>public void <B>setLastData</B>(java.lang.String lastData)</PRE><DL><DD>Set the last application's data.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lastData</CODE> - the last application's data.</DL></DD></DL><HR><A NAME="getStartTime()"><!-- --></A><H3>getStartTime</H3><PRE>public java.lang.String <B>getStartTime</B>()</PRE><DL><DD>Returns when the call has started.<p> This corresponds to CDR field <code>start</code>.<P><DD><DL><DT><B>Returns:</B><DD>A string of the format "%Y-%m-%d %T" (strftime(3)) representing the date/time the call has started, for example "2006-05-19 11:54:48".</DL></DD></DL><HR><A NAME="getStartTimeAsDate()"><!-- --></A><H3>getStartTimeAsDate</H3><PRE>public java.util.Date <B>getStartTimeAsDate</B>()</PRE><DL><DD>Returns the start time as Date object.<p> This method asumes that the Asterisk server's timezone equals the default timezone of your JVM.<P><DD><DL><DT><B>Returns:</B><DD>the start time as Date object.<DT><B>Since:</B></DT> <DD>0.3</DD></DL></DD></DL><HR><A NAME="getStartTimeAsDate(java.util.TimeZone)"><!-- --></A><H3>getStartTimeAsDate</H3><PRE>public java.util.Date <B>getStartTimeAsDate</B>(java.util.TimeZone tz)</PRE><DL><DD>Returns the start time as Date object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>tz</CODE> - the timezone of the Asterisk server.<DT><B>Returns:</B><DD>the start time as Date object.<DT><B>Since:</B></DT> <DD>0.3</DD></DL></DD></DL><HR><A NAME="setStartTime(java.lang.String)"><!-- --></A><H3>setStartTime</H3><PRE>public void <B>setStartTime</B>(java.lang.String startTime)</PRE><DL><DD>Sets the date/time when the call has started.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>startTime</CODE> - the date/time when the call has started.</DL></DD></DL><HR><A NAME="getAnswerTime()"><!-- --></A><H3>getAnswerTime</H3><PRE>public java.lang.String <B>getAnswerTime</B>()</PRE><DL><DD>Returns when the call was answered.<p> This corresponds to CDR field <code>answered</code>.<P><DD><DL><DT><B>Returns:</B><DD>A string of the format "%Y-%m-%d %T" (strftime(3)) representing the date/time the call was answered, for example "2006-05-19 11:55:01"</DL></DD></DL><HR><A NAME="getAnswerTimeAsDate()"><!-- --></A><H3>getAnswerTimeAsDate</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -