Router Outbound Configuration Example

The complexity of expressing the conditions for republishing to destination Kafka topics requires that configuration of the CDR Kafka Router be provided in a ConfigMap.

The following Helm values file excerpt shows an example ConfigMap with routing details. A record is republished on cdr-route-1 if the MCC is one of 505, 456, or 789 or republished on cdr-route-2 if the MCC is 123 and the operation name is Nchf_ConvergedCharging.

cdr-kafka-router:
  enabled: true
 
  configuration:
    configmap:
      cdr-kafka-router.yaml: |-
        router:
          routing:
            routes:
              - topic: cdr-route-1
                predicate:
                  path: request.body.nfConsumerIdentification.nFPLMNID.mcc
                  value: "505|456|789"
 
              - topic: cdr-route-2
                predicate:
                  and:
                    - path: request.body.nfConsumerIdentification.nFPLMNID.mcc
                      value: "123"
                    - path: response.operationName
                      value: "Nchf_ConvergedCharging.*"