---
title: Price calls by caller origin (OBR)
url: https://help.telecomsxchange.com/sellers/origin-based-rates/
audience: For Sellers
summary: "Switch on OBR enabled in a voice route's Edit Route, pick the CLD prefix\
  \ matching and caller ID source, then add rates under Routes \u2192 OBR Rates (or\
  \ upload an OBR CSV). Each OBR rate pairs a destination (CLD) prefix with an origin:\
  \ a caller ID prefix, Invalid caller ID, Unknown origin country or Any other. A\
  \ matching OBR rate replaces your normal rate for that call."
updated: '2026-10-31'
published: '2026-10-31'
verified: '2026-10-23'
---

# Price calls by caller origin (OBR)

> Switch on OBR enabled in a voice route's Edit Route, pick the CLD prefix matching and caller ID source, then add rates under Routes → OBR Rates (or upload an OBR CSV). Each OBR rate pairs a destination (CLD) prefix with an origin: a caller ID prefix, Invalid caller ID, Unknown origin country or Any other. A matching OBR rate replaces your normal rate for that call.

## How an OBR rate prices a call

1. **Normal rate**: The call matches a prefix in your main tariff
2. **Caller ID** (OBR enabled): Read from P-Asserted-Identity (or From)
3. **OBR rate** (CLD + CLI match): Longest CLI prefix, else a fallback rate
4. **Billed call** (CDR shows OBR): OBR price, or the normal rate if nothing matched

Origin-based rating (OBR) lets you charge a different price for the same destination depending on where the call comes from. TelecomsXchange reads the caller ID (CLI) of each call, finds its country, and picks the OBR rate you set for that origin. A matching OBR rate replaces your normal rate for the call; everything else is billed as usual.

You manage OBR in two places: the route's **Edit Route** page, where you switch it on, and **Routes → OBR Rates**, where you add and change the rates.

