TNG Custom Rate Configuration and Format

Moderators: Leon van Heerden, Luanda_Junzi, Belinda Frick, Lee Hendricks

TNG Custom Rate Configuration and Format

Postby Belinda Frick » Mon Nov 15, 2010 1:49 pm

Configuring Custom Rates

The first 3 fields are: Zone, Schedule & Billing Type

    Zone - This is the Zone number that is used by the exchange file to cost a call on.
    To see what the zone is you can do a 'Cost Call Calculation' in TNG for a number and it will display the zone for the number entered.

    Custom Rate - Zones.png


    NOTE: In this example a 083 number was costed. Note the zone is M3. Use M3 as zone to setup a custom rate for this number prefix. For each prefix you need custom rates for you need to find the zone.

    You need to setup the Custom rate for each zone.

    Also see: Zones to use for TNG and Custom rates

    Schedule - The schedule ID that it must use from the Time Schedule File.
    Billing Type - Two billing types are available, U for Unit, or S for per Second.

The rest of the file consists of 3 rate sections each consisting of the following:

    Min - The Minimum charge for a call
    Max - The Maximum charge for a call

    Cost1 - If Billing type set to U, then this is the cost for the first Unit.
    If Billing type set to S, this is the cost per second.
    Secs1 - If Billing type is set to U, this is the duration of the first Unit.
    If Billing is set to S, then this is how many seconds it should charge this rate for.

    Cost2 - If Billing type set to U, then this is the cost for the second Unit.
    If Billing type set to S, this is the cost per second.
    Secs2 - If Billing type is set to U, this is the duration of the second Unit.
    If Billing is set to S, then this is how many seconds it should charge this rate for.

    Cost3 - If Billing type set to U, then this is the cost for the third Unit.
    If Billing type set to S, this is the cost per second.
    Secs3 - If Billing type is set to U, this is the duration of the third Unit.
    If Billing is set to S, then this is how many seconds it should charge this rate for.

    Cost4
    - If Billing type set to U, then this is the cost for the forth and following Units.
    If Billing type set to S, this is the cost per second.
    Secs4 - If Billing type is set to U, this is the duration of the forth Unit.
    If Billing type is S, this will be repeated through the rest of the call duration.
    The costing process works on charge costX for SecsX and then costX+1 for SecsX+1 and so on.
    When it gets to the Cost4 it repeats this cost throughtout the rest of the call duration.
    If a SecsX value is 0 or absent or invalid, it will use the previous cost values for the remainder of the call.
    If the following secs is 0 or absent it will use the prior cost value.


RATES EXAMPLES:

Code: Select all
Zone|Schedule|BillType|Min1|Max1|1Cost1|1Secs1|1Cost2|1Secs2|1Cost3|1Secs3|1Cost4|1Secs4|Min2|Max2|2Cost1|2Secs1|2Cost2|2Secs2|2Cost3|2Secs3|2Cost3|2Secs3|2Cost4|2Secs4|
A   |T1      |U       |0.50|0   |0.50  |60    |0.25  |30    |0     |0     |0     |0     |0.40|5.00|0.40  |60    |0     |0     |0     |0     |0     |0     |0     |0     |

This will use time schedule T1 and per unit billing as follows:

Rate1 will charge 50 cents for the first minute or part thereof and then 25 cents per 30 seconds intervals e.g
a call of from 1 to 60 seconds will cost 50 cents, a call of 61 to 90 seconds will cost 75 cents.

Rate2 will charge 40 cents for the first minute and every minute thereafter and there is a maximum call charge of 500 cents.(5Rand, Dollars)

--------------------------------------------------------------------------------

Code: Select all
Zone|Schedule|BillType|Min1|Max1|1Cost1|1Secs1|1Cost2|1Secs2|1Cost3|1Secs3|1Cost4|1Secs4|Min2|Max2|2Cost1|2Secs1|2Cost2|2Secs2|2Cost3|2Secs3|2Cost3|2Secs3|2Cost4|2Secs4|
A   |T2      |S       |0.20|0   |0.005 |60    |0.001  |240  |0.01  |1     |0     |0     |0   |0   |0.0033|1     |0     |0     |0     |0     |0     |0     |0     |0     |


This will use time schedule T1 and per second billing as follows:

Rate1 will charge 0.5 cents for the the first 60 seconds and then 0.1 cents per second for
the next 4 minutes(240seconds) and thereafter 1 cent per second.
There is also a minimum charge of 20 cents for a call. e.g a call of from 1 to 40 seconds
will cost 20 cents and then per second billing comes in.

Rate2 has no maximum or mimimum and charges 0.33 cents per second.

--------------------------------------------------------------------------------
TIME SCHEDULES

The Time File consists of the following:

Time Table Nr : The schedule number that is referenced by the Zone Rate File.
DaysofweekUsed(SMTWTFS) : The days of the week that it is active indicated by a Y for Yes or a N for N and the first day as Sunday.
RateNumberToUse : A value between 1 and 3 that indicates which rate section it must use in the Zone Rate File.
StartTime: The Time in HH:MM format when the rate becomes active.
EndTime : The Time in HH:MM format when the rate becomes inactive.

TIME EXAMPLES:

N.B : If a rate entry is not matched, it will automatically use Rate2.

Code: Select all
TimeTableNr|DaysofWeekUsed(SMTWTFS)|RateNumberToUse(INTEGER 1..3)|StartTime(HH:MM)|EndTime(HH:MM)|
T1         |NYYYYYN                |1                            |07:00           |20:00         |
T1         |NNNNNNY                |1                            |08:00           |13:00         |
T1         |YNNNNNN                |3                            |00:00           |23:59         |
T1         |NYNNNNN                |3                            |00:00           |07:00         |


This means from Monday to Friday 07:00 to 20:00 schedule T1 must use Rate 1 and on Saturdays 08:00 to 13:00 Rate 1 as well.
On Sundays the whole day and Mondays till 07:00 rate 3 will be used.
Any other time not within this range will use rate2.

Typically you will only need something like this.
Code: Select all
TimeTableNr|DaysofWeekUsed(SMTWTFS)|RateNumberToUse(INTEGER 1..3)|StartTime(HH:MM)|EndTime(HH:MM)|
T1         |NYYYYYN                |1                            |07:00           |20:00         |


meaning Rate 1 between 7am and 8pm weekdays and Rate2 any other time.

Note:

    Your custom ratebook will be saved as a '.dll ' file in the folder:
    C:\Program Files\datatex\tng\rates
    It will be available from the drop-down selection under 'Trunk Configuration'.


    If you are running TNG at more that one branch and they all use the same custom rates, you will need to add the ratebook to each TNG. Note that you cannot copy the ratebook file from one TNG to another. You will need to edit the ratebook and copy the text, then create a new custom ratebook at the other branch and copy the text to that custom ratebook.
How do I select the new ratebook?

You do not have the required permissions to view the files attached to this post.
Belinda Frick
 
Posts: 3808
Joined: Fri Nov 12, 2010 4:25 pm

Re: TNG Custom Rate Configuration and Format

Postby Belinda Frick » Wed May 22, 2013 2:34 pm

New feature added for Custom rates:

You can now configure some zones and use a default rates for all the unconfigured zones - refer to forum post: Re: Zones to use for TNG and Custom rates
Belinda Frick
 
Posts: 3808
Joined: Fri Nov 12, 2010 4:25 pm


Return to Support Archive's (TNG)

Who is online

Users browsing this forum: No registered users and 1 guest

cron