Hello VitalPBX Team,
We have identified an issue in our production multi-tenant environment where incoming calls abandoned by callers while waiting in a queue are missing from the native CDR database.
Environment
-
VitalPBX: 4.5.5-1
-
Asterisk: 20.22.0
-
Multi-Tenant Module: 4.5.0-3
-
Operating System: Debian 12
-
CDR Backend: Adaptive ODBC
-
CDR Logging: Enabled
-
Log Unanswered Calls: Yes
-
Log Congestion: Yes
Steps to Reproduce
-
Configure an inbound route with a queue as its destination.
-
Make an incoming call to the assigned DID.
-
Wait in the queue without an agent answering.
-
Disconnect the call from the caller’s side.
-
Check the VitalPBX CDR report and the
asterisk.cdrdatabase table.
Expected Behavior
The abandoned incoming call should have a corresponding CDR record, allowing customers to identify missed or abandoned calls in their call history.
Actual Behavior
-
The call is missing from the VitalPBX CDR report.
-
No corresponding record exists in the CDR database when searching by either Unique ID or Linked ID.
-
CEL events are recorded correctly.
-
ENTERQUEUE and ABANDON events are recorded correctly in the queue log.
Technical Findings
We inspected the VitalPBX-generated queue dialplan and identified the following sequence:
16. ExecIf(...?Progress():Answer())
17. NoCDR()
18. Set(Q_RING_TIME=)
19. ExecIf(...)
20. Set(ANNOUNCEMENT_OVERRIDE=...)
21. Queue(T26_Q100,...)
22. ResetCDR(ve)
It appears that CDR logging is disabled before entering the queue. When the caller disconnects while waiting, the subsequent ResetCDR(ve) application may not execute.
We also confirmed that this dialplan pattern exists across multiple tenants and queues.
Verified Test Results
Call start: 2026-12-04 12:29:50
Call end: 2026-12-04 12:30:01
Queue: T26_Q100
Unique ID: 1796367590.69696
Wait time: 11 seconds
CEL:
CHAN_START
ANSWER
APP_START (Queue)
HANGUP
CHAN_END
Queue Log:
ENTERQUEUE
ABANDON
CDR:
No matching record
Temporary Workaround
We previously implemented a custom SQL synchronization service to recover missing CDR records using CEL and queue log data.
However, as call volumes increased, the synchronization queries began taking approximately 22–25 seconds to complete. This was associated with call connection delays, one-way audio, and voice quality issues.
After temporarily stopping the custom synchronization service, all five controlled test calls completed successfully without these issues.
We would prefer a supported native solution rather than relying on custom database synchronization.
Questions
-
Is this a known issue or an intentional design of the VitalPBX queue dialplan?
-
Why is
NoCDR()executed before the Queue application? -
Is there a supported method to retain CDR records when callers abandon a queue?
-
Is there an official patch or configuration change available?
-
Can this be resolved without creating duplicate CDR records or modifying generated dialplan files?
This is particularly important for multi-tenant service providers, as customers rely on accurate CDR records for missed-call tracking, reporting, and CRM integrations.
We would appreciate your guidance on a permanent, supported solution.
Thank you.