Major rewrite: New features #1

Open
opened 2024-07-09 21:02:19 -06:00 by CaptainChris · 2 comments

A administrative mode should be added with the following features

  • Create infinite extensions with one discord account with preconfigured parameters (such as call recording policies, class of service/extension routing, and max contacts), and automatically use the lowest extension number unless an extension number is specified, with a field to enter a name, and to associate the extension with a discord id, these parameters can be edited later by an admin. Also let the user pick which paging groups the extension should be a part of, whether intercom is enabled or disabled, whether they should be added to the directory/phonebook, and/or the ability to pick from more than one template.
    -A form system, instead of a user creating an extension directly, they can submit a form, the form can include the name, features they want, etc, when they submit, an admin can get a ping in a discord channel where they can allow or deny the request if allowed, the predefined template including variables for stuff like extension number, display, and password can be messaged to their discord user, or can be copied and pasted by the admin, it will create the extension with settings the user chooses and the predefined settings.
    -The ability for an admin to edit the extension such as changing the name, resetting the password, adding and removing page groups, ring groups, class of service, and deleting the extension, and also the ability to add a discord id to an existing extension.
    -The ability for the user id associated with the extension to change their display name, reset their sip or ucp password, enable and disable paging, enable and disable intercom, block numbers (by changing the dialplan), and add an email address for VM to email

Also an install script and better documentation would be nice

A administrative mode should be added with the following features - Create infinite extensions with one discord account with preconfigured parameters (such as call recording policies, class of service/extension routing, and max contacts), and automatically use the lowest extension number unless an extension number is specified, with a field to enter a name, and to associate the extension with a discord id, these parameters can be edited later by an admin. Also let the user pick which paging groups the extension should be a part of, whether intercom is enabled or disabled, whether they should be added to the directory/phonebook, and/or the ability to pick from more than one template. -A form system, instead of a user creating an extension directly, they can submit a form, the form can include the name, features they want, etc, when they submit, an admin can get a ping in a discord channel where they can allow or deny the request if allowed, the predefined template including variables for stuff like extension number, display, and password can be messaged to their discord user, or can be copied and pasted by the admin, it will create the extension with settings the user chooses and the predefined settings. -The ability for an admin to edit the extension such as changing the name, resetting the password, adding and removing page groups, ring groups, class of service, and deleting the extension, and also the ability to add a discord id to an existing extension. -The ability for the user id associated with the extension to change their display name, reset their sip or ucp password, enable and disable paging, enable and disable intercom, block numbers (by changing the dialplan), and add an email address for VM to email Also an install script and better documentation would be nice
Author

also the ability for the form feature to link with a web form or something idk

also the ability for the form feature to link with a web form or something idk
Owner

I'd have to dig around the Asterisk database and FreePBX API to see if some of these are possible

As far as multiple exts per user goes, the theory is simple, I'd just need to make a database to keep track of extensions a user is assigned to, which would require a lot of rewriting in the current bot (not opposed to doing it, the current code is an utter mess lol)

The only thing that may prove interesting is setting certain settings, I'm still learning how FreePBX edits asterisk and reads/writes to the main DB, and honestly I have absolutely no idea what is and isn't possible. Will investigate

block numbers (by changing the dialplan)
The only way i can see to do this would involve the bot editing a file on the main PBX and reloading. My only concern is keeping track of the file itself -_- This one is a hard maybe.

whether intercom is enabled or disabled
Theres a feature code for that built into freepbx:
*54 - User Intercom Allow
*55 - User Intercom Disallow

I'll look through more of your suggestions later and write up another comment, some of it is definitely doable, like multiple extensions per person, some of it would be... well frankly redundant, like the intercom disable lol

Again thank you for the ideas though, I'll def look into them

I'd have to dig around the Asterisk database and FreePBX API to see if some of these are possible As far as multiple exts per user goes, the theory is simple, I'd just need to make a database to keep track of extensions a user is assigned to, which would require a lot of rewriting in the current bot (not opposed to doing it, the current code is an utter mess lol) The only thing that may prove interesting is setting certain settings, I'm still learning how FreePBX edits asterisk and reads/writes to the main DB, and honestly I have absolutely **_no_** idea what is and isn't possible. Will investigate > block numbers (by changing the dialplan) The only way i can see to do this would involve the bot editing a file on the main PBX and reloading. My only concern is keeping track of the file itself -_- This one is a hard maybe. > whether intercom is enabled or disabled Theres a feature code for that built into freepbx: \*54 - User Intercom Allow \*55 - User Intercom Disallow I'll look through more of your suggestions later and write up another comment, some of it is definitely doable, like multiple extensions per person, some of it would be... well frankly redundant, like the intercom disable lol Again thank you for the ideas though, I'll def look into them
ChrisChrome self-assigned this 2024-07-11 09:13:39 -06:00
ChrisChrome changed title from Separate administration mode to Major rewrite: New features 2024-07-11 09:13:58 -06:00
ChrisChrome added the
Kind
Feature
Kind
Enhancement
Reviewed
Confirmed
Priority
Medium
labels 2024-07-11 09:15:08 -06:00
ChrisChrome added the
Compat
Breaking
label 2024-07-11 09:18:16 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ChrisChrome/discord-freepbx-manager#1
No description provided.