public class CallDetailRecordImpl extends Object implements CallDetailRecord
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountCode()
Returns the account number that is usually used to identify the party to bill for the call.
|
AmaFlags |
getAmaFlags() |
Date |
getAnswerDate() |
Integer |
getBillableSeconds()
Returns the total time (in seconds) the call was up from answer to hangup.
|
AsteriskChannel |
getChannel() |
AsteriskChannel |
getDestinationChannel() |
String |
getDestinationContext()
Returns the destination context.
|
String |
getDestinationExtension()
Returns the destination extension.
|
Disposition |
getDisposition() |
Integer |
getDuration()
Returns the total time (in seconds) the caller spent in the system from dial to hangup.
|
Date |
getEndDate() |
String |
getLastAppData()
Returns the last application's data (arguments), for example "s1234".
|
String |
getLastApplication()
Returns the last application if appropriate, for example "VoiceMail".
|
Date |
getStartDate() |
String |
getUserField()
Returns the user-defined field as set by
Set(CDR(userfield)=Value). |
public AsteriskChannel getChannel()
getChannel in interface CallDetailRecordpublic AsteriskChannel getDestinationChannel()
getDestinationChannel in interface CallDetailRecordpublic String getAccountCode()
CallDetailRecord
Corresponds to CDR field accountcode.
getAccountCode in interface CallDetailRecordpublic AmaFlags getAmaFlags()
getAmaFlags in interface CallDetailRecordpublic Date getAnswerDate()
getAnswerDate in interface CallDetailRecordpublic Integer getBillableSeconds()
CallDetailRecord
Corresponds to CDR field billsec.
getBillableSeconds in interface CallDetailRecordpublic String getDestinationContext()
CallDetailRecord
Corresponds to CDR field dcontext.
getDestinationContext in interface CallDetailRecordpublic String getDestinationExtension()
CallDetailRecord
Corresponds to CDR field dst.
getDestinationExtension in interface CallDetailRecordpublic Disposition getDisposition()
getDisposition in interface CallDetailRecordpublic Integer getDuration()
CallDetailRecord
Corresponds to CDR field duration.
getDuration in interface CallDetailRecordpublic Date getEndDate()
getEndDate in interface CallDetailRecordpublic String getLastApplication()
CallDetailRecord
Corresponds to CDR field lastapp.
getLastApplication in interface CallDetailRecordnull if not avaialble.public String getLastAppData()
CallDetailRecord
Corresponds to CDR field lastdata.
getLastAppData in interface CallDetailRecordnull if not avaialble.public Date getStartDate()
getStartDate in interface CallDetailRecordpublic String getUserField()
CallDetailRecordSet(CDR(userfield)=Value).
Corresponds to CDR field userfield.
getUserField in interface CallDetailRecordCopyright © 2004–2021. All rights reserved.