Internal support hints: Difference between revisions
Jump to navigation
Jump to search
(Created page with " == '''Important note:''' == Following articles are designed to be used by internal support team. You can find hints usable but please use it on testing only.") |
No edit summary |
||
Line 1: | Line 1: | ||
== | ==Important note: == | ||
Following articles are designed to be used by internal support team. You can find hints | 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 |
Revision as of 12:27, 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