forked from kselkowitz/BALD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme
22 lines (14 loc) · 1.19 KB
/
readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Billing Access Limit per Domain
The attached script will change dial permissions for a domain on a netsapiens SNAPsolution softswitch based on voipmonitor reaching a billing limit. See https://www.voipmonitor.org/doc/Billing for more info.
1) Update your voipmonitor GUI so you get the new feature to aggregate costs by domain.
2) Load the script to your QoS server
3) Make the script executable
chmod +x billinglimit.php
4) In your Alert with type Watchdog: billing over quota
Ensure summary is NOT checked
Ensure domains is checked in the "only by" section
In the external script field enter the path to your script and filename e.g. /home/ubuntu/billinglimit.php
CYA
This sample code is NOT provided, developed, or supported by netsapiens.
This code is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.