Overview
Least Cost Routing (LCR) allows users to intelligently select the ITSP provider to route the traffic based on the cost for a certain destination number.
This feature works in tandem with the SIP Trunking functionality provided by NSC. To deploy this feature, the following elements are required:
- Multiple rate lists provided by your ITSP
- Each rate list provided should be formatted as a CSV file which can be uploaded into NSC (you can convert spread sheet documents to CSV easily using the 'Save As' menu from your spread sheet software)
- SIP Trunk(s) to the ITSP should be created already
- If an ITSP provides a rate list and more than one SIP Trunks using this rate list, a distribution list needs to be created for those SIP trunks (See "Configuration -> Load Balancing" in the web interface menu)
Prepare the rate list CSV files
The contents of the CSV file are expected to be divided in 8 columns:
- digits (mandatory): Matching digits that are used to compare the destination number in routing plans using the "lcr" application
- rate (mandatory): Decimal value to indicate a relative cost of using this entry
- lead_strip (optional): How many digits to strip off the start of the matching number, the stripping is done after matching the digits
- trail_strip (optional): How many digits to strip off the end of the input number, the stripping is done after matching the digits
- prefix (optional): Digits to add in front of the the destination number after stripping has been performed
- suffix (optional): Digits to add at the end of the destination number after stripping has been performed
- date_start (optional): Begin date when the rate is valid
- date_end (optional): Date when the rate stops being valid
See below 2 CSV example files for "Carrier A" and "Carrier B"
SAMPLE CSV → LCR-sample.csv
Create LCR Carrier
Using the LCR Database
Basic Dial Plan
Advanced Dial Plan
<condition field="destination_number" expression="^(.*)$"> |
Using Load Balancing List
Update of rate list for a specific LCR carrier
- Prepare the updated rate list CSV file
- Remove the out-of-date "Carrier Rates File", then all the rates related to this LCR carrier will be removed from internal database
- Upload the new CSV file