How To Handle Multiple Occurrences Of An AVP While Reading A Request From Network
(Doc ID 1069317.1)
Last updated on MARCH 27, 2019
Applies to:Oracle Communications Billing and Revenue Management - Version 188.8.131.52.0 and later
Information in this document applies to any platform.
Checked for relevance on 24-Sep-2013.
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:
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) ;
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) ;
This gives the value of only the second occurrence, and first string remains blank.
How to achieve the expected results?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document