Skip to content

NethVoice: missing CDR setting prevents FreePBX startup #8333

Closed
nethesis/ns8-nethvoice
#1220

Description

@Stell0

Steps to reproduce

  1. In a disposable NethVoice installation, use an older FreePBX settings database without the CANCELDISPOSITION row in asterisk.freepbx_settings, with the existing CDR batch settings present.
  2. Upgrade to NethVoice 1.8.3 and let FreePBX initialize, or run fwconsole reload on that test instance.

Expected behavior

FreePBX reloads and starts successfully. Missing CDR settings receive their upstream defaults, and existing settings are preserved.

Actual behavior

FreePBX fails while generating CDR configuration:

Undefined array key "CANCELDISPOSITION"
functions.inc.php:70
'fwconsole reload' failed, config not applied

The failed reload prevents readiness and causes FreePBX to restart repeatedly. Dependent CTI and provisioning services become unavailable.

The responsible file is admin/modules/cdr/functions.inc.php from CDR 17.0.11.3. On Asterisk 20.16 and later it directly reads $amp_conf['CANCELDISPOSITION']. The CDR installer defines this setting with value/default 0; FreePBX startup skips installation for modules already marked Enabled, which can leave an older database without the definition.

The exact exception at line 70 was reproduced locally using checksum-verified pinned CDR sources and synthetic settings. Supplying 0 generates canceldispositionenabled=no; supplying 1 generates yes. The production database was not inspected directly.

The fix should insert the complete missing setting definition during database startup updates, using the upstream default 0, without changing existing values or patching the CDR module.

Components

  • NethVoice 1.8.3, source commit 10f71843ef5b12ea02d29d79f75033b4ffdc9aec.
  • FreePBX 17, CDR module 17.0.11.3, Asterisk 22.

See also

Activity

  1. added this to the NethVoice 1.8 milestone on Nov 17, 2026
  2. added
    nethvoice
    on Nov 17, 2026
  3. added theissue type on Nov 17, 2026
  4. edospadoni commented on Nov 18, 2026

    @edospadoni
    Member
  5. added
    testing
    on Nov 18, 2026
  6. moved this from Todo to Testing in NethVoiceon Nov 18, 2026
  7. removed their assignment
    on Nov 19, 2026
  8. added
    verified
    on Nov 19, 2026
  9. removed
    testing
    on Nov 19, 2026
  10. moved this from Testing to Verified in NethVoiceon Nov 19, 2026
  11. edospadoni commented on Nov 23, 2026

    @edospadoni
    Member

    Release nethesis/ns8-nethvoice 1.8.5

  12. moved this from Verified to Done in NethVoiceon Nov 23, 2026
  13. removed
    verified
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethvoice

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions