public class CallDetailRecord extends Object implements Serializable
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 use CDRProvider.writeCDR(com.google.protobuf.Message)
Modifier and Type | Field and Description |
---|---|
protected String |
calledPartyPublicNumber |
protected String |
callingPartyPublicNumber |
protected long |
endTime |
protected String |
redirectingNumber |
protected ServiceAccessType |
serviceAccessType |
protected long |
startTime |
protected String |
terminationReason |
Constructor and Description |
---|
CallDetailRecord() |
Modifier and Type | Method and Description |
---|---|
String |
getCalledPartyPublicNumber()
Get the called party's public address
|
String |
getCallingPartyPublicNumber()
Get the calling party's public address
|
long |
getEndTime()
Get the calls end time
|
String |
getRedirectingNumber()
Get the redirecting number if any was involved in the call
|
ServiceAccessType |
getServiceAccessType()
Get the calls service access type
|
long |
getStartTime()
Get the calls start time
|
String |
getTerminationReason()
Get the termination reason for the call
|
void |
setCalledPartyPublicNumber(String s)
Set the called party's public address
|
void |
setCallingPartyPublicNumber(String s)
Set the calling party's public address
|
void |
setEndTime(long time)
Set the end time for the call
|
void |
setRedirectingNumber(String s)
Set the redirecting party's number if there was any redirection involved in this call
|
void |
setServiceAccessType(ServiceAccessType type)
Set the calls service access type
|
void |
setStartTime(long time)
Set the start time for the call
|
void |
setTerminationReason(String s)
Set the reason for terminatin of the call
|
String |
toString()
Format this CDR record as a string.
|
protected long startTime
protected long endTime
protected ServiceAccessType serviceAccessType
protected String callingPartyPublicNumber
protected String calledPartyPublicNumber
protected String redirectingNumber
protected String terminationReason
public void setStartTime(long time)
time
- the start time of this call, in milliseconds since 1970/01/01.public void setEndTime(long time)
time
- the end time of this call, in milliseconds since 1970/01/01.public void setServiceAccessType(ServiceAccessType type)
type
- the service access typepublic void setCallingPartyPublicNumber(String s)
s
- the calling party's public numberpublic void setCalledPartyPublicNumber(String s)
s
- the called party's public numberpublic void setRedirectingNumber(String s)
s
- the redirecting numberpublic void setTerminationReason(String s)
s
- the termination reason for this callpublic long getStartTime()
public long getEndTime()
public ServiceAccessType getServiceAccessType()
public String getCallingPartyPublicNumber()
public String getCalledPartyPublicNumber()
public String getRedirectingNumber()
public String getTerminationReason()