CDR

A call detail record (CDR) is a data record produced by a telephone exchange or other telecommunications equipment that documents the details of a telephone call or other telecommunications transaction (e.g., text message) that passes through that facility or device. The record contains various attributes of the call, such as time, duration, completion status, source number, and destination number.

Source: Wikipedia

BlackLab keeps records of every call and every communication that takes place through BlackLab and makes that information available through the dashboard and via API.

Summary

API

/api/cdr/summary/

ivr/<ivr_id>/log

POST

  • ivr = <ivr_id>
  • start_date = YYYY-MM-DD
  • end_date = YYYY-MM-DD
  • groupby = [dnis|ani|contact]

Result

/api/cdr/did/<phonenumber>/

<phonenumber> is the phone number of the IVR account.

GET

POST

Filter parameters

  • start_date = YYYY-MM-DD
  • end_date = YYYY-MM-DD
  • external = [<phonenumber>, <phonenunber>, ...]
  • calltype = INCOMING|OUTGOING
  • has_voicemail = true|false
  • voicemail_isunread = true|false

Group parameters

  • groupby = [start_date|ani|contact]

Result

/api/cdr/did/<phonenumber>/export/

<phonenumber> is the phone number of the IVR account.

/ivr/<ivr_id>/report/

GET

Filter parameters

  • start_date = YYYY-MM-DD
  • end_date = YYYY-MM-DD

Other parameters

  • export_format = [csv|json|xls] (json and xls are not implemented yet)

POST

Result

/api/cdr/<cdr_id>/

GET

Result

/api/cdr/<cdr_id>/recording/

GET

Result