PortSIP PBX integrates a complete Call Accounting System through which you can generate a wide variety of reports manually and automatically.
After signing in as a tenant administrator, select Billing > Settings from the menu. From there, you can enable or disable the billing feature.
Enable Call Billing: Turn it on to enable the billing feature.
Billing Profile: This feature allows you to set billing to be either from the tenant or from a user.
Charge Mode: This feature allows you to choose between online and offline charging. For online charging, the PBX will check every call that matches the billing rule to see if the balance is sufficient, the balance will be deducted, and insert the cost into the CDR field once the call is completed. If the billing profile is set to the tenant, it will check the tenant’s balance; if it is set to extension, it will check the extension’s balance. For offline charging, the PBX will not check the balance but will calculate the cost and insert it into the CDR field.
Current Balance: This displays the current balance of the tenant. It is read-only and cannot be modified.
Recharge: This allows you to recharge the tenant’s balance.
From the menu, select Call Manager > Users. Edit a user and click on the “Balance” tab. On that page, the tenant administrator can recharge a user’s balance.
Select Billing > Billing Rules from the menu. From there, you can create, modify, delete, import, or export billing rules.
PortSIP PBX uses the called number to match the billing rule prefix; that call will be billed if the prefix is matched. For billing rules, the prefix cannot be duplicated.
There are a few parameters that need to be entered when creating the billing rule:
- FreeSeconds - in seconds
- ConnectFee - in monetary units
- PostCallSurcharge - in percent (0.01 means 1%)
- GracePeriod - in seconds
- Price' - in monetary units per minute
- PriceN - in monetary units per minute
- Interval' - in seconds
- IntervalN - in seconds
The simplest parameters are ConnectFee, which is a fixed amount of money charged for each successful call regardless of its duration; and PostCallSurcharge which is additional charge applied. It is calculated on the percentage of the amount charged, that is if the call costs 1 dollar and the PostCallSurcharge is 0.01, the actual amount charged will be 1.01 dollar.
The following picture illustrates how the calls are charged. The process starts with comparing value of the GracePeriod parameter with the duration of the call. The GracePeriod parameter determines the minimum duration of the call that will be subject of charge. Calls with durations of less than this value are not charged at all. GracePeriod value of 0 second and 1 second provide almost the same behavior except that when the GracePeriod is 1 second, connected calls with zero duration won't be charged with connection fee.
A ConnectFee is charged immediately upon connection, and all calls shorter than Interval’ will be rounded to Interval1 seconds. FreeSeconds are granted after the Interval1, so this part of the call is not charged, and calls shorter than (Interval1 + FreeSeconds) will be rounded to Interval1 seconds. If call is longer than (Interval1 + FreeSeconds) remaining portion will be rounded up to multiple IntervalIN seconds. After that, the PostCallSurcharge is applied to the total amount charged.
The call illustrated in the figure will be charged using the following formula:
- Connect fee - monetary units
- Price 1 - monetary units
- Price N - monetary units
- Interval 1 - seconds
- Interval N - seconds
- Post call surcharge - fractional based on the setting in the Tariff/Destination Set (E.g. for 10% fractional = 0.1)