> **Buying routes too?:** This guide is the seller side. For what buyers see on an OBR route (the badge in Market View, the OBR box at purchase, the OBR column in their CDRs), see [Buy origin-based (OBR) routes](https://help.telecomsxchange.com/buyers/origin-based-routes/).

## When is OBR worth using?

Use OBR when your cost or the destination's rules depend on the calling number. For example:

- a destination operator charges more for calls from outside the country (international inbound) than for local-origin calls,
- you want to price calls from one region lower to win that traffic,
- you need to refuse calls from certain origins, or calls with a caller ID that isn't a valid number.

Buyers see that your route is origin-based before they buy it. See [Buy origin-based (OBR) routes](https://help.telecomsxchange.com/buyers/origin-based-routes/) for what they see.

## How do I turn on OBR for a route?

OBR works on voice routes only.

1. Go to **Routes → My Routes**, open the route's action menu and click **Edit Route**.
2. Under **Required Settings**, switch on **OBR enabled**.
3. Choose **OBR CLD prefix matching**:
    - **Exact prefix only**: an OBR rate applies only when its CLD prefix is the same as the prefix the call matched in your normal tariff. If the call matched `4477`, only OBR rates for `4477` count.
    - **Longest matching prefix**: the longest OBR CLD prefix that matches the dialled number is used, even if it differs from the normal rate's prefix. A call to `447700…` can use an OBR rate for `447700` while its normal rate is for `4477`.
4. Choose **Caller ID (CLI) source**: **P-Asserted-Identity only**, or **P-Asserted-Identity, then From** to use the SIP From header when a call has no P-Asserted-Identity.
5. Click **Update Settings**.

![Edit Route with OBR enabled, the CLD prefix matching and caller ID source, and the Upload OBR rates box](https://help.telecomsxchange.com/assets/screenshots/seller-route-obr.jpg)

The route now appears under **Routes → OBR Rates**, and an **Upload OBR rates** box appears next to **Upload Tariff**.

## How is a call priced?

For each call on an OBR-enabled route, TelecomsXchange:

1. **Finds the normal rate.** The dialled number has to match a prefix in your main tariff, as on any route. A call your main tariff doesn't cover isn't carried, OBR or not.
2. **Reads the caller ID** from the header you chose and removes a leading `+`.
3. **Picks the CLD prefix** to look up, using your **OBR CLD prefix matching** setting.
4. **Finds the origin rate** for that CLD prefix, among the OBR rates already in effect:

| The caller ID… | Rate used |
|---|---|
| starts with a country code and has a valid length for that country | the rate with the longest CLI prefix the number starts with; if none, **Any other origin** |
| starts with a country code but is too short or too long for that country | **Invalid caller ID**; if there's none, **Any other origin** |
| matches no known country, is missing or isn't a number | **Unknown origin country**; if there's none, **Any other origin** |

5. **Applies it.** The OBR rate's prices and billing intervals replace the normal rate for this call. If no OBR rate matches, the normal rate applies. If the matching OBR rate is **Forbidden** or **Discontinued**, the call is refused on your route.

For example, with the rates in the screenshot below on the **Platinum** route, calls to `447700900123`:

| Caller ID | OBR rate used | Price per minute |
|---|---|---|
| `+14165550100` | CLI prefix `1` | $0.0091 |
| `+442071234000` | CLI prefix `44` | $0.0082 |
| `+33142685300` | Any other origin | $0.0110 |
| `+4420712` (too short for the UK) | Invalid caller ID, which is Forbidden | call refused |
| `anonymous` | Unknown origin country: none set, so Any other origin | $0.0110 |

The buyer's own price limits apply to the OBR price too: if it's above the maximum price set on their account, the call is refused on your route.

## How do I add an OBR rate?

1. Go to **Routes → OBR Rates** and click **Add OBR rate**.
2. Under **Which calls**, choose the **Route** (only routes with OBR enabled are listed) and enter the **CLD prefix (destination)**: digits in E.164 format, up to 10, for example `62` for Indonesia.
3. Under **Calls from**, choose the origin:
    - **Caller ID starting with**, and enter a CLI prefix in E.164 format, up to 10 digits, for example `1` for the US and Canada,
    - **Invalid caller ID**,
    - **Unknown origin country**,
    - **Any other origin**: calls that no other OBR rate for this CLD prefix matches.
4. Under **Price and billing**, enter the **First interval price** and **Next intervals price** in $ per minute, and the **First interval** and **Next intervals** in whole seconds, from 1 to 60. The box below shows how a 2-minute call is billed with those values.
5. Under **Availability**, choose **Effective from**: **As soon as possible**, or **On a date** and pick the date and time. Switch on **Forbidden** to refuse matching calls, or **Discontinued** to stop offering the rate from that date.
6. Click **Add OBR rate**. You'll see "OBR Rate has been added".

![The Add OBR rate form: route, CLD prefix, calls from, prices, billing intervals and availability](https://help.telecomsxchange.com/assets/screenshots/seller-add-obr-rate.jpg)

Price increases need 6 days' notice. With **As soon as possible**, an increase is scheduled 6 days from now and any other change applies right away. A dated increase must be at least 6 days out.

## How do I see and manage my OBR rates?

**Routes → OBR Rates** lists every OBR rate on your OBR-enabled routes, grouped by route.

![The OBR rates list grouped by route, with each rate's CLD prefix, destination, CLI prefix, price, billing, effective date and status](https://help.telecomsxchange.com/assets/screenshots/seller-obr-rates.jpg)

- Filter by **Route**, **CLD prefix**, **CLI prefix**, **Country** and **Description**, and click **Search**. **Reset** clears the filters.
- **Download CSV** saves the filtered list as `obr_rates.csv`.
- Each rate shows its **Price per minute** (the first and next interval prices when they differ), **Billing** (first/next interval in seconds), **Effective from** and **Status**:

| Status | Meaning |
|---|---|
| **Active** | In effect now. |
| **Scheduled** | Starts on its effective date. |
| **Superseded** | A newer version of the same CLD and CLI prefix has started; kept for history. |
| **Forbidden** | Calls that match it are refused. |
| **Discontinued** | No longer offered. |

### How do I change a rate?

Open the row's actions menu (**⋮**) and click **Update rate**. The **Update OBR rate** form opens with the rate filled in. Change the prices, intervals or availability, choose when the new version starts and click **Save new version**.

![The Update OBR rate form with a new price from a future date](https://help.telecomsxchange.com/assets/screenshots/seller-update-obr-rate.jpg)

Saving adds a new version of the rate; the current version applies until the new one starts. When it does, the old version is shown as **Superseded**.

### How do I stop a rate?

Open the row's actions menu (**⋮**), click **Discontinue** and confirm. A rate already in effect stops at once; a scheduled rate is discontinued the second after it was due to start. You'll see "The OBR Rate has been discontinued". Calls that would have matched it are then refused on your route, so add a replacement rate first if you still want that traffic.

## How do I upload OBR rates from a file?

To change many rates at once, use the OBR CSV on **Edit Route**:

1. Under **Upload OBR rates**, click **Download current OBR rates (CSV)**. The file is named `<your login>_route_<route name>_obr.csv`, and is an empty template if the route has no OBR rates yet.
2. Edit it in a spreadsheet. The columns are the same as the [main rate deck](https://help.telecomsxchange.com/sellers/upload-your-rate-deck/), plus **CLI Prefix** after **Prefix**. In **CLI Prefix**, enter digits, or one of the special values: `OBR_INVALID_CLI_RATE` (Invalid caller ID), `OBR_UNKNOWN_COUNTRY_RATE` (Unknown origin country) or `OBR_GLOBAL_DEFAULT_RATE` (Any other origin).
3. Choose the edited file under **Upload OBR rates** and click **Update Settings**.

Each row is an update: upload only the rates you're changing, each with its own **Effective From** (`ASAP` or `YYYY-MM-DD hh:mm:ss`). The 6-day rule for increases applies, and if any row is invalid nothing is saved and your browser downloads `upload_errors.csv` with an **Error** column. The column guide on the page still says rates can be updated after 48 hours; the 6-day rule is what applies.

## How are buyers told about OBR changes?

Buyers of the route are emailed every OBR change, whether you made it on the form or by upload, as `<seller>_<route>_rates_update_obr.csv` with the **CLI Prefix** column. New buyers get your OBR rate sheet with their purchase confirmation. Prices buyers see include the TelecomsXchange commission.

## How do I see which calls used an OBR rate?

In **Logs → CDR (Voice)**, the **OBR** column shows a badge on every call billed with an OBR rate. Hover over it to see the **CLD prefix** and **CLI prefix** of the rate used. Calls billed at the normal rate show a dash.

## What if something goes wrong?

| You see | What to do |
|---|---|
| Turn on OBR for a route first | No route has OBR enabled. Switch on **OBR enabled** in a voice route's Edit Route and save. |
| Route not found | The route you chose doesn't have OBR enabled. Switch it on in Edit Route first. |
| CLD Prefix format error (non-digital) / Too long CLD Prefix | The CLD prefix is digits only, up to 10. |
| CLI Prefix format error (non-digital) / Too long CLI Prefix | The CLI prefix is digits only, up to 10, or one of the three origin options. |
| Interval 1 supports values 1..60 | Billing intervals are whole seconds from 1 to 60. The same applies to Interval N. |
| Rate Increase is only allowed effective 6 days or more | Move the start date at least 6 days out, or use **As soon as possible**. |
| Duplicate OBR Rate triplets are not allowed: Prefix-CLI Prefix-Effective From | That CLD prefix and origin already have a rate starting at that time. Choose another date, or update the existing rate. |
| Effective From format error | Use **As soon as possible**, or a full date and time, `YYYY-MM-DD hh:mm:ss`. |
| Duplicate prefix-cliprefix-effective_from triplets are not allowed in single tariff | In an OBR file, the same CLD prefix, CLI prefix and date appear twice, or already exist. Remove the row or change its date. |
| 'CLI Prefix' value should be not be empty. | Give every row in the OBR file a CLI prefix, or one of the special values. |
| 'CLI Prefix' value should be only digits or special values: OBR_INVALID_CLI_RATE OBR_UNKNOWN_COUNTRY_RATE OBR_GLOBAL_DEFAULT_RATE | Use digits only, or one of those three values exactly. |
| Calls you expected at an OBR price are billed at the normal rate | Check that the call's CLD prefix has an OBR rate (with **Exact prefix only**, the same prefix as the normal rate), that the rate has started, and that the buyer sends the caller ID in P-Asserted-Identity (or From, if you allow it). |

## Frequently asked questions

**Q: What is OBR?**

A: Origin-based rating. On an OBR-enabled voice route you can charge a different price for the same destination depending on where the call comes from, read from the caller ID (CLI). For example, calls to UK mobiles (4477) from US numbers (1) at one price and from UK numbers (44) at another.

**Q: Do I still need a normal rate deck on an OBR route?**

A: Yes. A call first has to match a prefix in the route's main tariff. OBR rates then replace that price for calls whose caller ID matches; calls that match no OBR rate are billed at the normal rate.

**Q: What happens if a call matches no OBR rate?**

A: It's billed at the route's normal rate. Add an Any other origin rate for a CLD prefix if you want one price for every caller your other OBR rates don't cover.

**Q: How do I block calls from a particular origin?**

A: Add an OBR rate for that CLD prefix and origin with Forbidden switched on. Calls that match it are refused on your route.

**Q: Where does the caller ID come from?**

A: From the SIP P-Asserted-Identity header. With Caller ID (CLI) source set to P-Asserted-Identity, then From, the From header is used when a call has no P-Asserted-Identity. A leading + is ignored.

**Q: How much notice do buyers get for an OBR price increase?**

A: The same as for normal rates: an increase takes effect at least 6 days after you make it. Decreases, new rates and other changes can apply at once.
