Call Detail Records (CDR) Module Documentation
Table of Contents
Section titled βTable of Contentsβ- Navigation & Access
- Screenshots & Visual Interface
- Module Overview (Technical)
- Module Overview (Commercial/Business)
- Module Overview (End User/Administrator)
- CDR Fields Reference
- Filtering Options
- Common Scenarios & Examples
- Limitations & Important Notes
- Troubleshooting Tips
- Glossary
- Model Context Protocol (MCP) AI Integration
Navigation & Access
Section titled βNavigation & AccessβTo access the Call Detail Records reporting interface:
- Log in to the Ring2All Web Portal (
https://<domain-or-ip>/login). - In the left navigation sidebar, expand Reports.
- Under CDR Reports, click Call Detail Records (
/reports/cdr/cdr). - Browse call sessions, apply date and extension filters, export CSV logs, stream embedded recordings, or request on-demand Post-Call AI summaries.
Screenshots & Visual Interface
Section titled βScreenshots & Visual InterfaceβCall Detail Records (CDR) Analytics Ledger
Section titled βCall Detail Records (CDR) Analytics Ledgerβ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.

π― User Roles & Key Capabilities
Section titled βπ― User Roles & Key Capabilitiesβ| 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. |
1. Module Overview (Technical)
Section titled β1. Module Overview (Technical)βWhat Are Call Detail Records?
Section titled βWhat Are Call Detail Records?β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.
Architecture
Section titled βArchitectureβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 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 β β β βΆοΈ π₯ β β ββ β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β ββ β β ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ2. Module Overview (Commercial/Business)
Section titled β2. Module Overview (Commercial/Business)βBusiness Value
Section titled βBusiness Valueβ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 |
Use Cases
Section titled βUse Casesβ-
Billing & Accounting
- Track billable seconds
- Account code reporting
-
Troubleshooting
- Identify failed calls
- Analyze call quality
-
Compliance
- Call recording access
- Audit trail
-
Analytics
- Call volume trends
- Peak hour analysis
Feature Highlights
Section titled βFeature Highlightsβ| 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 |
3. Module Overview (End User/Administrator)
Section titled β3. Module Overview (End User/Administrator)βWhat Can You Do?
Section titled βWhat Can You Do?β- View all call records
- Filter by date range
- Filter by call type
- Search by caller/destination
- Play call recordings
- Download recordings
- Analyze call quality
CDR Interface
Section titled βCDR Interfaceβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 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 >] ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββQuick Tips
Section titled βQuick Tipsβ[!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.
4. CDR Fields Reference
Section titled β4. CDR Fields ReferenceβCall Information
Section titled βCall Informationβ| 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 |
Timestamps
Section titled βTimestampsβ| Field | Description |
|---|---|
| Start Time | Call initiated |
| Answer Time | Call answered |
| End Time | Call ended |
| Duration | Total duration (seconds) |
| Billable Seconds | Answered duration |
Technical Details
Section titled βTechnical Detailsβ| 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 |
Quality Metrics
Section titled βQuality Metricsβ| 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 |
Recording & Storage Tracking
Section titled βRecording & Storage Trackingβ| 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. |
Exact Per-Call Storage Accounting
Section titled βExact Per-Call Storage Accountingβ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_bytesvalue is subtracted from the domainβsrecording_storage_bytescounter 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).
5. Filtering Options
Section titled β5. Filtering OptionsβDate Range
Section titled βDate Rangeβ| Option | Description |
|---|---|
| Today | Current day |
| 7 Days | Last week |
| 15 Days | Last 2 weeks |
| 30 Days | Last month |
| Custom | Select dates |
Call Type
Section titled βCall Typeβ| Type | Description |
|---|---|
| All | All calls |
| Inbound | Incoming calls |
| Outbound | Outgoing calls |
| Internal | Extension to extension |
| Transit | Pass-through |
Search Fields
Section titled βSearch Fieldsβ| Field | Description |
|---|---|
| Caller | Partial match on caller |
| Destination | Partial match on destination |
| Saved Filters | Apply CDR Filter templates |
6. Common Scenarios & Examples
Section titled β6. Common Scenarios & ExamplesβScenario 1: View Todayβs Calls
Section titled βScenario 1: View Todayβs Callsβ- Select Today from range dropdown
- Click Apply Filters
- Browse results
Scenario 2: Find Failed Outbound
Section titled βScenario 2: Find Failed Outboundβ- Set Call Type to Outbound
- Look for calls with duration = 0
- Check hangup cause
Scenario 3: Listen to Recording
Section titled βScenario 3: Listen to Recordingβ- Find call in list
- Click βΆοΈ play icon
- Recording plays in browser
Scenario 4: Analyze Call Quality
Section titled βScenario 4: Analyze Call Qualityβ- View MOS Score column
- Check Packet Loss %
- Review Jitter values
Scenario 5: Export for Billing
Section titled βScenario 5: Export for Billingβ- Set date range
- Apply filters
- Export to CSV
7. Limitations & Important Notes
Section titled β7. Limitations & Important NotesβTechnical Notes
Section titled βTechnical Notesβ[!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.
Data Retention
Section titled βData Retentionβ| Setting | Description |
|---|---|
| CDR Retention | Configured per system |
| Recording Retention | Separate storage policy |
Best Practices
Section titled βBest Practicesβ- Limit Date Range: Use shortest needed range
- Use Filters: Narrow results before searching
- Save Filters: Create CDR Filters for common queries
- Regular Export: Archive important records
- Monitor Quality: Review MOS scores regularly
8. Troubleshooting Tips
Section titled β8. Troubleshooting TipsβCommon Issues
Section titled βCommon Issuesβ| 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 |
9. Glossary
Section titled β9. Glossaryβ| 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 |
10. Model Context Protocol (MCP) AI Integration
Section titled β10. Model Context Protocol (MCP) AI Integrationβ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.
Exposed MCP Tools
Section titled βExposed MCP Toolsβ| 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. |
Operational Safeguards & Multi-Tenant Isolation
Section titled βOperational Safeguards & Multi-Tenant Isolationβ- 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.
Example MCP Payloads
Section titled βExample MCP Payloadsβ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 }}2. Investigating a Dropped Call (get_cdr_details)
Section titled β2. Investigating a Dropped Call (get_cdr_details)β{ "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}AI Assistant Natural Language Prompts
Section titled βAI Assistant Natural Language Promptsβ- β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

