Asterisk-Java

org.asteriskjava.live.internal
Class CallDetailRecordImpl

java.lang.Object
  extended by org.asteriskjava.live.internal.CallDetailRecordImpl
All Implemented Interfaces:
CallDetailRecord

public class CallDetailRecordImpl
extends java.lang.Object
implements CallDetailRecord

Default implementation of the CallDetailRecord interface.


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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChannel

public AsteriskChannel getChannel()
Specified by:
getChannel in interface CallDetailRecord

getDestinationChannel

public AsteriskChannel getDestinationChannel()
Specified by:
getDestinationChannel in interface CallDetailRecord

getAccountCode

public java.lang.String getAccountCode()
Description copied from interface: CallDetailRecord
Returns the account number that is usually used to identify the party to bill for the call.

Corresponds to CDR field accountcode.

Specified by:
getAccountCode in interface CallDetailRecord
Returns:
the account number.

getAmaFlags

public AmaFlags getAmaFlags()
Specified by:
getAmaFlags in interface CallDetailRecord

getAnswerDate

public java.util.Date getAnswerDate()
Specified by:
getAnswerDate in interface CallDetailRecord

getBillableSeconds

public java.lang.Integer getBillableSeconds()
Description copied from interface: CallDetailRecord
Returns the total time (in seconds) the call was up from answer to hangup.

Corresponds to CDR field billsec.

Specified by:
getBillableSeconds in interface CallDetailRecord
Returns:
the total time in call in seconds.

getDestinationContext

public java.lang.String getDestinationContext()
Description copied from interface: CallDetailRecord
Returns the destination context.

Corresponds to CDR field dcontext.

Specified by:
getDestinationContext in interface CallDetailRecord
Returns:
the destination context.

getDestinationExtension

public java.lang.String getDestinationExtension()
Description copied from interface: CallDetailRecord
Returns the destination extension.

Corresponds to CDR field dst.

Specified by:
getDestinationExtension in interface CallDetailRecord
Returns:
the destination extension.

getDisposition

public Disposition getDisposition()
Specified by:
getDisposition in interface CallDetailRecord

getDuration

public java.lang.Integer getDuration()
Description copied from interface: CallDetailRecord
Returns the total time (in seconds) the caller spent in the system from dial to hangup.

Corresponds to CDR field duration.

Specified by:
getDuration in interface CallDetailRecord
Returns:
the total time in system in seconds.

getEndDate

public java.util.Date getEndDate()
Specified by:
getEndDate in interface CallDetailRecord

getLastApplication

public java.lang.String getLastApplication()
Description copied from interface: CallDetailRecord
Returns the last application if appropriate, for example "VoiceMail".

Corresponds to CDR field lastapp.

Specified by:
getLastApplication in interface CallDetailRecord
Returns:
the last application or null if not avaialble.

getLastAppData

public java.lang.String getLastAppData()
Description copied from interface: CallDetailRecord
Returns the last application's data (arguments), for example "s1234".

Corresponds to CDR field lastdata.

Specified by:
getLastAppData in interface CallDetailRecord
Returns:
the last application's data or null if not avaialble.

getStartDate

public java.util.Date getStartDate()
Specified by:
getStartDate in interface CallDetailRecord

getUserField

public java.lang.String getUserField()
Description copied from interface: CallDetailRecord
Returns the user-defined field as set by Set(CDR(userfield)=Value).

Corresponds to CDR field userfield.

Specified by:
getUserField in interface CallDetailRecord
Returns:
the user-defined field.

Asterisk-Java

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