LCR/Tariff change based on call prefix

From Kolmisoft Wiki
Revision as of 13:55, 28 September 2009 by Admin (talk | contribs)
Jump to navigationJump to search

Main purpose of this function is to allow route call through some Provider(s) based on call prefix.


You have to create a provider, tariff, LCR (where specified provider have to be), and user with his Device. And most important is localization rule or rules. It should be applied per device basis (Device settings -> Location), make sure specified device has correct rule applied. It must be noted that specified rules has Higher priority than global rules.

  • 1) Create new tariff, provider, LCR, user and device
  • 2) Assign newly made provider to new LCR.
  • 3) Create new localization rule, name for example "test1".
  • 4) Assign device to location "test1"
  • 5) Now edit "test1" rule, it should be done like with normal localization rules, but when you are creating localization rule based on tariff or LCR, assign specified Tariff or LCR to correct place.

You can find more info how to make rules in Number Manipulation


Example

Lets say we have Provider which provider 3 quality routes: bad-cheap/normal/good-expensive.

  • Bad-cheap route is selected when dialing E164 number with prefix 00
  • Normal route is dialed when dialing normal E164 number
  • Good-expensive route is selected when dialing E164 number with prefix 000

To accomplish this we need:

  • Create 3 Providers with same connection settings:
    • Bad_Provider
    • Normal_Provider
    • Good_Provider
  • Create 3 Tariffs for Providers:
    • Provider_Tariff_Bad
    • Provider_Tariff_Normal
    • Provider_Tariff_Good
  • Enter/Import appropriate rates to these Tariffs
  • Assign these Tariffs to Providers
  • Create 3 LCR and assign appropriate Providers here:
    • Bad_LCR - assign Bad_Provider here
    • Normal_LCR - assign Normal_Provider here
    • Good_LCR - assign Good_Provider here
  • Create 3 Tariffs for Users:
    • User_Tariff_Bad
    • User_Tariff_Normal
    • User_Tariff_Good
  • Enter/Import appropriate rates to these Tariffs
  • Create Location BadNormalGood with following Rules:

Lcr tariff by prefix localization.png

  • Assign User_Normal_Tariff and Normal_LCR to User
  • Assign all User's Devices to Location BadNormalGood

That's it.

Now when user dials E164 numbers he will be using Normal route, when 00 - bad route, when 000 - Good route.