This page describes the representation of the resource used by the CDR service.
PhoneCallStat resource
A phone call record saved by the system is represented by the UnifiedAPI as a PhoneCall resource. Statistics about the phone call activity are represented as a PhoneCallStat resource.
JSON representation
The example below contains the PhoneCallStat in JSON representation. All fields are fictitious.
phoneCallStat: { "total": "15", "answered": "12", "unanswered": "3", "busy": "0", "failed": "0", "unknown" : "0", "unallowed": "0" }
PhoneCallStat fields
The table below describes the fields of a PhoneCallStat resource:
Name | Type | Can be NULL | Description |
---|---|---|---|
type | Number | No | Type of the call: 0 - incoming call 1 - outgoing call |
total | Number | No | Total number of phone calls. |
answered | Number | No | Number of answered phone calls. |
unanswered | Number | No | Number of unanswered phone calls. |
unknown | Number | No | Number of unknown phone calls. |
busy | Number | No | Number of busy phone calls. |
failed | Number | No | Number of failed phone calls. |
unallowed | Number | No | Number of phone calls that were refused by the system. |
The PhoneCallStat is returned by the CDR Service along with the PhoneCall resources.
HTTP/1.1 200 OK ... { "entry": { "53bec7de3c242d5f87e5": { "id":"53bec7de3c242d5f87e5", "ownerId":"3", ... "phoneCallView":[ { "source":"14141555", "destination":"0003*002", ... }, { "source":"14141555", "destination":"0003*006", ... } ] }, "ad5a65672e3f783665c0": { "id":"ad5a65672e3f783665c0", "ownerId":"3", "phoneCallView":[ { "source":"14141555", "destination":"0003*002", ... } ] }, ... }, "startIndex":0, "totalResults":34922, "itemsPerPage":20, "filtered":true, "sorted":true, "phoneCallStat":[ { "type":0, "total":17558, "unanswered":"4063", "busy":"5435", "failed":"3313", "unknown":0, "unallowed":0, "answered":"4747" }, { "type":1, ... } ], "paging":{...} }
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.