Skip to content

Call Detail Records (CDR) Module Documentation

12 min readUpdated: Nov 29, 2026
View as Markdown
  1. Navigation & Access
  2. Screenshots & Visual Interface
  3. Module Overview (Technical)
  4. Module Overview (Commercial/Business)
  5. Module Overview (End User/Administrator)
  6. CDR Fields Reference
  7. Filtering Options
  8. Common Scenarios & Examples
  9. Limitations & Important Notes
  10. Troubleshooting Tips
  11. Glossary
  12. Model Context Protocol (MCP) AI Integration

To access the Call Detail Records reporting interface:

  1. Log in to the Ring2All Web Portal (https://<domain-or-ip>/login).
  2. In the left navigation sidebar, expand Reports.
  3. Under CDR Reports, click Call Detail Records (/reports/cdr/cdr).
  4. Browse call sessions, apply date and extension filters, export CSV logs, stream embedded recordings, or request on-demand Post-Call AI summaries.

High-performance call history table showcasing inbound/outbound session timestamps, caller identification, destination routes, call durations, billable talk times, MOS quality ratings, and integrated audio playback actions. Call Detail Records Log


User Role Key Capabilities & Operational Scope
PBX Super Admin / Multi-Tenant Operator Full visibility across all tenant domains; can export bulk CDR logs across clusters, audit SIP trunk billing records, and inspect global quality scores (MOS).
Domain Administrator Access to all CDRs within the tenant domain; can search historical records by date, caller, or destination, export CSV reports, and listen to call recordings.
Call Center Supervisor / Auditor Reviews queue interaction history, verifies call answer times and durations, audits agent call handling, and plays back call recordings for QA compliance.
End User / Extension Owner Restricted to personal call history (via User Portal / Connect); can view placed, received, and missed calls associated with their extension.

Call Detail Records (CDR) is a call logging and reporting system that captures comprehensive information about every call processed by the PBX. It includes caller/destination info, timestamps, duration, quality metrics, and recording access.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ CDR System Architecture β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚
β”‚ Telephony Server β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚ Call Processing β”‚ β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ β”‚ Call Start β†’ Processing β†’ Answer β†’ End β”‚ β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ β”‚ β”‚
β”‚ β–Ό mod_cdr_pg (PostgreSQL CDR module) β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚ cdr Database β”‚ β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ β”‚ Tables: β”‚ β”‚
β”‚ β”‚ β”œβ”€ Call Detail Records (CDR) store (call records) β”‚ β”‚
β”‚ β”‚ β”œβ”€ CDR A-leg store (A-leg details) β”‚ β”‚
β”‚ β”‚ └─ CDR B-leg store (B-leg details) β”‚ β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ β”‚ β”‚
β”‚ β–Ό Backend API β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚ CdrRecordsPage.tsx β”‚ β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚
β”‚ β”‚ β”‚ Filters: β”‚ β”‚ β”‚
β”‚ β”‚ β”‚ [Date Range] [Call Type] [Caller] [Destination] β”‚ β”‚ β”‚
β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚
β”‚ β”‚ β”‚ Caller β”‚ Dest β”‚ Duration β”‚ Status β”‚ Recording β”‚ β”‚ β”‚
β”‚ β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚
β”‚ β”‚ β”‚ 1001 β”‚ +1555.. β”‚ 0:05:23 β”‚ βœ“ β”‚ ▢️ πŸ“₯ β”‚ β”‚ β”‚
β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

CDR provides complete call visibility:

Without CDR With CDR
No call history Full audit trail
Unknown call quality QoS metrics
Manual billing Automatic logging
No recordings Integrated playback
  1. Billing & Accounting

    • Track billable seconds
    • Account code reporting
  2. Troubleshooting

    • Identify failed calls
    • Analyze call quality
  3. Compliance

    • Call recording access
    • Audit trail
  4. Analytics

    • Call volume trends
    • Peak hour analysis
Feature Benefit
Date Filters Historical queries
Call Type Filter In/Out/Internal
Search Find specific calls
QoS Metrics MOS, jitter, packet loss
Recording Access Play/download recordings
Export Generate reports

  • View all call records
  • Filter by date range
  • Filter by call type
  • Search by caller/destination
  • Play call recordings
  • Download recordings
  • Analyze call quality
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Call Detail Records β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚
β”‚ Filters: β”‚
β”‚ β”œβ”€ Range: [Today β–Ό] [01/16/2026] to [01/16/2026] β”‚
β”‚ β”œβ”€ Call Type: [All β–Ό] β”‚
β”‚ β”œβ”€ Caller: [ ] β”‚
β”‚ β”œβ”€ Destination: [ ] β”‚
β”‚ └─ [Apply Filters] [Refresh] [Clear] β”‚
β”‚ β”‚
β”‚ πŸ” [Search by caller, destination, or domain... ] β”‚
β”‚ β”‚
β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚ β”‚ Time β”‚ Caller β”‚ Dest β”‚ Dir β”‚ Dur β”‚ Status β”‚πŸŽ΅β”‚ β”‚
β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€ β”‚
β”‚ β”‚ 10:30:45 β”‚ 1001 β”‚+1555123.. β”‚ OUT β”‚ 5:23 β”‚ βœ“ │▢️│ β”‚
β”‚ β”‚ 10:28:12 β”‚+1555456..β”‚ 1002 β”‚ IN β”‚ 2:45 β”‚ βœ“ │▢️│ β”‚
β”‚ β”‚ 10:25:00 β”‚ 1003 β”‚ 1004 β”‚ INT β”‚ 0:30 β”‚ βœ“ β”‚ β”‚ β”‚
β”‚ β”‚ 10:20:15 β”‚ 1001 β”‚+1555789..β”‚ OUT β”‚ 0:00 β”‚ βœ— β”‚ β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ β”‚
β”‚ Showing 1-25 of 1,234 records β”‚
β”‚ [< Previous] [Next >] β”‚
β”‚ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

[!TIP] Quick Date Ranges: Use dropdown for Today, 7 Days, 15 Days, 30 Days.

[!TIP] Recording Playback: Click the play icon to hear call recordings.

[!CAUTION] Large Date Ranges: Limit to 30 days for performance.


Field Description
UUID Unique call identifier
Caller Name Caller ID name
Caller Number Caller phone/extension
Destination Called number
Direction Inbound/Outbound/Internal
Context Telephony Server context
Field Description
Start Time Call initiated
Answer Time Call answered
End Time Call ended
Duration Total duration (seconds)
Billable Seconds Answered duration
Field Description
Hangup Cause Call termination reason
SIP Disposition SIP status
Gateway/Trunk Gateway used
Account Code Billing code
Authorization Code Auth code used
Read/Write Codec Audio codecs
Field Description
MOS Score Mean Opinion Score (1-5)
Packet Loss (%) Audio packet loss
Jitter (ms) Audio jitter
Max Delay (ms) Maximum delay
PDD (ms) Post-dial delay
Field Description
Recording File Relative path to recording on disk (/var/lib/softswitch/recordings/...).
Recording Size Exact audio file size on disk in bytes (recording_size_bytes). Displayed dynamically in MB/KB.
Play In-browser inline playback with waveform controls.
Download Secure download of the recording audio file.

Every completed call with an active recording triggers the Telephony Server post-processing hook update_recording_storage.lua:

  • The exact file size is recorded directly on the CDR in recording_size_bytes (Call Detail Records (CDR) store).
  • A dedicated partial index (idx_cdr_recording_size ON Call Detail Records (CDR) store (domain_id, recording_size_bytes) WHERE recording_file IS NOT NULL) enables instant domain-wide usage aggregation without costly full table scans.
  • When an individual recording is purged or deleted via the UI or automated retention rules, the exact recording_size_bytes value is subtracted from the domain’s recording_storage_bytes counter in domains store, keeping the domain quota accurate in real time.
  • Registered as an active field in the CDR Settings module (custom CDR metadata fields, sort order 34).

Option Description
Today Current day
7 Days Last week
15 Days Last 2 weeks
30 Days Last month
Custom Select dates
Type Description
All All calls
Inbound Incoming calls
Outbound Outgoing calls
Internal Extension to extension
Transit Pass-through
Field Description
Caller Partial match on caller
Destination Partial match on destination
Saved Filters Apply CDR Filter templates

  1. Select Today from range dropdown
  2. Click Apply Filters
  3. Browse results
  1. Set Call Type to Outbound
  2. Look for calls with duration = 0
  3. Check hangup cause
  1. Find call in list
  2. Click ▢️ play icon
  3. Recording plays in browser
  1. View MOS Score column
  2. Check Packet Loss %
  3. Review Jitter values
  1. Set date range
  2. Apply filters
  3. Export to CSV

[!NOTE] Real-time: CDR records appear after call ends.

[!NOTE] Recording Depends: Recording must be enabled for call.

[!WARNING] Performance: Large date ranges may be slow.

Setting Description
CDR Retention Configured per system
Recording Retention Separate storage policy
  1. Limit Date Range: Use shortest needed range
  2. Use Filters: Narrow results before searching
  3. Save Filters: Create CDR Filters for common queries
  4. Regular Export: Archive important records
  5. Monitor Quality: Review MOS scores regularly

Symptom Possible Cause Solution
No records Wrong date range Adjust dates
Missing calls Filter too restrictive Clear filters
Recording won’t play File deleted Check retention
Slow loading Large date range Reduce range
Quality metrics N/A Codec issue Check RTP settings

Term Definition
CDR Call Detail Record
MOS Mean Opinion Score (quality 1-5)
Jitter Variation in packet arrival time
PDD Post-Dial Delay
Billsec Billable seconds (answered time)
Hangup Cause Reason call ended
A-Leg Originating party
B-Leg Destination party

The Ring2All Platform AI Assistant integrates directly with the Call Detail Records subsystem through the Model Context Protocol (MCP). Administrators, telecom engineers, and supervisors can conduct natural language call investigations, summarize daily traffic volume, inspect failed calls, and isolate audio quality degradation without manual SQL querying.

Tool Name Operation Primary Parameters Description
query_cdrs CDR Search & Audit search (string, optional), status (ANSWERED, MISSED, BUSY, FAILED), direction (inbound, outbound, local), limit (number) Retrieves recent call records matching filters with timestamps, durations, and leg destinations.
get_cdr_summary Traffic & QoS Summary period (β€œ24h”, β€œ7d”, β€œ30d”) Computes high-level telephony metrics: total call volume, answer rate, billable talk time, and mean MOS score.
get_cdr_details In-Depth Session Diagnostic callUuid (string) Fetches complete diagnostic data for a specific call session, including SIP call ID, Telephony Server hangup cause, RTP jitter, and packet loss.
diagnose_call_failure Forensic Failure RCA uuid, dialedNumber, extension, limit Performs deep forensic investigation on failed or dropped calls: parses SIP hangup causes (USER_BUSY, NO_ROUTE_DESTINATION, CALL_REJECTED), detects early media drops and 32-second NAT ACK drops, analyzes MOS packet loss, and matches engine error traces.
  • Domain Scoping: All queries automatically filter against the authenticated user’s domain_id. Cross-tenant call record visibility is blocked at the database query layer.
  • Read-Only Operations: CDR diagnostic tools execute read-only queries against cdr and cannot mutate or purge historic call data.
  • Data Protection: Audio recording URLs and sensitive caller IDs adhere to RBAC profile restrictions defined in admin_admin_user_profiles.

1. Summarizing Today’s Call Activity (get_cdr_summary)

Section titled β€œ1. Summarizing Today’s Call Activity (get_cdr_summary)”
{
"period": "24h"
}

Response:

{
"success": true,
"data": {
"period": "24h",
"totalCalls": 1420,
"answeredCalls": 1285,
"missedCalls": 135,
"answerRatePercent": 90.5,
"totalBillableMinutes": 4820,
"averageMosScore": 4.38
}
}
{
"callUuid": "c8e41bf2-8812-4c22-9014-ef6a9281a033"
}

Response:

{
"success": true,
"data": {
"uuid": "c8e41bf2-8812-4c22-9014-ef6a9281a033",
"callerNumber": "+13055550144",
"destinationNumber": "1002",
"direction": "inbound",
"hangupCause": "NORMAL_CLEARING",
"billsec": 145,
"rtpMetrics": {
"audioInMos": 4.41,
"audioInJitterMs": 2.1,
"packetLossPercent": 0.0
}
}
}

3. Investigating Call Failures & Hangup Root Causes (diagnose_call_failure)

Section titled β€œ3. Investigating Call Failures & Hangup Root Causes (diagnose_call_failure)”
{
"dialedNumber": "+13055550199",
"limit": 5
}
  • β€œGive me a summary of all call traffic over the last 24 hours.”
  • β€œShow me the last 10 missed calls on extension 1001.”
  • β€œWhy did the incoming call from +13055550144 fail this morning?”
  • β€œAre there any outbound calls with an RTP MOS score below 3.5 in the past 7 days?”

Documentation last updated: January 2026