Difference between revisions of "Routing by Percent"

From Kolmisoft Wiki
Jump to navigationJump to search
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
''This functionality is available from [[MOR v0.8 documentation | MOR 0.8]]''
=About=
 
<!---This functionality is available from MOR 8--->
This type routing lets route by percentage value of some Provider.
This type of routing selects a route by percentage value of Providers.
 
<br><br>
It is similar to Priority based routing except that here Providers are selected randomly with greater or lesser probability.
==Usage==


To set this feature go to '''SETTINGS –> Billing –> LCR'''
<br><br>
[[File:lcr_path.png]]
<br><br>
Press [[Image:icon_add.png]]'''New LCR''' to create new LCR or click on [[image:icon_edit.png]] icon on existing LCR and set the order type of percent.
<br><br>
It is similar to [[Call Routing by priority (Manual LCR) | Priority]]-based routing, except that here Providers are selected randomly with greater or lesser probability.
<br><br>
[[Image:route_by_percent.png]]
<br><br>
== Example 1 ==
== Example 1 ==


For example we have 3 Providers with such preferences:
For example, we have three providers with the following preferences:


  A - 50%
  A - 50%
Line 13: Line 23:
  C - 20%
  C - 20%


That means that:
This means that:


* Provider A will be chosen '''FIRST''' with 50% probability
* Provider A '''will be chosen FIRST''' with 50% probability.
* Provider B will be chosen '''FIRST''' with 30% probability
* Provider B '''will be chosen FIRST''' with 30% probability.
* Provider C will be chosen '''FIRST''' with 20% probability
* Provider C '''will be chosen FIRST''' with 20% probability.


MOR orders these Providers using following algorithm:
MOR orders these providers using the following algorithm:


At the first step it randomly selects first Provider, 50% it is chance that Provider A will be selected, 30% - B, 20% - C.
As a first step, it randomly selects the first provider. There is a 50% chance that Provider A will be selected, 30% for B, and 20% for C.


Lets say randomly selected Provider is B.
Lets say the randomly selected Provider is B.


At the second step MOR selects from remaining Providers:
At the second step, MOR selects from the remaining providers:


  A - 50%
  A - 50%
  C - 20%
  C - 20%


It is much greater chance that A will be selected (randomly) then C. So lets say A is selected.
There is a much greater chance that A will be randomly selected than C. So let's say A is selected.


Final order of our Providers will be:
The final order of our providers will be:


  B - A - C
  B - A - C


Every time order is RANDOMLY! done the same way using percent values for probability.
Every time, the order is RANDOMLY done in the same way, using percent values for probability.
 
So we can get various results, such as A-B-C, A-C-B, B-A-C, C-A-B etc, BUT, following mathematical reasoning, when we make huge amount of tries and huge amount (going till infinity) sets will follow such rule: In first step selected first Provider 50% of the cases will be A, 30% - B, 20% - C.  


So we can get various results, such as A-B-C, A-C-B, B-A-C, C-A-B etc. BUT, following mathematical reasoning, when we make a huge amount of tries (going till infinity), sets will follow the rule in the first step: the Provider selected first will be A in 50% of the cases, B in 30%, and C in 20%.
<br><br>
== Example 2 ==
== Example 2 ==


To better illustrate the method, lets take simpler situation. We have 2 Providers with such percentages:
To better illustrate the method, let's take a simpler situation. We have two providers with these percentages:


  A - 99%
  A - 99%
  B - 1%
  B - 1%


Now Provider A will be selected first 99% of the time, e.g. when we have many ordered lists, it will look like:
Provider A will be selected first 99% of the time, so that when we have many ordered lists, they will look like:


  A-B, A-B, A-B, A-B, A-B, ........., '''B-A''', A-B,........A-B, ..........
  A-B, A-B, A-B, A-B, A-B, ........., '''B-A''', A-B,........A-B, ..........


E.g. Probability, that Provider order will be B-A is just 1%.
The probability that the provider order will be B-A is just 1%.
 
<br><br>
 
== Fail-over ==
== Fail-over ==


This LCR ordering still keeps Fail-Over intact.  
This LCR ordering still keeps Fail-Over intact.  


E.g. after we have ordered Provider list, and if first Provider in list fails - second will be dialed and so on.
That is, after we have ordered the provider list, if the first provider in the list fails, the second will be dialed and so on.
<br><br>
=See also=
 
* [[LCR]]
* [[Call Routing by price]]
* [[Call Routing by priority (Manual LCR) | Call Routing by priority ]]
* [[Call routing per destination basis]]
* [[How to add Provider to LCR]]

Latest revision as of 16:23, 10 April 2013

About

This type of routing selects a route by percentage value of Providers.

Usage

To set this feature go to SETTINGS –> Billing –> LCR

Lcr path.png

Press Icon add.pngNew LCR to create new LCR or click on Icon edit.png icon on existing LCR and set the order type of percent.

It is similar to Priority-based routing, except that here Providers are selected randomly with greater or lesser probability.

Route by percent.png

Example 1

For example, we have three providers with the following preferences:

A - 50%
B - 30%
C - 20%

This means that:

  • Provider A will be chosen FIRST with 50% probability.
  • Provider B will be chosen FIRST with 30% probability.
  • Provider C will be chosen FIRST with 20% probability.

MOR orders these providers using the following algorithm:

As a first step, it randomly selects the first provider. There is a 50% chance that Provider A will be selected, 30% for B, and 20% for C.

Lets say the randomly selected Provider is B.

At the second step, MOR selects from the remaining providers:

A - 50%
C - 20%

There is a much greater chance that A will be randomly selected than C. So let's say A is selected.

The final order of our providers will be:

B - A - C

Every time, the order is RANDOMLY done in the same way, using percent values for probability.

So we can get various results, such as A-B-C, A-C-B, B-A-C, C-A-B etc. BUT, following mathematical reasoning, when we make a huge amount of tries (going till infinity), sets will follow the rule in the first step: the Provider selected first will be A in 50% of the cases, B in 30%, and C in 20%.

Example 2

To better illustrate the method, let's take a simpler situation. We have two providers with these percentages:

A - 99%
B - 1%

Provider A will be selected first 99% of the time, so that when we have many ordered lists, they will look like:

A-B, A-B, A-B, A-B, A-B, ........., B-A, A-B,........A-B, ..........

The probability that the provider order will be B-A is just 1%.

Fail-over

This LCR ordering still keeps Fail-Over intact.

That is, after we have ordered the provider list, if the first provider in the list fails, the second will be dialed and so on.

See also