One of the hardest task when configuring VoIP billing is the selling price assignment. Lucky for everyone, LCR for FusionPBX with FreeSWITCH has a way to suggest selling prices. Please follow these steps:

  1. Set up all your VoIP Carriers with your buying prices. Don't forget to set up your channel number per carrier
  2. Set up your prefix break down. This is a purely personal or business call. Some people prefer to use 4 digit breakdown, like 1613, 1464 and other people prefer 6 digits like 1613800, 1613700. To make this task easier, we provide a breakdown example:
  3. Edit your breakdown as you need, price does not matter at this moment
  4. Go to App->LCR menu and import your breakdown as a selling price
  5. Call the script by accessing it directly, for example, http://pbx.okay.com.mx/fusionpbx/app/lcr/lcr_auto_prices.php (the path may change depending on your FusionPBX deployment). You will see information about pricing being updated. If for a reason you see "access denied", edit the group permission and select lcr_delete permit. Log out and Log in from FusionPBX to get the new policies applied.

Logic

Automatic assignment uses a special average. In other words:

Fórmula de asignación de precios

Where:

  • n is the total number of carriers
  • i is the current carrier
  • buyingprice_i (prefix) is the buying price of carrier i for the prefix
  • channels_i is the number of channels you got from that carrier
  • sellingprice(prefix) is the suggested selling price

Limitations

This script will overwrite all prices.

About OKay

An IT Company whose mission is generating value with low cost of ownership.

We will offer you Linux based solutions that satisfy your needs. We focus on VoIP & Linux, but we are up for any other challenge you may want to bring.