SPCM data usage CDR

The SPCM generates a data usage CDR for each usage report received from the PCRF.

In addition to the base CDR, trailing variable fields are also produced with a terminating element of &0;0;0.

Subsections include:

Field Name Description

1

Subscriber ID

The MSISDN of the subscriber. This is in Tango internal format.

2

Service ID

The Tango CDR Service ID. This is 45 for the SPCM Data Usage CDRs.

3

Transaction Type

The transaction type.

values
  • 0 = usage report

  • 1 = usage report failure

  • 2 = plan expiry

4

Tenant ID

Alphanumeric string that displays the ID of the network operator for which the CDR was produced.

5

CDR Generation Date

The date the CDR was generated. Format: DD/MM/YYYY.

6

CDR Generation Time

The time the CDR was generated. Format: hh:mm:ss.

7

Failure Code

The failure code for the data usage CDRs.

values
  • 0 = none

  • 1 = error

  • 2 = dynamic profile not found

8

Plan Id

The ID of the plan derived from the usage key in the usage report.

9

Usage Key

The usage key. This is a combination of the profile ID and the PCC Profile.

format

<profileId><PCCProfileID>

sample

457-56

10

Discount Type

The discount type (if applied).

values
  • 0 = none

  • 1 = fixed (rate from SPCM)

  • 2 = dyanmic (rate from DPS)

  • 3 = schedule (discount schedule)

11

Used Volume Units

The used volume units value from the usage report.

These are the units as reported by the PCRF on the last usage report.

12

Used Time Units

The used time units from the usage report.

13

Used Credit Units

The used credit units from the usage report.

14

Granted Volume Units

The granted volume units from the usage report.

15

Granted Time Units

The granted time units from the usage report.

16

Granted Credit Units

The granted credit units from the usage report.

17

Plan Activated

Indicates if a plan was activated upon first usage.

values
  • 0 = usage report activated the plan

  • 1 = other

18

Plan Name

The name of the plan.

19

Session ID

The Gx session ID for the PCEF interface.

20

PLMN ID

The Public Land Mobile Network ID.

21

IMSI

The subscriber’s IMSI.

22

Allowed Unit Amount

The maximum number of bytes or seconds of usage allowed for the plan.

-1 if empty or not applicable.

Data usage CDR variable part

The variable part of the SPCM Data Usage CDR represents the incremental value over the lifetime of the plan.

The variable part has a terminating element of &0;0;0.
Field Description

Entity Type

Indicates which entity type the variable part of the CDR refers to.

values
  • 0 = usage counter

  • 1 = rule violation

Entity Metering Type

The usage counter metering type.

values
  • 0 = volume

  • 1 = time

  • 2 = credit

The field is blank if the Entity Type is 1.

Entity ID

A unique numeric ID that represents this occurence of the entity.

Entity Definition ID

The entity definition ID. This is a numeric field which reflects the entity definition in the database.

Examples are UsageCounterDefinitionId and UsageRuleDefinitionId.

Entity Name

The exame name of the usage counter or the usage rule.

An example would be something like Plan Consumption Counter.

Entity Value

The usage counter amount or rule threshold value at which the rule was violated.

This value represents the overall aggregated value.

Entity Transaction Type

Indicates if the update included a usage counter reset.

values
  • -1 = Reset for UsageCounter

This field is blank if the Entity Type is 1.

Data Usage CDR Samples

Data Usage CDR Sample
00041000060200000001010002,45,0,tenantb,25/04/2019,21:27:33,0,192533,221513-165,0,524288,0,0,524288,,,0,TEST_1MB_1DAY_FUP,192.168.1.239:3860:1556224050:0,123456,0001102,-1&0;0;257503;171;fupCounter;524288;0&0;0;257504;172;Plan Consumption Counter;524288;0&0;0;0;0;0;0;0
This sample reported 1000000 bytes of usage with no discount, a single counter incremented, and no rule violation.


Data Usage CDR Sample | Plan Expiry
00041000060200000001010005,45,2,tenantb,02/05/2019,23:14:20,0,99509,,,,,,,,,0,TEST_1MB_1MIN,,,0001105,1048576,-1&0;0;131470;68433;Plan Consumption Counter;524288;0&0;0;0;0;0;0;0