Table of Contents

Telephony Billing

It is possible to apply rates to call and set a billing credit limit. The credit units are calculated in real time.

The dialplan rule can control the action to execute when billing credit limit is reached or no credit is available.

Rates

To add a new rate group, go to the menu Telephony → Rate, click add:

Rate rule

To add a new rate rule go to the menu Telephony → Rate, select the rate and then click add under the rate rule list table.

For example, create a rule to match all calls that begin with 00 and increase every minute 1 credit unit, it calculates the credit unit per 1 second:

Billing

Add a new billing for the clientX with 50credits units that are reset every day. Go to the menu Telephony → Rate, under the tab menu Billing and click add:

Dialplan rule

Create a rule to match all calls that begin with 00 (international prefix) and apply the credit limit to account ${accountcode} value.

Add a new dialplan rule under the menu Telephony → Diaplan, select the context and add a new extension rule:

Dialplan rule hangup on no credit

Create a rule to match all calls that begin with 00 (international prefix) and apply the credit limit to account ${accountcode} value, if no credit hangup the call.

Add a new dialplan rule under the menu Telephony → Diaplan, select the context and add a new extension rule: