PBX

PBX — Call Detail Records (CDR) and Reporting

What Are CDRs?

Call Detail Records log every call through the PBX — inbound, outbound, internal, and missed. Each record captures caller ID, called number, time, duration, disposition, and the trunk or extension used.

Viewing CDRs

  1. Go to Communications → Call Reports.
  2. Filter by date range, tenant, extension, DID, or disposition.
  3. Click a row to expand full call details including the route taken.

CDR Field Reference

  • src — Calling number
  • dst — Destination dialed
  • duration — Total call time (seconds)
  • billsec — Billable seconds (answer to hangup)
  • disposition — ANSWERED, NO ANSWER, BUSY, FAILED
  • lastapp — Last Asterisk application (e.g., Dial, VoiceMail)
  • uniqueid — Unique call ID for cross-referencing recordings
  • recordingfile — Filename of recording (when recording is enabled)

Exporting CDRs

Click Export CSV to download a filtered call report. Compatible with Excel and billing systems.

Tenant-Scoped Access

Tenant admin users see only their own CDRs. System admins see all tenants. Filter by accountcode (tenant code) in the admin view.

Direct Database Query

SELECT src, dst, billsec, disposition, calldate
FROM cdr
WHERE calldate >= '2026-01-01'
  AND accountcode = 'acme'
ORDER BY calldate DESC
LIMIT 100;

Call Recordings

When recording is enabled, recordings are stored at /var/spool/asterisk/monitor/. The CDR's recordingfile field links to the audio file, accessible via the CDR detail page.