Skip to content

Changes dial permissions in a domain based on a voipmonitor quota

License

Notifications You must be signed in to change notification settings

kselkowitz/BALD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Changes dial permissions in a domain based on a voipmonitor quota

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages