Get CDR Report.

  • Authentication required.
  • Params:
    • All params here optional, no required params.
    • "start_date", "end_date", "field_name", "field_pattern", "status", "limit", "recordings" are optional.
  • Notice:
    • "start_date", "end_date", "field_name", "field_pattern", "status", "recordings" as String.
    • "limit" as Integer, default value 20.
    • "start_date", "end_date" Datetime string formated as "%Y-%m-%d %H:%M:%S", e.g. "2016-09-01 10:12:45" in UTC Timezone.
    • "field_name" only accept ["src", "dst", "channel", "dstchannel", "accountcode"], default value "src".
    • "field_pattern" only phonenumber as string, e.g "105" or "90850999999".
    • "status" only accept ["ALL", "ANSWERED", "BUSY", "FAILED", "NO ANSWER"], default value "ALL".
    • "recordings" only accept ["all", "only", "without"], default value "all".

CURL Example:

curl -X POST https://oim.pasifiktelekom.com.tr/en/api/pbx/cdr/ \
     -H 'Content-Type:application/json' -H 'accept:application/json' -H 'Authorization:XXXXXXXXXXXXXXXXXXXX' \
     -d '{}'

curl -X POST https://oim.pasifiktelekom.com.tr/en/api/pbx/cdr/ \
     -H 'Content-Type:application/json' -H 'accept:application/json' -H 'Authorization:XXXXXXXXXXXXXXXXXXXX' \
     -d '{"start_date": "2016-09-23 13:02:14", "limit": 10, "status": "ANSWERED"}'
GET /en/api/pbx/cdr/
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "message": "OK",
    "code": "200"
}