help • 14 Data Storage • Call Detail Records (CDR) • Examples for CDR
14.4.2 Examples for CDR
The following examples are given to help you better understand CDR. These are CDR which are recorded after the call has been disconnected. To provide a better overview, only those CDR fields are listed, which help you to understand CDR recording.
CDR for a Simple Internal Call
User A (number 123) calls User B (number 456). Before dialing the number, he dials *4711# to assign the call to a project. This results in the following CDR:
Attribute
Content
CallID
3
OriginationNumber
"+123"
OriginationName
"User A"
CalledNumber
"+456"
CalledName
"User B"
StartDate
"19.11.2012"
StartTime
"13.03:28"
DeliveredDate
"19.11.2012"
DeliveredTime
"13.03:24"
ConnectDate
"19.11.2012"
ConnectTime
"13.03:28"
EndDate
"19.11.2012"
EndTime
"13.03:48"
State
"Connected"
ProjectNumber
"+4711"
DisconnectReason
OriginatorDisconnected
CDR for an External Call
User A (number +492314777123) forwards an external call to John Jones (number +49231456789). SwyxServer uses the Trunk "SwyxGate 1", to execute the call.
Attribute
Content
CallID
4
OriginationNumber
"+44204777123"
OriginationName
"User A"
CalledNumber
"+4420456789"
CalledName
"Jones, John"
StartDate
"19.11.2012"
StartTime
"13.03:28"
DeliveredDate
"19.11.2012"
DeliveredTime
"13.03:28"
ConnectDate
"19.11.2012"
ConnectTime
"13.03:28"
EndDate
"19.11.2012"
EndTime
"13.03:48"
State
"Connected"
PublicAccessPrefix
"+0"
DestinationDevice
"SwyxGate1"
DisconnectReason
CallDisconnected
The CalledName "Jones, Tom" comes from the global SwyxServer phonebook. The connection was terminated by the external subscriber (DisconnectReason = CallDisconnected).
CDR for a Call with Call Routing
User B has activated a call routing script. This script picks up a call, plays an announcement and transfers the call to an internal telephony client. If the call is not picked up there, the call will be transferred to the mobile telephone.
Attribute
Content
CallID
5
OriginationNumber
"+44204777123"
OriginationName
"User A"
CalledNumber
"+44204777456"
CalledName
"User B"
DestinationNumber
"+4916012345678"
DestinationName
""
StartDate
"19.11.2012"
StartTime
"13.03:28"
ScriptConnectDate
"19.11.2012"
ScriptConnectTime
"13.03:30"
DeliveredDate
"19.11.2012"
DeliveredTime
"13.03:55"
ConnectDate
"19.11.2012"
ConnectTime
"13.03:59"
EndDate
"19.11.2012"
EndTime
"13.05:09"
State
"Connected"
PublicAccessPrefix
"+0"
OriginationDevice
""
DestinationDevice
"SwyxGate1"
DisconnectReason
CallDisconnected
CDR for a Transferred Call
User C (number +492314777101) calls User A (number +4916012345678) and puts this call on "Hold". User C then calls User B (+49521087654321) and speaks with him. User C then connects Users A and B to one another. Due to the fact that User C initiated both calls, he will be charged for the costs for both calls. This results in three CDR, which can all be used for cost calculation.
CDR 1 (Call from C to A)
Attribute
Content
CallID
3
OriginationNumber
"+44204777101"
OriginationName
"User C"
CalledNumber
"+4916012345678"
CalledName
"User A"
StartTime
"13.08:24"
ConnectTime
"13.08:45"
EndTime
"13.15:44"
Currency
"EUR"
Costs
"1.23"
State
"Transferred"
AOC
"1"
OriginationDevice
""
DestinationDevice
"SwyxGate1"
TransferredToCallID
8
TransferDate
"19.11.2012"
TransferTime
"13.10:06"
DisconnectReason
CallTransferred
CDR 2 (Call from C to A)
Attribute
Content
CallID
7
OriginationNumber
"+44204777101"
OriginationName
"User C"
CalledNumber
"+49521087654321"
CalledName
"User B"
StartTime
"13.09:34"
ConnectTime
"13.09:56"
EndTime
"13.03:48"
Currency
"EUR"
Costs
"4.33"
State
"Transferred"
AOC
"1"
OriginationDevice
""
DestinationDevice
"SwyxGate1"
TransferredToCallID
8
TransferDate
"19.11.2012"
TransferTime
"13:10:06"
DisconnectReason
CallTransferred
CDR 3 (Transferred Call; A Speaks to B)
Attribute
Content
CallID
8
OriginationNumber
"+4916012345678"
OriginationName
"User A"
CalledNumber
"+49521087654321"
CalledName
"User B"
StartTime
"13:10:06"
ConnectTime
"13:10:07"
EndTime
"13:15:44"
Currency
""
Costs
""
State
"Connected"
OriginationDevice
"SwyxGate1"
DestinationDevice
"SwyxGate1"
TransferredByNumber
"+101"
TransferredByName
"User C"
TransferredCallID1
3
TransferredCallID2
7