Home / Training / Lesson 5
VoIP Training · Lesson 5 of 10

Rates, billing, balance and CDRs

How wholesale prices become charges: rate decks, longest-prefix matching, billing increments, balances, CDRs and reconciliation.

By VoxComms · · 4 min read

In wholesale VoIP, margins per minute are small and volumes are large. A tiny error in a rate, a billing increment or a balance setting can turn profitable traffic into a loss within hours. This lesson explains how rates, billing, balances and call detail records (CDRs) fit together, and what a NOC or billing team should check routinely. All prices below are invented examples.

Reading a rate deck

A rate deck is a table that vendors send to buyers (and that you send to your customers). A typical line contains:

FieldExampleMeaning
DestinationCountry Z – MobileHuman-readable name
Prefix999 7Digits the dialled number starts with
Rate0.0150Price per minute in the deck currency
Increments60/60Minimum and step in seconds
Effective date2026-11-07When this price applies
ChangeIncreaseNew / increase / decrease / unchanged

(Prefix 999 is used here only as a made-up example; it is not a real country code.)

Longest prefix match

When a number matches several prefixes, the longest matching prefix wins. If the deck has both 999 (Country Z, all) and 9997 (Country Z mobile), a call to 9997123456 is billed at the mobile rate. Missing a specific prefix means calls fall back to the shorter, often cheaper, one — a classic way to lose money.

Billing increments

The increment pair decides how call duration is rounded:

If you buy on 60/60 and sell on 1/1, every short call costs you more than you charge, even if the per-minute rate looks profitable. Always compare increments as well as prices.

Rate changes and notice periods

Vendors typically send rate changes in advance. Increases usually come with a notice period; decreases may apply sooner. Your team must:

  1. Load the vendor’s new rates with the right effective dates.
  2. Check whether any customer prices now fall below cost.
  3. Notify affected customers of your own changes within your contractual notice period.

Calculating a charge

An example with invented figures: a call lasts 95 seconds to a destination sold at 0.0200 per minute on 30/6.

The vendor side is calculated the same way using the vendor’s rate and increments. Margin for the call is the difference.

Balances and credit

Prepaid

The customer pays in advance and the switch deducts each call from the balance. When the balance reaches zero, new calls are blocked. Prepaid limits your risk with new or unknown customers.

Postpaid

The customer is invoiced after the period, usually weekly or monthly. The switch allows calls up to a credit limit. Set limits that match the customer’s payment history and expected traffic; a credit limit far above what they normally use is unnecessary exposure.

Watch-outs

Call detail records

A CDR is written for every call attempt. Typical fields include:

CDRs are used for invoicing, reconciliation, quality reporting (ASR and ACD are calculated from them) and troubleshooting.

Reconciliation and disputes

At the end of each billing period, partners compare their CDR totals. Small differences are normal — clocks differ slightly and calls that cross midnight may land in different periods. Larger differences point to a problem:

To raise a dispute, provide specific evidence: a CDR extract, the destinations involved, and for quality issues, SIP traces and recordings. Our blog post on False Answer Supervision explains what evidence is useful in FAS disputes.

Daily checks for the billing and NOC teams

  1. Negative margin report: any destination where sell price is below buy price, or where increments make short calls unprofitable.
  2. Unrated calls: answered calls with no rate found on either side.
  3. Balance alerts: customers close to zero or near their credit limit.
  4. Unusual spend: a customer or destination with traffic far above normal, which can indicate fraud (see Lesson 7).
  5. Upcoming rate changes: vendor changes that take effect in the next few days.

Good habits

Key takeaways

  • The longest matching prefix decides which rate applies to a number.
  • Billing increments can make short calls unprofitable even when the per-minute rate looks fine.
  • Prepaid limits risk; postpaid needs sensible credit limits and prompt payment recording.
  • CDRs drive invoicing, reconciliation, KPIs and troubleshooting.
  • Daily checks for negative margin, unrated calls and unusual spend prevent silent losses.

Quick quiz

1. A deck has prefixes 999 and 9997. Which rate applies to 9997123456?

The 9997 rate, because the longest matching prefix wins.

2. On 30/6 increments, how is a 40-second call billed?

42 seconds: 30-second minimum plus 10 seconds rounded up to 12.

3. Name two common causes of CDR reconciliation differences.

Different rates or increments loaded on each side, and calls billed on one side but rejected or disputed on the other (e.g. FAS).

Related reading

Examples in this course use invented names (Vendor X, Customer Y, Country Z) and documentation IP ranges. Menu names and options differ between softswitch versions; always check your own system and vendor documentation.