Configuring EDRs on UPF

Use the following configuration to configure EDRs on UPF:

active-charging service service_name 
   rulebase rulebase_name 
      flow end-condition { timeout | normal-end-signaling | session-end | hagr } charging-edr charging_edr_format_name 
      edr transaction-complete { http | dns } charging-edr charging_edr_format_name 
      exit 
      edr-format format_name 
         attribute attribute_name  sn-last-uplink-pkt-time format time_format priority priority_val  
         attribute attribute_name  sn-last-downlink-pkt-time format time_format priority priority_val  
         end 

NOTES:

  • flow end-condition —This command allows you to configure the end condition of the session flows related to a user session and triggers EDR generation.

  • timeout —Creates an EDR with the specified EDR format whenever a flow ends due to a timeout condition.

  • normal-end-signaling —Creates an EDR with the specified EDR format whenever the flow end is signaled normally. For example, detecting FIN and ACK for a TCP flow, and create an EDR for the flow using the specified EDR format.

  • session-end —Creates an EDR with the specified EDR format whenever a subscriber session ends. By this option, the session manager creates an EDR with the specified format name for every flow that has had any activity since the last EDR was created for the flow on session end.

  • charging-edr charging_edr_format_name —Specifies the charging EDR format.

  • hagr —Creates an EDR with the specified EDR format whenever a flow is terminated due to Inter-chassis Session Recovery action.

  • http —Specifies HTTP protocol-related configuration.

  • dns —Specifies DNS protocol-related configuration.

  • edr-format format_name —Specifies an EDR that has to be configured.

  • attribute attribute_name —Specifies the attribute to configure an EDR.

  • sn-last-uplink-pkt-time —Specifies the time of the last uplink packet. It records time in GMT timezone.

  • sn-last-downlink-pkt-time —Specifies the time of the last downlink packet.It records time in GMT timezone.

  • format time_format —Specifies the time format for the last uplink and downlink packets. It supports the following time formats:

    • MM/DD/YY-HH:MM:SS

    • MM/DD/YY-HH:MM:SS:sss

    • MM/DD/YYYY-HH:MM:SS

    • MM/DD/YYYY-HH:MM:SS:sss

    • YYYY/MM/DD-HH:MM:SS

    • YYYY/MM/DD-HH:MM:SS:sss

    • YYYYMMDDHHMMSS

    • YYYYMMDDHHMMSSsss

    • Seconds

  • priority priority_val —Specifies the priority of the uplink and downlink packets.