|
Revision 1052, 1.1 kB
(checked in by Adrian Georgescu <ag@…>, 2 months ago)
|
|
Removed memcached from documentation
|
| Line | |
|---|
| 1 | |
|---|
| 2 | The quota system |
|---|
| 3 | ---------------- |
|---|
| 4 | |
|---|
| 5 | The quota system works with OpenSER data sources. It enforces usage limits |
|---|
| 6 | for post-paid accounts. |
|---|
| 7 | |
|---|
| 8 | The quota system builds incremental statistics with usage information from |
|---|
| 9 | the normalized SIP sessions, it compares the curent usage with the monthly |
|---|
| 10 | quota assigned by administrator and blocks the accounts in the SIP Proxy |
|---|
| 11 | when the quota is exceeded. |
|---|
| 12 | |
|---|
| 13 | The system will not stop in real-time ongoing calls but provides in practice |
|---|
| 14 | a practical protection against fraudulent usage of the platform. |
|---|
| 15 | |
|---|
| 16 | The quota is checked by a cron job: |
|---|
| 17 | |
|---|
| 18 | /var/www/CDRTool/scripts/SER/quotaCheck.php |
|---|
| 19 | |
|---|
| 20 | At the beginning of each calendar month the quota usage is reset and all |
|---|
| 21 | users are unblocked: |
|---|
| 22 | |
|---|
| 23 | /var/www/CDRTool/scripts/SER/quotaReset.php |
|---|
| 24 | |
|---|
| 25 | The current quota usage can be monitored in Rating -> Quota usage web page. |
|---|
| 26 | |
|---|
| 27 | When quota is exceeded, an email notification is sent to the user and a copy |
|---|
| 28 | of the message to the platform administrator. To customize the email message |
|---|
| 29 | subject, body and other header fields you must create some entries in |
|---|
| 30 | cdrtool.settings table. See CDRTool/setup/mysql/custom_notifications.mysql |
|---|
| 31 | for an example. |
|---|