Skip to content

NethLink: Add support for USB/Bluetooth headset call control commands (answer/hold/mute/end) #7860

Description

@andrea-marchionni

Description:

It would be great if NethLink could support hardware call control commands from USB and Bluetooth headsets.

Many users rely on headset buttons to manage calls, but currently NethLink does not react to these events.

Requested functionality:

  • Detect headset call control events (HID or Bluetooth HFP/HID)

  • Map headset buttons to:

    • Answer incoming call
    • Hold/resume call
    • Mute/unmute microphone
    • End call
  • Provide configuration options for custom key mapping (optional but desirable)

Benefits:

  • Improved accessibility and hands-free operation
  • Better user experience for call center and professional environments
  • Consistency with other softphones that already support headset controls

Expected behavior:

  • Pressing the headset answer button should accept the incoming call
  • Pressing the hold button should toggle hold/resume
  • Pressing the mute button should toggle microphone mute/unmute
  • Pressing the hang up button should terminate the call

Activity

  1. added
    nethvoice
    nethlink
    on Feb 11, 2026
  2. removed this from the NethVoice 1.8 milestone on Oct 5, 2026
  3. added
    More effort
    on Oct 6, 2026
  4. self-assigned this
    on Dec 3, 2026
  5. moved this from Todo to In Progress in NethVoiceon Dec 3, 2026
  6. added
    testing
    on Dec 4, 2026
  7. moved this from In Progress to Testing in NethVoiceon Dec 4, 2026
  8. edospadoni commented on Dec 4, 2026

    @edospadoni
    Member

    Test

    PRs: nethesis/phone-island#332 (released as 1.1.14), NethServer/nethlink#285, nethesis/ns8-nethvoice#1393, NethServer/nethvoice-docs#111 (user manual, not merged yet)

    Testing releases

    ghcr.io/nethesis/nethvoice:1.8.8-testing.47
    

    Update command (replace nethvoiceX with the NethVoice instance):

    api-cli run update-module --data '{"module_url":"ghcr.io/nethesis/nethvoice:1.8.8-testing.47","instances":["nethvoiceX"],"force":true}'
    

    Setup: a user with NethLink and the CTI web phone, a second phone to call from and to, and a USB headset with call buttons. A headset counts as USB when it is connected with a cable or with its own USB receiver (dongle). Write the brand and model of each headset tried in the result. *43 is the echo test, useful as a call that stays up.

    Developed and tried on macOS with a wired USB headset and a Linkvil DH301B. Windows, two headsets together, two CTI tabs and the CTI with NethLink open were not tried: Test Cases 4 to 8 matter most.

    Test Case 1 - NethLink, one headset

    • Plug the headset in and open Settings > Audio and video settings: the row Headset call controls is on and shows In use: <name of the headset>
    • Call *43 from NethLink: the headset shows the call on its light, if it has one
    • Press mute on the headset: NethLink shows the call as muted; press it again: the call is no longer muted
    • Mute from NethLink: the mute light of the headset turns on
    • Press the call button of the headset: the call ends
    • Receive a call: the headset signals it; press the call button: the call is answered
    • Receive a call and refuse it from the headset, if it has a way to do it (often a long press): the call is refused
    • If the headset has a hold command (often a long press during the call): the call goes on hold, and the same command resumes it

    Test Case 2 - NethLink, switch off

    • Turn Headset call controls off and click Save: the buttons of the headset no longer act on calls, the audio still works
    • Open the settings again: the row shows the description, not the name of the headset
    • Turn it on again and save: the buttons work again

    Test Case 3 - NethLink on Windows

    • Repeat Test Case 1 on Windows

    Test Case 4 - More devices together (NethLink)

    • Plug two USB headsets in, choose the first one as microphone and speaker and save: the row shows only the first one, and only its buttons and lights work
    • Choose the second one and save: the row shows only the second one
    • With the two headsets plugged in, choose the microphone and the speakers of the computer: both headsets are listed and the buttons of both work
    • Unplug the headset in use during a call: the call stays up and can be ended from NethLink

    Test Case 5 - NethVoice CTI

    • In Chrome or Edge, with the Web phone as main device, open Settings > Devices, the menu of the Web phone, Audio and Video settings: the section Headset call controls is there
    • Click Connect headset and choose the headset in the window of the browser: the section shows its name
    • Repeat the calls of Test Case 1 from the CTI
    • Reload the page: the headset is still connected, without choosing it again
    • Click Disconnect headset: the buttons no longer work, and after a reload the headset is still not connected
    • In Firefox the section is not shown

    Test Case 6 - CTI, two tabs

    • Open the CTI in two tabs of the same browser, with the headset connected. Start a call from the second tab: the headset shows it, and its buttons mute and end that call
    • Start a call from the first tab: same result

    Test Case 7 - CTI and NethLink open together

    • With NethLink as main device and a CTI tab open in Chrome with the headset connected, receive a call and press the call button: the call is answered once, in NethLink, and can be ended from the headset
    • Make the Web phone the main device and repeat: the call is answered in the browser

    Test Case 8 - Other ways to end a call

    • With a physical phone as main device, the buttons of the headset do nothing in NethLink and in the CTI
    • Start an attended transfer and complete it by pressing the call button of the headset: the transfer is done and the "call transferred" confirmation is shown, as with the red button
    • End calls with the red button of NethLink and of the CTI, also during a transfer: it works as before

    Known limits (not bugs)

    • A headset connected only with Bluetooth, without its USB receiver, works for audio but its buttons do not control calls: the operating system does not give them to applications
    • A headset that does not follow the USB standard for call controls is not listed, and its buttons do nothing
    • Linux is not supported
  9. removed
    More effort
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

nethlinknethvoicetesting

Projects

  • Status
    Testing

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions