Load balance routing to 2 different SIP trunks

We have 2 SIP trunks terminated in the PBX. I would like 50% of calls route through 1 SIP trunk and 50% to another. In case 1 SIP trunk fail, 100% calls will route through the remaining trunk.

Is there any way to accomplish this?

I am thinking “Outbound Route Permissions” unsupported module may be able to achieve it by group a set of extensions to deny access the route, and prepend the prefix code to use another route, and remove the prefix. However, I don’t want to use unsupported modules in the production environment.

send half your outbound numbers, say starting with 0-4, through 1st with 2nd as a backup and numbers starting w/5-9 through 2nd w/1st as backup. you might need to adjust the split for your particular dialing patterns.

I used this some time ago and it worked http://projects.colsolgrp.net/projects/trunkbalance/wiki/User_Manual. I have not used it with Fpbx 2.9 or 2.10. If you use it let us know how well it works.