Asterisk-Java

org.asteriskjava.live
Interface CallDetailRecord

All Known Implementing Classes:
CallDetailRecordImpl

public interface CallDetailRecord

Represents an Asterisk Call Detail Record (CDR).

Since:
0.3
Version:
$Id: CallDetailRecord.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
CdrEvent

Method Summary
 java.lang.String getAccountCode()
          Returns the account number that is usually used to identify the party to bill for the call.
 AmaFlags getAmaFlags()
           
 java.util.Date getAnswerDate()
           
 java.lang.Integer getBillableSeconds()
          Returns the total time (in seconds) the call was up from answer to hangup.
 AsteriskChannel getChannel()
           
 AsteriskChannel getDestinationChannel()
           
 java.lang.String getDestinationContext()
          Returns the destination context.
 java.lang.String getDestinationExtension()
          Returns the destination extension.
 Disposition getDisposition()
           
 java.lang.Integer getDuration()
          Returns the total time (in seconds) the caller spent in the system from dial to hangup.
 java.util.Date getEndDate()
           
 java.lang.String getLastAppData()
          Returns the last application's data (arguments), for example "s1234".
 java.lang.String getLastApplication()
          Returns the last application if appropriate, for example "VoiceMail".
 java.util.Date getStartDate()
           
 java.lang.String getUserField()
          Returns the user-defined field as set by Set(CDR(userfield)=Value).
 

Method Detail

getChannel

AsteriskChannel getChannel()

getDestinationChannel

AsteriskChannel getDestinationChannel()

getAccountCode

java.lang.String getAccountCode()
Returns the account number that is usually used to identify the party to bill for the call.

Corresponds to CDR field accountcode.

Returns:
the account number.

getAmaFlags

AmaFlags getAmaFlags()

getDestinationContext

java.lang.String getDestinationContext()
Returns the destination context.

Corresponds to CDR field dcontext.

Returns:
the destination context.

getDestinationExtension

java.lang.String getDestinationExtension()
Returns the destination extension.

Corresponds to CDR field dst.

Returns:
the destination extension.

getDisposition

Disposition getDisposition()

getStartDate

java.util.Date getStartDate()

getAnswerDate

java.util.Date getAnswerDate()

getEndDate

java.util.Date getEndDate()

getDuration

java.lang.Integer getDuration()
Returns the total time (in seconds) the caller spent in the system from dial to hangup.

Corresponds to CDR field duration.

Returns:
the total time in system in seconds.

getBillableSeconds

java.lang.Integer getBillableSeconds()
Returns the total time (in seconds) the call was up from answer to hangup.

Corresponds to CDR field billsec.

Returns:
the total time in call in seconds.

getLastApplication

java.lang.String getLastApplication()
Returns the last application if appropriate, for example "VoiceMail".

Corresponds to CDR field lastapp.

Returns:
the last application or null if not avaialble.

getLastAppData

java.lang.String getLastAppData()
Returns the last application's data (arguments), for example "s1234".

Corresponds to CDR field lastdata.

Returns:
the last application's data or null if not avaialble.

getUserField

java.lang.String getUserField()
Returns the user-defined field as set by Set(CDR(userfield)=Value).

Corresponds to CDR field userfield.

Returns:
the user-defined field.

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.