Rating Bypass
You can configure business logic in the SBA Gateway Charging Function (CHF) to filter charging requests and spending limit requests that should not be sent to the Charging Server for rating.
It may be desirable to bypass rating in cases where:
- The DNN is Emergency SOS.
- The NF functionality is Access and Mobility Management Function (AMF).
- The DNN is SMF (IMS data combined with NF functionality).
Configure Rating Bypass in your nf.yaml file as shown in the excerpt below. You can define multiple rule sets and regular expressions to match headers or JSON paths of requests that should bypass rating. If all the rules in any rule set match a message, that request bypasses rating.
The excerpt shows configuration for two handlers: one for ChargingData
requests and one for SpendingLimit
requests. In this example these filter SOS
charging requests:
ratingBypass:
enabled: true
handlers:
# Default Rating Bypass Processor for ChargingData
defaultChargingDataHandler:
ruleSets:
- #pathRegex: "some pathRegex"
#headerRegex: "some headerRegex"
rules:
- jsonPath: '$.pDUSessionChargingInformation.pduSessionInformation.dnnId'
operation: EQUALS
value: 'sos'
# Default Rating Bypass for SpendingLimit
defaultSpendingLimitHandler:
ruleSets:
- #pathRegex: "some pathRegex"
#headerRegex: "some headerRegex"
rules:
- jsonPath: '$.pDUSessionChargingInformation.pduSessionInformation.dnnId'
operation: EQUALS
value: 'sos'
Requests that bypass rating trigger Response Generator handlers to generate appropriate responses. For more information, see the discussion about Response Generator. For descriptions of configuration properties, see the discussion about Rating Bypass properties.