Introduction
CDR stands for Call Detail Record. It is a metadata containing the detailed information about the call session produced by Edge. A CDR has various data of each leg of calls, and typically includes: When the call took place – How long the call lasted – Who called to whom – and many more.
Edge CDR Metadata
| Attribute | Description |
|---|---|
| correlation_id | CDR mapping for far-end by SIP Header: X-EDGE-CORRELATION-ID |
| status | call status, it can be answer, cancel, congestion, etc |
| callee | destination number |
| direction | direction of the call |
| duration | duration of the call in second |
| local_media_address | edge ip address of media/rtp |
| user_agent | far-end sip user agent |
| remote_signalling_address | far-end ip address of signaling/sip |
| remote_media_address | far-end ip address of media/rtp |
| edge_network | ip address of edge processed for this call |
| uuid | leg uuid |
| rtp_crypto | media encryption suite was used for this call |
| nodename | name of node member that processed the call |
| peername | name of trunk that processed the call |
| codec | negotiated codec was used in call |
| hangup_cause | reason why call hang up |
| seshid | session uuid |
| interface | sip interface that call engaged with |
| callid | sip call id of the call |
| caller | source number |
| transport | transport protocol that SIP relies on, the value can be ucp, tcp, tls |
| sip_resp_code | well, sip response code sip:{code} |
| start_time | when the call started with format ISO8601 |
| answer_time | when the call answered with format ISO8601 |
| end_time | when the call ended with format ISO8601 |
| disposition | who hung up the call |
Example:
1 {
2 "data" : {
3 "module" : "call",
4 "eventName" : "vendorCDRExtra",
5 "timestamp" : 1614575657225,
6 "txnUuid" : "fdd9be18-7dfa-49d0-8c47-33f3b4598917",
7 "legs" : {
8 "147d2eac-9ba8-450e-8513-65380b2866d6" : {
9 "edge-SGSBC" : {
10 "rtp_crypto" : "",
11 "correlation_id" : "147d2eac-9ba8-450e-8513-65380b2866d6",
12 "duration" : "6538",
13 "transport" : "udp",
14 "answer_time" : "2021-03-01 13:14:17",
15 "uuid" : "b9aac7ca-2d9f-4e0e-827d-2ffc3b51efee",
16 "codec" : "PCMA",
17 "sip_resp_code" : "sip:200",
18 "seshid" : "147d2eac-9ba8-450e-8513-65380b2866d6",
19 "hangup_cause" : "NORMAL_CLEARING",
20 "end_time" : "2021-03-01 13:14:17",
21 "status" : "ANSWERED",
22 "direction" : "outbound",
23 "iso_answer_time" : "2021-03-01T05:14:17.170092+00:00",
24 "nodename" : "awszntedge1",
25 "edge_network" : "172.31.12.2,18.140.31.74",
26 "callid" : "96db8896-f4e0-1239-fcb5-0677079ea32c",
27 "start_time" : "2021-03-01 13:14:17",
28 "disposition" : "EDGE_SEND_BYE",
29 "interface" : "voice2",
30 "iso_end_time" : "2021-03-01T05:14:17.170136+00:00",
31 "local_media_address" : "111.22.33.4:56789",
32 "caller" : "+6561111111",
33 "peername" : "SGSBC",
34 "iso_start_time" : "2021-03-01T05:14:17.169920+00:00",
35 "user_agent" : "B3Networks",
36 "context" : "inside",
37 "callee" : "+6562222222",
38 "remote_signalling_address" : "00.11.234.56:5060",
39 "remote_media_address" : "00.11.234.56:10648"
40 }
41 }
42 }
43 },
44 "gateKeeperSpec" : {
45 "domain" : "gelcccs.zonetel.com.sg",
46 "orgUuid" : "ea6f73ee-9960-40f9-91c3-8473ade58a8a"
47 },
48 "version" : "v1"
49 }

