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.
- 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:
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.
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.
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.