Package com.opencloud.slee.resources.cdr
Class CallDetailRecord
- java.lang.Object
-
- com.opencloud.slee.resources.cdr.CallDetailRecord
-
- All Implemented Interfaces:
Serializable
public class CallDetailRecord extends Object implements Serializable
Base CDR data structure for the CDR resource adaptor.SBBs construct a CallDetailRecord (or subclass), then pass it to a bound instance of the CDR Generation resource adaptor (
CDRProvider
) for recording.This class is obsolete. New code should either pass Strings directly to
CDRProvider.writeCDR(String)
, or construct a structured binary CDR and useCDRProvider.writeCDR(com.google.protobuf.Message)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
calledPartyPublicNumber
protected String
callingPartyPublicNumber
protected long
endTime
protected String
redirectingNumber
protected ServiceAccessType
serviceAccessType
protected long
startTime
protected String
terminationReason
-
Constructor Summary
Constructors Constructor Description CallDetailRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCalledPartyPublicNumber()
Get the called party's public addressString
getCallingPartyPublicNumber()
Get the calling party's public addresslong
getEndTime()
Get the calls end timeString
getRedirectingNumber()
Get the redirecting number if any was involved in the callServiceAccessType
getServiceAccessType()
Get the calls service access typelong
getStartTime()
Get the calls start timeString
getTerminationReason()
Get the termination reason for the callvoid
setCalledPartyPublicNumber(String s)
Set the called party's public addressvoid
setCallingPartyPublicNumber(String s)
Set the calling party's public addressvoid
setEndTime(long time)
Set the end time for the callvoid
setRedirectingNumber(String s)
Set the redirecting party's number if there was any redirection involved in this callvoid
setServiceAccessType(ServiceAccessType type)
Set the calls service access typevoid
setStartTime(long time)
Set the start time for the callvoid
setTerminationReason(String s)
Set the reason for terminatin of the callString
toString()
Format this CDR record as a string.
-
-
-
Field Detail
-
startTime
protected long startTime
-
endTime
protected long endTime
-
serviceAccessType
protected ServiceAccessType serviceAccessType
-
callingPartyPublicNumber
protected String callingPartyPublicNumber
-
calledPartyPublicNumber
protected String calledPartyPublicNumber
-
redirectingNumber
protected String redirectingNumber
-
terminationReason
protected String terminationReason
-
-
Method Detail
-
setStartTime
public void setStartTime(long time)
Set the start time for the call- Parameters:
time
- the start time of this call, in milliseconds since 1970/01/01.
-
setEndTime
public void setEndTime(long time)
Set the end time for the call- Parameters:
time
- the end time of this call, in milliseconds since 1970/01/01.
-
setServiceAccessType
public void setServiceAccessType(ServiceAccessType type)
Set the calls service access type- Parameters:
type
- the service access type
-
setCallingPartyPublicNumber
public void setCallingPartyPublicNumber(String s)
Set the calling party's public address- Parameters:
s
- the calling party's public number
-
setCalledPartyPublicNumber
public void setCalledPartyPublicNumber(String s)
Set the called party's public address- Parameters:
s
- the called party's public number
-
setRedirectingNumber
public void setRedirectingNumber(String s)
Set the redirecting party's number if there was any redirection involved in this call- Parameters:
s
- the redirecting number
-
setTerminationReason
public void setTerminationReason(String s)
Set the reason for terminatin of the call- Parameters:
s
- the termination reason for this call
-
getStartTime
public long getStartTime()
Get the calls start time- Returns:
- the start time of this call, in milliseconds since 1970/01/01.
-
getEndTime
public long getEndTime()
Get the calls end time- Returns:
- the end time of this call, in milliseconds since 1970/01/01.
-
getServiceAccessType
public ServiceAccessType getServiceAccessType()
Get the calls service access type- Returns:
- the service access type for this call
-
getCallingPartyPublicNumber
public String getCallingPartyPublicNumber()
Get the calling party's public address- Returns:
- the calling party's public number
-
getCalledPartyPublicNumber
public String getCalledPartyPublicNumber()
Get the called party's public address- Returns:
- the called party's public number
-
getRedirectingNumber
public String getRedirectingNumber()
Get the redirecting number if any was involved in the call- Returns:
- the redirecting number for any redirection involved in this call
-
getTerminationReason
public String getTerminationReason()
Get the termination reason for the call- Returns:
- the termination reason for this call
-
-