RateAndForward Bundle

Code

Code of the Bundle as seen in the GUI.

RATE-FORWARD

Description

Short description of the Bundle, e.g. what does it aim at.

Rating uses two different number plans, and the results are added up.

Business scenario

Two different prices have to be added up in order to reach a final price, and one of the prices is actually already defined on another number plan. This bundle is made in order to be able to reuse some prices, instead of defining them again.

Applies to

Types of traffic (plan elements) that the bundle should be associated with.

All kinds of usage

Core info

Is this bundle available in Core? If yes, specify which version.

8.11 and later

Values

The meaning and use of the values of this bundle are as follows:

Value1

N/A

Value2

N/A

Value3

N/A

Value4

N/A

Logic

The RateAndForward Bundle sends a billing record twice through the rating process: once using the rating code and rating key set on the billing record, and once using the rating code and rating key set on the bundle, if present (at least one of the parameters RATINGCODE and RATINGKEY have to be set). The results of those two rating processes are accumulated, and will represent the rated value of the billing record.

It is a prerequisite that the two rating processes each return only one invoice detail line, otherwise the RateAndForward Bundle cannot be used (a BundleConfigurationException with message "Configuration problem" will be thrown in this case). This means a.o. that the parameter RATING.PARAMETERS.SEPERATE_INITIAL_LINE should be set to NO.

No entries will be found in the SUBSCRIPTION_BUNDLE table for RateAndForward Bundles. As the RateAndForward Bundle does not use column value1 to value4, there is no need to save the current values for a given subscription.

External Dependencies

N/A

Parameters

RATINGCODE

New rating code that determines what other number plan should be used for rating.

RATINGKEY

New rating key to be used (if the rating key is used in the b-number method)

ADD_INVOICE_DETAIL_LINES

Possible values: Y and N. If Y, 1 invoice detail line is returned, if N, 2 invoice detail lines are returned.

At least one of the parameters RATINGCODE and RATINGKEY have to be set.

Example


For example, the number plans for HOME-INT-VOICE-ORIG and ROAM-INT-VOICE-ORIG use standardRating with the following charges:

  • international: initial charge of 0,5 and a recurrent charge of 0,13 (units per minute)
  • roaming: initial charge of 0,9

If a CDR with a duration of 70 seconds is rated using the RateAndForwardBundle, the bundle will receive two invoice detail lines:

  • one with a charge of 0,9
  • and one with a charge of 0,5 + (70/60)*0,13 = 0,652

Since parameter ADD_INVOICE_DETAIL_LINES is set to Y, the bundle will eventually only return one invoice detail line, with a charge of 0,9+0,652 = 1,552.