Difference between revisions of "LCR/Tariff change based on call prefix"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 23: Line 23:
To accomplish this we need:
To accomplish this we need:


* Create Provider
* Create 3 Providers with same connection settings:
* Create 3 Tariffs:
** Bad_Provider
** Tariff_Bad
** Normal_Provider
** Tariff_Normal
** Good_Provider
** Tariff_Good
 
* 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
* Enter/Import appropriate rates to these Tariffs
* Create Location with following Rules:
* Create Location with following Rules:


.. to be continued
[[Image:lcr_tariff_by_prefix_localization.png]]
 
* Assign User_Normal_Tariff and Normal_LCR to User
 
That's it.
 
Now when user dials E164 numbers he will be using Normal route, when 00 - bad route, when 000 - Good route.

Revision as of 09:15, 26 February 2009

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


You have to create a provider, tarrif, 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 tarrif, 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 tarrif or LCR, assign specified Tarrif 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 with following Rules:

Lcr tariff by prefix localization.png

  • Assign User_Normal_Tariff and Normal_LCR to User

That's it.

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