Page tree

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:

NameTypeCan be NULLDescription
typeNumberNoType of the call:
0 - incoming call
1 - outgoing call
totalNumberNoTotal number of phone calls.
answeredNumberNoNumber of answered phone calls.
unansweredNumberNoNumber of unanswered phone calls.
unknownNumberNoNumber of unknown phone calls.
busyNumberNoNumber of busy phone calls.
failedNumberNoNumber of failed phone calls.
unallowedNumberNoNumber 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":{...}
}

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.