Specifying how many monthly minutes a trunk can be used

My main sip connection gives me 500 free calls per month. Once this time limit has been met I would like FreePBX to stop using this trunk and rather use my VoipRaider account.

Any ideas as to how I go about achieving this?

That should read 500 free minutes per month (not calls)

There is a 3rd party module maintained by POSSA called Trunk Balancing.

http://pbxinaflash.com/community/index.php?threads/trunk-balancing-the-freepbx-module.13916/

If you need help, posting questions to the thread above will get a speedier response. To my knowledge, this module has not been tested on the FreePBX distro, nor have we received any reports. If you are running the FrePBX distro we would like to hear your experiences.