EXAMPLE — CDR-to-AVP Mapping
This example shows base and custom Diameter AVPs used by the CDR Converter to map incoming CDR fields to Credit-Control-Request (CCR) AVPs that are sent to Diameter Gateway for processing. Each CDR record type is handled by the MATRIXX Charging Application as a Diameter Credit-Control EVENT_REQUEST message (CC-Request-Type AVP value = 4).
Credit-Control-Request AVPs
Base CCR AVPs lists the base CCR AVPs.
AVP | Description |
---|---|
Session-Id | A unique ID is generated based on the CDR timestamp. |
Origin-Host | A simulated value, cdrHost. |
Origin-Realm | A simulated value, cdrRealm. |
Destination-Realm | A simulated value, cdrDestRealm. |
Auth-Application-Id | 4 |
Service-Context-Id | [email protected] |
CC-Request-Type | enum
|
CC-Request-Number | If the CC-Request-Type is 1, the CC-Request-Number is 1. If the CC-Request-Type is 3, the CC-Request-Number is 2. |
Destination-Host | A simulated value, cdrDestHost. |
Event-Timestamp | The CDRChargingStartTimestamp value. |
Used-Service-Unit | Only sent if the CC-Request-Type is a Termination request (4). |
.CC-Total-Octets | The usage amount in bytes (int64):
|
.CC-Time | The CDRDuration value. |
.Currency-Code | 554 |
.Quantity | This value is set only set if the CDR type is MMS, and it is currently set to 1. |
Subscription-Id | The subscription ID. |
.Subscription-Id-Type |
|
.Subscription-Id-Data | The IMSI or MSISDN number of the subscriber, from the CDRANumber field. |
Service-Identifier |
|
Service-Information | Grouped AVP containing additional information about the service. |
.Called-Station-Id | The phone number called, from the CDRBNumber field, when available. This is not valid for email CDR types. |
Custom CCR AVPs lists the custom CCR AVPs.
AVP | Description |
---|---|
SourcePlmn | The CDRSourceNetwork. |
UsageDirection | The CDRUsageDirection.
|
CallingTowerId | An internal value used to route messages for multi-threaded processing. |
ConnectType | The CDRConnectType value. |
RecordType | The CDRRecordType value. |
TariffClass | The TariffClass value. |
UsageClass | The CDRUsageClass value. |
ConnectSubType | The CDRConnectSubType value. |
WholesaleImpactCategory | The CDRWholesaleImpactCategory value. |
Credit-Control-Answer (272) AVPs
Note: Because the CDRs are processed from an
offline source, the CCA messages are not returned to a network device. The event
data is captured in an associated Event Detail Record (EDR) if the custom MDC event
types were included in the pricing configuration.
CCA AVPs lists the CCA AVPs.
AVP | Description |
---|---|
Session-Id | The value received in the CCR message. |
Result-Code | 2001 |
Origin-Host | The value received in the CCR message. |
Origin-Realm | The value received in the CCR message. |
Auth-Application-Id | The value received in the CCR message. |
CC-Request-Type | The value received in the CCR message. |
CC-Request-Number | The value received in the CCR message. |
Event-Timestamp | The value received in the CCR message. |
Granted-Service-Unit | Only sent when the CC-Request-Type value is 1. |
.CC-Total-Octets | The usage amount in bytes (int64). |
Used-Service-Unit | Only sent then the CC-Request-Type value is 3. |
.CC-Total-Octets | The usage amount in bytes (int64). |
Cost-Information | Only sent when the CC-Request-Type value is 3. |
.Unit-Value | |
..Value-Digits | |
..Exponent | |
.Currency-Code | An ISO 4217 code. |
Low-Balance-Indication | enum (optional)
|
Remaining-Balance | Provides information about the subscriber's remaining balance. |
.Unit-Value | |
..Value-Digits | |
..Exponent | |
.Currency-Code | An ISO 4217 code. |