Skip to content

NethVoice: Legacy SIP extensions block FreePBX startup #8341

Closed
nethesis/ns8-nethvoice
#1271

Description

@Stell0

Steps to reproduce

  1. Start or restore a NethVoice database with an extension that still uses the legacy chan_sip driver (devices.tech = 'sip').
  2. Start NethVoice 1.8.4 with Asterisk 22.10.0. The observed database had one legacy extension and zero legacy SIP trunks.

Expected behavior

Startup attempts legacy extension conversion using FreePBX’s built-in command alongside legacy trunk conversion, before user synchronization and reload. Converted trunks stay disabled for review. Startup continues to the normal reload if the conversion command fails. Starting again skips completed conversions.

Actual behavior

FreePBX Core rejects the startup reload while the legacy extension remains. FreePBX never reports ready, and systemd recreates its container every 24–25 seconds. Running fwconsole convert2pjsip --range <extension-id> manually changed the extension to PJSIP. Asterisk then loaded the endpoint and FreePBX stayed active with a stable restart count. The endpoint had zero registered contacts when checked.

Components

  • NethVoice 1.8.4, commit 5ac757595030bbb113b0d0c576208ef9bb862e02
  • Asterisk 22.10.0
  • FreePBX Core 17.0.18.54

Acceptance checks

  • Start with a legacy extension only, with legacy extensions and trunks, and with an already migrated database.
  • Confirm startup proceeds to user synchronization and reload after a failed conversion command.
  • Confirm Asterisk loads the converted endpoint, the final reload succeeds, and FreePBX stays ready past the former restart interval.

See also

Activity

  1. added this to the NethVoice 1.8 milestone on Nov 19, 2026
  2. added
    nethvoice
    on Nov 19, 2026
  3. added theissue type on Nov 19, 2026
  4. added
    testing
    on Nov 20, 2026
  5. moved this from Todo to Testing in NethVoiceon Nov 20, 2026
  6. edospadoni commented on Nov 20, 2026

    @edospadoni
    Member

    Test

    nethesis/ns8-nethvoice#1271 converts the remaining legacy chan_sip extensions at FreePBX startup. It runs fwconsole convert2pjsip --range <ids> after the legacy trunk conversion, before user synchronization and reload.

    Test Case 1 - Legacy extension blocks startup

    • On a NethVoice instance, turn one extension into a legacy chan_sip device (devices.tech = 'sip') and confirm fwconsole reload fails with "Chan_sip module deprecated"
    • Update the instance to the testing release below
    • FreePBX becomes ready and the freepbx unit restart count stays stable past the former 25 s restart interval
    • The extension is now PJSIP and pjsip show endpoint <ext> shows it loaded
    • Secret, context, codecs, user association and the provisioned phone are unchanged, and the phone registers again

    Test Case 2 - Extension with a restrictive ACL

    • Repeat Test Case 1 with an extension that has a restrictive permit
    • The extension is converted and the reload succeeds. The permit/deny ACL is dropped, because PJSIP extensions have no equivalent setting

    Test Case 3 - Extensions and trunks together

    • Start with legacy SIP extensions and legacy SIP trunks
    • Both are converted, the converted trunks stay disabled for review, and FreePBX stays ready

    Test Case 4 - No regression without legacy devices

    • Update an instance with no legacy SIP devices: startup and reload are unchanged
    • Restart FreePBX again after a migration: nothing is converted a second time

    Testing release: 1.8.5-testing.57 (nethesis/ns8-nethvoice#1271)

    ghcr.io/nethesis/nethvoice:1.8.5-testing.57
    

    Update command (replace nethvoiceX with the NethVoice instance):

    api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice:1.8.5-testing.57","instances":["nethvoiceX"],"force":true}'
    
  7. removed their assignment
    on Nov 23, 2026
  8. added
    verified
    on Nov 23, 2026
  9. removed
    testing
    on Nov 23, 2026
  10. moved this from Testing to Verified in NethVoiceon Nov 23, 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