One way A2Billing supports least cost routing using multiple providers is when each provider’s data have the exact same length prefixes for each area. But most (probable 95%) of the time this is not the case so just importing providers rates and expecting a2billing to find the least cost route will give one a very sad disappointment. Many providers will have many of the same prefixes but almost all will have many that are different length for same areas.
Example:
- Provider A gives USA rates by area code and prefix 812 which is three digits. (Rate = 0.015)
- Provider B gives USA rates by area code and prefix 812739 which is six digits. (Rate = 0.01)
- Provider C gives USA rates by area code and prefix 8127392 which is 7 digits. (Rate = 0.03)
The best way at the moment to use the A2Billing least cost routing is by converting all the prefixes for all the providers to match the longest used prefix for any giving area.
Solution:
Here is a free program to help converting prefixes from different providers to the same format. I can send sources on demand (Created with Delhi 7).
http://www.data4ict.com/download/lcr.zip
User manual:
- Create a csv file with longest prefixesFormat: Prefix,Destination
- Create a csv file with the rates of your provider (One csv file by provider)Format: Prefix,Destination,Price
- Generate the LCR output table
- Export the generated file (csv format)
Demo:
Here are four files (Prefixes, Provider1, Provider2, Provider3) to test the program.
http://www.data4ict.com/download/lcr_demo.zip
No comments:
Post a Comment