Skip to main content
BSS/OSS Academy
💰
Section 6.3

Mediation & CDR Processing

Last updated 12 Oct 2026

01

At a glance

Mediation is the pipeline between the network and rating. It collects raw usage records in each vendor's format, and turns them into one clean, deduplicated, subscriber-attributed usage event per billable activity. It decides what happened and to whom. It does not decide what that is worth, and it is not where real-time credit control happens.

02

The picture

Five raw records in, one usage event out. Mediation says what happened and to whom; rating decides what it is worth.

1 · Raw records

  • P-CSCFpartial · call 7781
  • S-CSCFpartial · call 7781
  • IMS-ASpartial · call 7781
  • S-CSCFpartial · call 7781 (resent)
  • MSCtest number · 0 s

Each node writes its own vendor format

2 · Pipeline

  1. 1 Collect

    from every node

  2. 2 Validate & filter

    test record dropped

  3. 3 Normalise

    one format, one unit

  4. 4 Correlate

    3 partials → 1; resend removed

  5. 5 Enrich

    MSISDN → account, destination zone

Failures go to an error queue, not the bin

3 · One usage event

Account
ACC-1001
Service
Voice (VoLTE)
Duration
12 min
Destination
National mobile
Price
none yet

TMF635 describes usage records of this kind

4 · Route

  • Rating
  • Interconnect billing
  • Revenue assurance
  • Fraud management

Online charging does not wait for this pipeline: the network asks the OCS directly (Diameter Gy in 4G, the CHF over Nchf in 5G)

Three partial records of one VoLTE call, a resent duplicate and a test call go in; one enriched usage event with no price on it comes out and is routed to rating and the other consumers. Example records.
03

How it works

From network event to usage event

Voice switches, packet gateways, IMS nodes, SMS centres and 5G core functions record what each subscriber did. They write Call Detail Records (CDRs), Event Detail Records (EDRs) and IP Detail Records (IPDRs) in their own formats, often split across several nodes for one session. Mediation turns these into usage events rating can value, and routes copies to every other consumer.

The seven functions

FunctionWhat it doesWhat goes wrong without it
CollectPull or receive records from every network sourceA node that is not collected is usage that is never billed
FilterDrop non-billable records (test numbers, zero duration, internal traffic)Customers charged for test or signalling traffic
ValidateCheck mandatory fields, ranges and formats; send failures to an error queueBad records rejected downstream with no route to correction
NormaliseConvert vendor formats and units into one internal formatRating needs a rule per network vendor and release
CorrelateMerge partial records for one session and remove duplicatesDouble charges, or long sessions billed as fragments
EnrichAdd subscriber, account, service and reference data (destination, roaming partner)Usage charged to the wrong account or tariffed as the wrong destination
RouteDeliver each record to the consumers that need itRating gets the usage but RA, fraud or interconnect billing do not

As a staged pipeline

1
Collection
Collectors

From MSCs, packet gateways, IMS nodes, SBCs and others, by FTP, SFTP, FTAM or streaming interfaces.

2
Parsing & normalisation
Parser

ASN.1, CSV and proprietary binary formats parsed into one internal format; field names, dates, durations and units standardised.

3
Validation & filtering
Validation

Zero-duration and test records filtered; records missing mandatory fields (calling number, timestamp) sent to an error queue.

4
Correlation
Correlation

Partial records for one session merged. A VoLTE call can produce records from the P-CSCF, S-CSCF and IMS application server; they become one event. Duplicates removed.

5
Enrichment
Enrichment / reference data

MSISDN to account mapping, service type, number-plan lookup for destination, roaming partner identification.

6
Delivery
Mediation → consumers

To rating in batch files, or by streaming where usage is rated near real time. Copies routed to interconnect billing, revenue assurance, fraud and analytics.

What mediation is not

It does not price
Pricing belongs to rating, driven by the catalog. When pricing creeps into mediation rules ("zero-rate this APN" as a filter), the catalog no longer describes what the customer is charged, and nobody can see it.
It is not an OCS
An Online Charging System decides during the session whether it may continue and what to deduct. The network asks the OCS directly (Diameter Gy in 4G, the CHF over Nchf in 5G); that path does not wait for mediation. Some products package both; the functions remain different.

How it fails

  • Lost records: collection failure or file corruption. Usage never billed.
  • Duplicates: correlation failure. The customer is charged twice.
  • Late records: arriving after the bill run. Lost revenue or out-of-cycle adjustments.
  • Enrichment errors: wrong subscriber mapping. Charges on the wrong account.
  • Format changes after a network upgrade: new fields not parsed, records rejected.
TM Forum alignment
There is no dedicated TMF Open API for mediation. TMF635 (Usage Management) defines usage records, and some mediation products expose TMF635-compliant interfaces. Mediation itself is usually a proprietary integration layer.
04

Who owns what

EntitySystem of RecordSystem of EngagementSystem of ReferenceNotes
Raw usage records (CDR / EDR / IPDR)Network elements—MediationVendor-specific formats; often several partial records per session.
Normalised usage eventMediation—Rating, Interconnect billing, Revenue Assurance, Fraud ManagementTMF635 describes usage of this kind. Carries no price.
Rejected and suspended recordsMediation (error queue)—Revenue AssuranceEach one is unbilled usage until it is corrected and reprocessed.
Subscriber-to-account mapping used for enrichmentBilling account / Product Inventory—MediationMediation holds a reference copy; a stale copy charges the wrong account.
Tariffs and zero-rating rulesProduct Catalog—RatingMediation should not hold them.
05

In practice

Mediation is usually a proprietary layer, sometimes a stand-alone product and sometimes part of a convergent charging suite. Its configuration is a large body of parsers, filters and correlation rules built up node by node and release by release.

Mediation is the most common point of revenue leakage in a telco, because every record passes through it and lost or late records are silent. The customer does not complain about a call that was never billed.

Legacy reality
Network upgrades are a standing risk. A new node release with a changed record format must be reflected in the parsers before go-live, or its records are rejected. When that step is missed, the gap is found in the error queue or by Revenue Assurance after the event.
06

The trade-off

What it solves

Rating and every other consumer receive one clean, attributed usage event per activity, whatever the network vendor, node or release that produced it.

What it does not solve

  • Real-time credit control, which runs between the network and the OCS.
  • Wrong reference data. Enrichment against a stale account mapping charges the wrong customer.
  • Records the network never wrote, or nodes nobody configured for collection.

What it adds

  • Every network change needs a matching mediation change and test.
  • Error queues need owners and a reprocessing process, or they become silent leakage.
  • Logic placed in mediation filters is invisible to the catalog and to anyone reading prices.

Architecture decision

Where should a rule such as "do not charge traffic to this APN" live?

  • In the catalog, applied by rating

    Choose when the rule is commercial (a zero-rated service, a promotion), so it must be visible in the product and auditable as a price.

  • In mediation filtering

    Choose when the traffic is genuinely non-billable (signalling, test, internal) and would never appear on any customer's bill.

Breaks if commercial rules are implemented as mediation filters. The catalog then says one thing, customers are charged another, and nobody can trace why.

07

Takeaways

Key Takeaways

  • Mediation turns vendor-specific network records into one clean usage event per billable activity
  • Seven functions: collect, filter, validate, normalise, correlate, enrich and route
  • Mediation says what happened and to whom; rating, driven by the catalog, decides what it is worth
  • Mediation is not an OCS: real-time credit control runs between the network and the charging system
  • Lost, late and duplicated records are silent, which makes mediation the most common point of leakage

Check yourself

  • After a core network upgrade, data revenue drops overnight but no customer complains. Where do you look first?Show answer

    The mediation error queue. The new release probably changed the record format, the parser rejects the records, and the usage is never rated.

  • Some VoLTE calls appear three times on customer bills. Which mediation function failed?Show answer

    Correlation. The partial records from the P-CSCF, S-CSCF and IMS application server were not merged into one event, so each was rated separately.

  • Marketing asks for a zero-rated music service. Mediation offers to filter out that traffic. What is the problem?Show answer

    The price is then hidden in mediation. The catalog no longer describes what is charged, Revenue Assurance cannot see it, and changing or ending the offer means a mediation change. It belongs in the catalog and rating.