Difference between revisions of "Billing Logic"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 8: Line 8:
* 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 - 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 LCR type is 'Price' then all Providers are sorted that first Provider would have lowest Rate to that Destination.
* Then system tries to dial number using first Provider.
* Then system tries to dial number using first Provider.
* If call successful - system does billing and finishes session.
* If call successful - system does billing and finishes session.

Revision as of 12:05, 28 September 2009

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 User's A Tariff and LCR.
  • Then takes all Providers which belong to that LCR.
  • For every Provider system takes their Tariff.
  • From every Tariff based on Prefix - Rate is taken.
  • If LCR type is 'Price' then all Providers are sorted that first Provider would have lowest Rate to that Destination.
  • Then system tries to dial number using first Provider.
  • If call successful - system does billing and finishes session.
  • If call unsuccessful - system tries to dial next Provider in a row.
  • It repeats until call is successful or no Providers left.
  • When call ends - system bills it.

The whole process in MOR is much more complex. This example covers bare minimum to take grasp of how the billing system works.




See also