---
title: 'Blocked numbers'
summary: 'A phone number (or number prefix) the PBX refuses to handle. Block exact numbers to stop one specific caller, or block prefixes to stop an entire country or area code.'
section: features
tags:
  - crud
  - telephony
  - security
  - feature-flag
updated: '2026-09-08'
---

> A **blocked number** is a phone number or number prefix that your PBX refuses to handle. You can block exact numbers to stop one specific caller, or block prefixes to stop an entire country or area code. Each block applies to incoming, outgoing, or both directions.

## Overview

Blocking numbers is your first defense against spam, robocallers, premium-rate abuse, and unwanted outbound destinations. The telephony platform enforces these rules at call time, so a blocked call is rejected before it reaches your users.

> [!IMPORTANT]
> The feature is gated by an upcoming-feature flag at the tenant level (`BlockedNumbers`). Until enabled, the *Call Routing -> Blocked numbers* page returns a 404. Contact your administrator to enable it.

## What it does

Each rule matches a number in one of two ways, in one or both directions:

| Mode | What it matches |
|---|---|
| **Exact number** | Only the specific number, full E.164 including country code. |
| **Prefix** | Every number starting with the digits you enter. |

Prefix matching is the workhorse - blocking `+90` stops every call from Turkey in one rule, more durable than listing individual numbers. Direction is set by **Apply to**: incoming (anti-spam), outgoing (cost control), or both.

| Goal | Configuration |
|---|---|
| **Block a specific spam caller** | Exact number, Incoming. |
| **Block an entire country's inbound calls** | Prefix on the country code, Incoming. |
| **Block premium-rate dialling** | Prefix on the premium-rate range, Outgoing. |

> [!WARNING]
> A prefix matches every number that starts with those digits. Blocking `+1` would block all of North America, so include enough digits to scope the rule tightly.

## See also

- [Phone numbers](phone_numbers.md) - your tenant's external numbers.
- [Contacts](contacts.md) - per-contact blocking with audit trail.
- [Route outgoing calls](route_outgoing_calls.md) - the outbound routing layer where outgoing blocks are enforced.

```yaml fields
number:
  label: 'Phone number or prefix'
  tab: General
  hint: 'The phone number or prefix to block. Enter a full E.164 number for exact matching, or leading digits for prefix matching.'
is_prefix:
  label: 'Match type'
  tab: General
  hint: 'How the number is matched against calls.'
  values:
    -
      value: false
      label: 'Exact number'
      text: 'Blocks only the specific number you entered.'
    -
      value: true
      label: Prefix
      text: 'Blocks all numbers that start with the digits you entered.'
apply_to:
  label: 'Apply to'
  tab: General
  hint: 'Which call direction the block covers: incoming calls only, outgoing calls only, or both directions.'
  values:
    -
      value: incoming_call
      label: 'Incoming call'
      text: 'Calls from the blocked number or prefix never reach your PBX users.'
    -
      value: outgoing_call
      label: 'Outgoing call'
      text: 'Users on the PBX cannot dial the blocked number.'
    -
      value: both_directions
      label: 'Both directions'
      text: 'Both directions are blocked.'
reason:
  label: Reason
  tab: General
  hint: 'Why this number is blocked. Visible to your team only, it has no effect on call handling.'
```
