irontec / ivozprovider

IVOZ Provider - Multitenant solution for VoIP telephony providers
https://ivoz.irontec.com/
GNU General Public License v3.0
192 stars 79 forks source link

Brand and Company configuration Limits #343

Open Kaian opened 6 years ago

Kaian commented 6 years ago

Currently there is no way to control how many entities are created by Brands and Companies.

We could implement a new table ConfigurationLimits so we can specify the max value allowed for a given Brand or Company. This table could be used for

  1. Limit the max number of Extensions/Users/XXXX for a Brand/Company
  2. Limit the max disk space allowed for Recordings for Brands/Company
  3. Limit the max concurrent externals calls for Brand/Company
  4. Limit the max $$$/call duration (single/total) for Brand/Company

For each configured limit we could add ConfigurationLimitsNotifications (starting with email notications using #342 templates) when the current value reaches a configured percentage.

Thoughs?

the-this-pointer commented 4 years ago

Is there any chance to implement this in 2.X?

Kaian commented 4 years ago

Some of the mentioned features were already implemented:

Limit the max number of Extensions/Users/XXXX for a Brand/Company

Artemis release is near its development end and this was not priorized, so it won't be available in 2.x

Limit the max disk space allowed for Recordings for Brands/Company

There was a basic implementation of this limit, including a rotation system, in oasis release but it was removed in artemis because we though that managing disk space was out of scope of the solution.

Limit the max concurrent externals calls for Brand/Company

This has been already implemented in 2.X #394

Limit the max $$$/call duration (single/total) for Brand/Company

This was implemented in 2.X through prepaid balances and max daily usage #739 (at least the $$$ related part)

Kaian commented 4 years ago

Max daily usage for companies is being implemented in #1166