Difference between revisions of "Internal support hints"

From VoIPmonitor.org
Jump to navigation Jump to search
Line 28: Line 28:
 
  2018-05-09 12:00,120,+4121353333,+41792826527,192.168.101.10,192.168.101.151,800,8.1
 
  2018-05-09 12:00,120,+4121353333,+41792826527,192.168.101.10,192.168.101.151,800,8.1
 
  2018-05-09 12:00,120,+4121353333,+41792826527,192.168.101.10,192.168.101.151
 
  2018-05-09 12:00,120,+4121353333,+41792826527,192.168.101.10,192.168.101.151
 +
 +
= License Hints =
 +
== Write state to db (count of cc cchannels for license purposse) ==
 +
php /var/www/html/php/run.php saveCallStatistics
 +
 +
== License Details ==
 +
=== detail on channels count usage ===
 +
php /var/www/html/php/run.php checkLicense -v
 +
php /var/www/html/php/run.php checkLicense -v 2
 +
 +
=== license file ===
 +
cat /var/www/html/key.php
 +
 +
=== Get current license token from db ===
 +
mysql> select content from voipmonitor.system where type='license token';
 +
 +
= SCRIPTs for better run control =
 +
== ALERTS ==
 +
When alerts taking longer time to process then interval is schedulled it can cause out of memory or high load to CPU after some time because same alert is processed multipletimes for various time ranges. Following script allows manual run of disabled alert in GUI via crontab - its benefit is that it will run multiple alerts at same time unlike normal run where is processed one alert by one.
 +
 +
Follow this link [[script-for-multi-Instances-alerts-processing]]
 +
 +
 +
== Batch download for more then 1000CDRs ==

Revision as of 13:39, 18 April 2019

Important note:

Following articles are designed to be used by internal support team. You can find hints usauseful but please use it at your own risk (use on testing servers first)

Testing regexp / country rules / billing

Regexp test

/usr/local/sbin/voipmonitor --config-file=/etc/voipmonitor-test.conf -k -v1 --test-regexp '^800880080[1-9][0-9][*]|80088008012345|' 

Country assignment test

/usr/local/sbin/voipmonitor --config-file=/etc/voipmonitor-test.conf -k -v1 --find-country-for-ip=102.140.68.113
/usr/local/sbin/voipmonitor --config-file=/etc/voipmonitor-test.conf -k -v1 --find-country-for-number 0034*12345

pricing / billing test

voipmonitor --config-file=config/voipmonitor.conf -k -v1 --test-billing test_data/billing

Example of test_data/billing file

Columns order
 - calldate 
 - connect_duration
 - caller
 - called
 - sipcallerip
 - sipcalledip
 - expected price operator - (voluntary option)
 - expected price customer - (voluntary option) 
2018-05-09 12:00,120,+4121353333,+41792826527,192.168.101.10,192.168.101.151,800,8
2018-05-09 12:00,120,+4121353333,+41792826527,192.168.101.10,192.168.101.151,800,8.1
2018-05-09 12:00,120,+4121353333,+41792826527,192.168.101.10,192.168.101.151

License Hints

Write state to db (count of cc cchannels for license purposse)

php /var/www/html/php/run.php saveCallStatistics

License Details

detail on channels count usage

php /var/www/html/php/run.php checkLicense -v
php /var/www/html/php/run.php checkLicense -v 2

license file

cat /var/www/html/key.php

Get current license token from db

mysql> select content from voipmonitor.system where type='license token';

SCRIPTs for better run control

ALERTS

When alerts taking longer time to process then interval is schedulled it can cause out of memory or high load to CPU after some time because same alert is processed multipletimes for various time ranges. Following script allows manual run of disabled alert in GUI via crontab - its benefit is that it will run multiple alerts at same time unlike normal run where is processed one alert by one.

Follow this link script-for-multi-Instances-alerts-processing


Batch download for more then 1000CDRs