Difference between revisions of "Billing Logic"

From Kolmisoft Wiki
Jump to navigationJump to search
(New page: In order to successfully use MOR for dialing out and billing some rules must be met. Best way to show this is by example. * User A dials number trying to reach User B. * System takes Use...)
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
In order to successfully use MOR for dialing out and billing some rules must be met.
In order to use MOR successfully for dialing out and billing, some rules must be followed.  


Best way to show this is by example.
The best way to show this is by example.  


* User A dials number trying to reach User B.
 
* System takes User's A Tariff and LCR.
* User A dials a number, trying to reach User B.  
* Then takes all Providers which belong to that LCR.
* The system then takes all Providers that belong to that LCR.
* The system takes the Tariff of every Provider.  
* For every Provider system takes their Tariff.
* For every Provider system takes their Tariff.
* From every Tariff based on Prefix - Rate is taken.
* From every Tariff (based on Prefix), the Rate is taken.
* If LCR's type is 'Price' then all Providers are sorted that first Provider would have lowest Rate to that Destination.
* If the LCR type is 'Price', then all the Providers are sorted to identify the Provider with the lowest Rate to that Destination. This Provider becomes the first Provider.
* Then system tries to dial number using first Provider.
* Using the first Provider, the system tries to dial the number.  
* If call successful - system does billing and finishes session.
* If the call is successful, the system does the billing and finishes the session.  
* If call unsuccessful - system tries to dial next Provider in a row.
* If the call is unsuccessful, the system tries to dial the next Provider.  
* It repeats until call is successful or no Providers left.
* The system goes on calling until the call is successful or no Providers are left.
* When call ends - system bills it.
* When the call ends, the system bills it.  
 
 
This example provides only a basic illustration of how the billing system works. The whole process in MOR is much more complex.
 
 


The whole process in MOR is much more complex. This example covers bare minimum to take grasp of how the billing system works.
<br><br>
== See also ==
* [[Call explained]]

Latest revision as of 02:31, 30 April 2010

In order to use MOR successfully for dialing out and billing, some rules must be followed.

The best way to show this is by example.


  • User A dials a number, trying to reach User B.
  • The system then takes all Providers that belong to that LCR.
  • The system takes the Tariff of every Provider.
  • For every Provider system takes their Tariff.
  • From every Tariff (based on Prefix), the Rate is taken.
  • If the LCR type is 'Price', then all the Providers are sorted to identify the Provider with the lowest Rate to that Destination. This Provider becomes the first Provider.
  • Using the first Provider, the system tries to dial the number.
  • If the call is successful, the system does the billing and finishes the session.
  • If the call is unsuccessful, the system tries to dial the next Provider.
  • The system goes on calling until the call is successful or no Providers are left.
  • When the call ends, the system bills it.


This example provides only a basic illustration of how the billing system works. The whole process in MOR is much more complex.




See also