One of the most important and time consuming parts of managing A2Billing is keeping the rate cards up to date.
Here is a php script designed to download a voip.ms rate file and create a rate card in A2Billing from it. It’s designed to work with the latest version of A2Billing – version 1.9.3
If you copy and paste the script in to a file on your A2Billing server called /tmp/voip.php you can then run it by doing –
Have a read through the comments, especially at the top of the script, as there a few settings you will need to change – especially the database connection details. Always take a backup of your A2Billing database before running an import, and make sure you check the rates after import to ensure they are as expected.
Also make sure that your base currency is set to ‘usd’ as all voip.ms rates are in USD.