# Missing CDR Records for Abandoned Queue Calls Due to NoCDR() in VitalPBX 4.5.5

**URL:** <https://forums.vitalpbx.org/t/missing-cdr-records-for-abandoned-queue-calls-due-to-nocdr-in-vitalpbx-4-5-5/6540>\
**Category:** VitalPBX\
**Created:** [December 5, 2026, 8:12pm UTC](https://forums.vitalpbx.org/t/missing-cdr-records-for-abandoned-queue-calls-due-to-nocdr-in-vitalpbx-4-5-5/6540 "2026-12-05T20:12:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![haritha](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/haritha/32/4525_2.png) [@haritha](https://forums.vitalpbx.org/u/haritha)\
**Post date:** [December 5, 2026, 8:12pm UTC](https://forums.vitalpbx.org/t/missing-cdr-records-for-abandoned-queue-calls-due-to-nocdr-in-vitalpbx-4-5-5/6540/1 "2026-12-05T20:12:47Z")

</div>

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**

1. Configure an inbound route with a queue as its destination.

2. Make an incoming call to the assigned DID.

3. Wait in the queue without an agent answering.

4. Disconnect the call from the caller’s side.

5. Check the VitalPBX CDR report and the `asterisk.cdr` database 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:

```auto
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**

```auto
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**

1. Is this a known issue or an intentional design of the VitalPBX queue dialplan?

2. Why is `NoCDR()` executed before the Queue application?

3. Is there a supported method to retain CDR records when callers abandon a queue?

4. Is there an official patch or configuration change available?

5. 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.
