Pricing fixups

This commit is contained in:
DanB
2013-04-14 09:47:35 +02:00
parent a9580985af
commit 660b7a5d3f

View File

@@ -86,8 +86,8 @@ For importing the data into CGRateS database we are using cvs files. The import
The rest of this section we will describe the content of every csv files.
Rates profile
--------------
4.2.1. Rates profile
~~~~~~~~~~~~~~~~~~~~
The rates profile describes the prices to be applied for various calls to various destinations in various time frames. When a call is made the CGRateS system will locate the rates to be applied to the call using the rating profiles.
@@ -114,8 +114,8 @@ RatesTimingTag
ActivationTime
Multiple rates timings/prices can be created for one profile with different activation times. When a call is made the appropriate profile(s) will be used to rate the call. So future prices can be defined here and the activation time can be set as appropriate.
Rates timing
~~~~~~~~~~~
4.2.2. Rates timing
~~~~~~~~~~~~~~~~~~~
This file makes links between a ratings and timings so each of them can be described once and various combinations are made possible.
@@ -137,8 +137,8 @@ Weight
If multiple timings cab be applied to a call the one with the lower weight wins. An example here can be the Christmas day: we can have a special timing for this day but the regular day of the week timing can also be applied to this day. The weight will differentiate between the two timings.
Rates
~~~~
4.2.3. Rates
~~~~~~~~~~~~
Defines price groups for various destinations which will be associated to various timings.
+---------------------+-----------------+------------+-------+-------------+
@@ -161,8 +161,8 @@ Price
BillingUnit
The billing unit expressed in seconds
Timings
~~~~~~
4.2.4. Timings
~~~~~~~~~~~~~~
Describes the time periods that have different rates attached to them.
+-----------------+--------+-----------+-----------+----------+
@@ -188,8 +188,8 @@ WeekDays
StartTime
The start time for this time period. \*now will be replaced with the time of the data importing.
Destinations
~~~~~~~~~~~
4.2.5. Destinations
~~~~~~~~~~~~~~~~~~~
The destinations are binding together various prefixes / caller ids to define a logical destination group. A prefix can appear in multiple destination groups.
@@ -206,8 +206,8 @@ Tag
Prefix
The prefix or caller id to be added to the specified destination.
Account actions
---------------
4.2.6. Account actions
~~~~~~~~~~~~~~~~~~~~~~
Describes the actions to be applied to the clients/users accounts. There are two kinds of actions: timed and triggered. For the timed actions there is a scheduler application that reads them from the database and executes them at the appropriate timings. The triggered actions are executed when the specified balance counters reach certain thresholds.
@@ -259,8 +259,8 @@ ActionsTag
Weight
Specifies the order for these triggers to be evaluated. If there are multiple triggers are fired in the same time the ones with the lower weight will be executed first.
Action timings
~~~~~~~~~~~~~
4.2.7. Action timings
~~~~~~~~~~~~~~~~~~~~~
+--------------+------------+------------------+--------+
| Tag | ActionsTag | TimingTag | Weight |
@@ -279,8 +279,8 @@ TimingTag
Weight
Specifies the order for these timings to be evaluated. If there are multiple action timings set to be execute on the same time the ones with the lower weight will be executed first.
Actions
~~~~~~
4.2.8. Actions
~~~~~~~~~~~~~~
+--------+-------------+------------+-------+----------------+-----------+------------+---------------+--------+
| Tag | Action | BalanceTag | Units | DestinationTag | PriceType | PriceValue | MinutesWeight | Weight |