How To Handle Multiple Occurrences Of An AVP While Reading A Request From Network (Doc ID 1069317.1)

Last updated on SEPTEMBER 24, 2013

Applies to:

Oracle Communications Billing and Revenue Management - Version 7.3.1.0.0 and later
Information in this document applies to any platform.
Checked for relevance on 24-Sep-2013.

Goal

The user needs to process a request from Network Service Control Point (SCP). This request contains the same AVP (attribute/value pairs) multiple times.
How to read the data from all occurrences one by one?

Detailed explanation : The requirement is the user has a grouped AVP (name : MULTIPLE_SERVICES_CREDIT_CONTROL) which is expected multiple times in the request which comes to AAA. At a high level, the business case is about data rating where in a single request to AAA, the user expects an MSCC (MULTIPLE_SERVICES_CREDIT_CONTROL) for normal browsing session and another MSCC for video downloading, and both need to be charged separately.

Expectation : The user needs to parse and read both occurrences of MULTIPLE_SERVICES_CREDIT_CONTROL in the iscPoluplateOpcode file.

Below, an example of CC_SERVICE_SPECIFIC_UNITS is shown :

Currently, the user is using the following code for reading value of CC_SERVICE_SPECIFIC_UNITS:

String cc_ss_units1;
cc_ss_units1 = edrString(DETAIL.ASS_PROTOCOL_INFO.ASS_DIAMETER_INFO.DIA_DETAIL.DIAMETER_CC.MULTIPLE_SERVICES_CREDIT_CONTROL.USED_SERVICE_UNIT.CC_SERVICE_SPECIFIC_UNITS ,0,0,0,0,0,0) ;

 

String cc_ss_units2;
cc_ss_units2 = edrString(DETAIL.ASS_PROTOCOL_INFO.ASS_DIAMETER_INFO.DIA_DETAIL.DIAMETER_CC.MULTIPLE_SERVICES_CREDIT_CONTROL.USED_SERVICE_UNIT.CC_SERVICE_SPECIFIC_UNITS ,0,0,0,0,1,0) ;



Actual Result:
This gives the value of only the second occurrence, and first string remains blank.

How to achieve the expected results?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms