Billing & CDR

CDR processing explained: from call record to bill.

What happens between a customer using their phone and that usage appearing on their bill: collection, mediation, rating, caps and reconciliation.

In short
  • A CDR is one usage event: a call, an SMS or a data session.
  • Mediation cleans and normalises records before anything is charged.
  • Rating applies the customer's plan to each record.
  • Reconciliation checks your rated usage against the wholesale invoice.

What a CDR is

A call detail record (CDR) describes one usage event. It typically carries who used the service, when, what type of usage it was, how much, and where. A simplified record might look like this:

14:02:11 07700900123 DATA 412.6MB UK session=8f2a… 14:02:13 07700900456 VOICE 00:03:12 UK dest=07700900789 14:02:18 07700900321 DATA 1.2GB FR roaming=true

Collection and mediation

Records arrive from the host network or MVNE, usually as files delivered in batches. Mediation checks each file, removes duplicates, fixes formats and normalises fields so every record looks the same regardless of source.

!Most billing errors start here. Duplicates and late records are far cheaper to catch in mediation than in a customer complaint.

Rating

Rating applies the customer's plan to each record. Data inside the bundle is rated at zero, usage outside it is charged, and roaming usage is matched to the right zone. Add-ons and promotions change the result, so the rating engine needs the customer's plan history, not just today's plan.

01Collect
02Mediate
03Rate
04Bill

Caps and near-real-time control

Rated usage feeds spend caps and usage alerts. The faster records arrive and are rated, the closer a cap can stop usage to the limit. Where records are delayed, for example while roaming, caps need a safety margin.

Reconciliation

Each month, compare what you rated against what the host network or MVNE invoices you. Differences point to missing files, unrated records or tariff mismatches, and catching them protects your margin.

Frequently asked questions

How often do CDR files arrive?

It depends on the host network and MVNE. Delivery ranges from every few minutes to daily batches, which is worth agreeing before launch.

What is the difference between mediation and rating?

Mediation cleans and normalises usage records. Rating applies prices and plan rules to those clean records.

Can spend caps work with batch CDR files?

Yes, with a safety margin. The more often records arrive, the closer to the limit a cap can act.

Hexdale EngineeringThe team behind Hexdale's MVNO platform, billing engine and AI agents. London, UK.
Start a project

Let's build.

Talk to the team →