Ipaccount: Difference between revisions

From VoIPmonitor.org
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
In a GUI's configuration you can then enable following in configuration.php for the GUI in /var/www/html/config/configuration.php (when default path for the GUI is used /var/www/html):
In a GUI's configuration you can then enable following in configuration.php for the GUI in /var/www/html/config/configuration.php (when default path for the GUI is used /var/www/html):
  define('ENABLE_CUSTOMERS', true);
  define('ENABLE_CUSTOMERS', true);
  define('TYPE_CUSTOMERS_TABLES', 'customers');
  define('TYPE_CUSTOMERS_TABLES', 'users');


above will stores the Customers into Users table, but you can force the GUI to store the Customers into separate table by definition of
above will stores the Customers into Users table, but you can force the GUI to store the Customers into separate table by definition of
  define('ENABLE_CUSTOMERS', true);
  define('ENABLE_CUSTOMERS', true);
  define('TYPE_CUSTOMERS_TABLES', 'customers');
  define('TYPE_CUSTOMERS_TABLES', 'customers');

Revision as of 18:22, 26 August 2024

It is used for enabling the counting of the packets per customer/resseler.

in /etc/voipmonitor.conf enable following option and restart sniffer service

ipaccount = yes

the counts are increased every ipaccount_interval which is by default 300second

ipaccount_interval = 300

After the sniffer service creates the agreggation tables in a DB in the GUI appears the new menuitems under the user&audit section (resellers and customers) In a GUI's configuration you can then enable following in configuration.php for the GUI in /var/www/html/config/configuration.php (when default path for the GUI is used /var/www/html):

define('ENABLE_CUSTOMERS', true);
define('TYPE_CUSTOMERS_TABLES', 'users');

above will stores the Customers into Users table, but you can force the GUI to store the Customers into separate table by definition of

define('ENABLE_CUSTOMERS', true);
define('TYPE_CUSTOMERS_TABLES', 'customers');