Skip to content

NethVoice: Fanvil/NethPhone "Headset not connected" warning on phones without a headset since Auto Headset is enabled by default #8307

Closed

Description

@andrea-marchionni

Description

nethesis/tancredi#400 hardcoded P1 Auto Headset :1 in the fanvil-X5, fanvil-V67 and nethesis templates, so every Fanvil and NethPhone model using those templates now answers incoming calls through the headset.

On phones with no headset connected, answering a call shows a "Headset not connected!" warning popup on the display. Most desks have no headset, so most users now see this warning on every answered call.

Steps to reproduce

  1. Provision a NethPhone (e.g. NP-X5) or a Fanvil X5/V67 with a Tancredi version that includes #400.
  2. Leave no headset connected.
  3. Answer an incoming call.

Expected: the call is answered normally, with no warning.
Actual: the ""Headset not connected!" popup appears.

Proposed solution

Make the parameter configurable and keep it off unless a headset is present:

  • Tancredi: replace the hardcoded value with an auto_headset scope variable, defaulting to 0. Missing or invalid values also fall back to 0, so existing installations return to the behavior from before #400 without a migration.
  • NethVoice UI (nethvoice-wizard-ui): add an "Answer with the headset when connected" setting in the Preferences section of model and phone settings. Show it only for Fanvil and NethPhone models whose template supports it (fanvil-X5, fanvil-V67, nethesis), so administrators can enable it per model or per phone only where a headset is actually used.

Activity

  1. moved this from Todo to In Progress in NethVoiceon Nov 11, 2026
  2. edospadoni commented on Nov 11, 2026

    @edospadoni
    Member

    Test

    PRs: nethesis/tancredi#404 (released in Tancredi 1.11.3), nethesis/ns8-nethvoice#1195

    Setup: a NethPhone (e.g. NP-X5) or a Fanvil X5/V67-family phone provisioned by NethVoice, with no headset connected; a second phone, or the same one, with a headset for the enabled case. After each change, reprovision the phone (or reboot it) and check P1 Auto Headset in the configuration the phone downloads (or the "Auto Headset" option of line 1 in the phone web UI).

    Test Case 1 - Default after the update (bug fix)

    • On an installation upgraded from a build with Tancredi 1.11.2, reprovision a NethPhone/Fanvil without a headset: P1 Auto Headset is 0
    • Answering an incoming call shows no "Headset not connected!" warning and the call is answered normally
    • A phone added after the update also gets P1 Auto Headset :0

    Test Case 2 - Enable per model and per phone

    • In Models, open a Fanvil X5/V67-family or NethPhone model: Preferences shows "Answer with the headset when connected"
    • Set it to Enabled on the model and reprovision: the model's phones get P1 Auto Headset :1, and with a headset connected an incoming call is answered through the headset
    • Override it to Disabled on a single phone (Configurations > phone settings): only that phone gets 0
    • Set the selector back to "-" on the phone and on the model: the phone inherits again and returns to 0

    Test Case 3 - Regression on other models

    • The setting is not shown for Fanvil X3/X4/H2/H5/X3SG-PRO (legacy fanvil-X3 template), Yealink, Snom, Gigaset, Akuvox, Sangoma, nor in the global defaults
    • Other Preferences settings (NTP, provisioning schedule, line keys transfer mode, etc.) still save and provision as before

    Testing image: PR build of nethesis/ns8-nethvoice#1195 (Tancredi 1.11.3)

    ghcr.io/nethesis/nethvoice:pr-1195.1686-1.a69e693
    

    Update command (replace nethvoiceX with the NethVoice instance):

    api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice:pr-1195.1686-1.a69e693","instances":["nethvoiceX"],"force":true}'
    
  3. added
    testingPackages are available from testing repositories
    on Nov 11, 2026
  4. moved this from In Progress to Testing in NethVoiceon Nov 11, 2026
  5. removed their assignment
    on Nov 11, 2026
  6. removed
    testingPackages are available from testing repositories
    on Nov 11, 2026
  7. moved this from Testing to Verified in NethVoiceon Nov 11, 2026
  8. edospadoni commented on Nov 11, 2026

    @edospadoni
    Member

    Testing release: 1.8.2-testing.3 (nethesis/ns8-nethvoice#1195, nethesis/tancredi#404 via Tancredi 1.11.3)

    ghcr.io/nethesis/nethvoice:1.8.2-testing.3
    

    Update command (replace nethvoiceX with the NethVoice instance):

    api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice:1.8.2-testing.3","instances":["nethvoiceX"],"force":true}'
    
  9. added
    testingPackages are available from testing repositories
    on Nov 11, 2026
  10. moved this from Verified to Testing in NethVoiceon Nov 11, 2026
  11. removed their assignment
    on Nov 12, 2026
  12. removed
    testingPackages are available from testing repositories
    on Nov 12, 2026
  13. moved this from Testing to Verified in NethVoiceon Nov 12, 2026
  14. Stell0 commented on Nov 12, 2026

    @Stell0

    Release nethesis/ns8-nethvoice 1.8.2

  15. removed
    verifiedAll test cases were verified successfully
    on Nov 12, 2026
  16. moved this from Verified to Done in NethVoiceon Nov 12, 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

    nethvoiceBug or features releted to the NethVoice project

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions