Billing Logic

From Kolmisoft Wiki
Revision as of 21:12, 25 March 2009 by Mindaugas (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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's 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.