Skip to content

NethVoice: make easier manage a user #7146

Open

Description

@Amygos

Add a more convenient way to change a user's configuration:

  • if I have to change a display name, the change does not reach the display name of his phone (the extensions in FreePBX are not updated)
  • if I have to replace a user with another (keeping the main extension unchanged and the associated phones) it would be convenient to do so without having to reconfigure it from scratch, especially regarding the assignment of devices
  • if I have to delete a user make sure that his extensions are deleted, and his physical devices are freed

Activity

  1. converted this from a draft issue on Nov 15, 2024
  2. added this to the NethVoice 1.4 milestone on Nov 15, 2024
  3. added
    nethvoice
    on Nov 18, 2024
  4. andrea-marchionni commented on Dec 4, 2024

    @andrea-marchionni

    also think of a way to bring the change into the configuration of the phones' BLF

  5. andrea-marchionni commented on Oct 6, 2026

    @andrea-marchionni

    if I have to change a display name, the change does not reach the display name of his phone (the extensions in FreePBX are not updated) done in #8120

  6. moved this from Todo to In Progress in NethVoiceon Nov 10, 2026
  7. tonyco97 commented on Nov 20, 2026

    @tonyco97

    Test

    PR: nethesis/ns8-nethvoice#1201 (draft, testing image ghcr.io/nethesis/nethvoice:pr-1201.*)

    Setup:

    • NethVoice instance updated to the latest PR testing image, wizard already completed.
    • In the user domain:
      • user A with extension 201, web phone, mobile app, a physical phone, a voicemail with at least one message, member of a group;
      • user B without an extension;
      • user C with extension 202, web phone and a physical phone, member of a group;
      • user D with extension 203 and a web phone (used for the calls).
    • The new interface is at https://<voice host>/nethvoice/, page Users and groups > Users.
    • Not covered here (known open point): the labels of BLF keys on the phones of other users are not updated when a name changes.

    Test Case 1 - Reassign an extension to another user

    • Open the row menu of B: "Reassign extension" and "Remove extension" are disabled (B has no extension).
    • Open the row menu of A > "Reassign extension": the dialog explains that the extension 201 moves to the chosen user with its devices, physical phones, voicemail and group memberships, and that A keeps the account without an extension.
    • Press "Reassign" without choosing: "Choose the user" is shown.
    • Open "Assign to": only users without an extension are listed ("Only users without an extension are listed"); C and D are not in the list.
    • Choose B and "Reassign": "Extension reassigned" with "The extension 201 has been assigned to ".
    • The list shows B with extension 201, the same devices, physical phones and groups; A has no extension, no devices and no groups.
    • The web phone, the mobile app and the physical phone of 201 stay registered without any new configuration (numbers and SIP credentials are unchanged).
    • Physical phones: the phone of 201 shows user B.
    • From a device of 201 call D: D sees the name of B.
    • Sign in to NethVoice CTI as B: the voicemail shows the messages left for 201 before the reassignment.
    • Overview: B is listed with extension 201; A is not listed.
    • If no user is left without an extension, "Assign to" shows "No users without an extension".

    Test Case 2 - Remove an extension

    • Row menu of C > "Remove extension": the dialog says that the extension 202 of C will be removed together with all its devices (web phone, apps and physical phones) and the group memberships, and that the user account is kept.
    • "Cancel": nothing changes.
    • "Remove extension" again and confirm: "Extension removed" with "The extension 202 of has been removed".
    • C is still in the list, without extension, devices and groups; the counter "N out of M users configured with an extension" decreases by one.
    • The web phone of C can no longer register.
    • Physical phones: the phone of C is listed as "Unassigned" and can be assigned to another user with "Edit phone".
    • "Edit" D, empty the extension and "Save": "Enter an extension. To remove it, use Remove extension in the user menu." is shown and the extension of D is kept.
    • "Edit" C, enter a free extension and "Save": "User updated" and C has the new extension.

    Test Case 3 - Extensions of removed users are kept and given back

    • Remove A (or any user with extension, devices, groups and profile) from the user domain, then "Actions" > "Synchronize users": the user disappears from the list.
    • The Users page shows "1 extension belongs to a removed user" with "Their devices can't make calls: the account provider can add the users again to restore everything, or you can delete the extensions.".
    • "Show extensions": "Extensions of removed users" lists the user (name and username), "Extension ", the devices, the physical phones and "Removed on ".
    • The devices of the removed user can no longer register.
    • Add a user with the same username to the domain again and synchronize: the notice disappears; the user gets back extension, devices, physical phones, groups and profile; its devices register again without new configuration.

    Test Case 4 - Delete extensions of removed users

    • Remove two users with extensions from the domain and synchronize: the notice says "2 extensions belong to removed users".
    • "Show extensions": "Delete extensions" is disabled until an extension is selected.
    • Select one user and "Delete extensions": the confirmation says that the extension will be permanently deleted with the web phone, the apps and the voicemail, that the physical phones are freed, and "This cannot be undone.".
    • "Delete": "Extensions deleted"; the notice now says "1 extension belongs to a removed user".
    • Physical phones: the phones of the deleted extension are listed as "Unassigned" and can be assigned to another user.
    • "Show extensions" > "Select all" > "Delete extensions" > "Delete": the notice disappears.
    • Add one of these users to the domain again and synchronize: the user comes back without an extension.

    Test Case 5 - Display name of the extensions

    • Change the display name of a user with extension, web phone and physical phone (e.g. B after Test Case 1) in the user domain, then "Actions" > "Synchronize users": "Users synchronized" and the list shows the new name.
    • From the web phone of that user call D: D sees the new name.
    • From the physical phone and the mobile app of that user (if any) call D: D sees the new name.
    • After "Reassign extension" (Test Case 1), calls from the moved devices show the name of the new owner, not the old one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

nethvoice

Projects

  • Status
    In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions