Since 1.3.0, the Billing for FusionPBX has support for deals. A deal is an easy way to overwrite the rate of certain destinations based on some conditions. You will be able to offer deals such as:
Configure the deals_realtime default setting.
Go to the FusionPBX Billing application, click on the Deals button and by clicking on the + sign, you will be able to add a deal.
You will have your first deal configured. The next step is to assign a given deal to a billing profile.
When a call is placed, the call direction and the prefix will be checked. If these match, the used minutes will be calculated, if the used minutes by a given billing profile is less or equal than the specified in the deal, then the new rate will be applied.
To assign a deal to a giving billing profile, click on the + sign that is inside the deal row. You will see a list of the actual billing profiles, just select all the ones you want to apply.
After you have successfully selected the desired billing profiles, you will see them listed.
There are two ways to apply the deals: real-time or crontab. The real-time approach will evaluate and overwrite the price (if applicable) right away when the call is hung up. The crontab approach will apply a price correction through the billing_crontab.php script one day before the billing day. Here are some implications and actions per approach:
When you are using parent-child billing profiles, the children benefit from the parent' deals. Deals are selected following the next criteria: