Skip to main content

Outbound Whitelist

The Outbound Whitelist controls which external numbers PBX users can dial. Entries define country and prefix rules with associated outbound trunks.

Purpose

Use this module to:

  • Restrict outbound dialing by destination country and prefix
  • Assign outbound trunks to specific destinations
  • Assign a default outbound caller ID for destinations matching a rule
  • Enable or disable rules per destination
tip

For a full explanation of how OPBX authorizes outbound calls and decides which caller ID to present, see the Outbound Calling Overview.

Matching Algorithm

The OutboundRoutingService uses a scoring system to select the best matching rule:

  • Country match: +10
  • Full international prefix match: +length of prefix
  • Local prefix match: +length of prefix

The entry with the highest score wins. A prefix that does not match rejects the call entirely.

Permissions

ActionOwnerPBX AdminPBX UserReporter
View whitelistYesYesYesYes
Create whitelist entriesYesYesNoNo
Update whitelist entriesYesYesNoNo
Delete whitelist entriesYesYesNoNo

UI Workflow

Add a Whitelist Entry

  1. Navigate to Outbound Whitelist in the sidebar
  2. Click Add Rule
  3. Enter a name
  4. Select the destination country
  5. Enter the destination prefix (optional)
  6. Select the outbound trunk name
  7. Optionally select a Default Caller ID — an active DID owned by your organization to present on calls matching this rule
  8. Save

The destination country must be unique within your organization — you cannot create two rules for the same country.

Default Caller ID

When set, the rule's Default Caller ID is presented on outbound calls matching this rule unless the calling extension has its own caller ID, which takes precedence. See the Outbound Calling Overview for the full precedence order.

Toggle Status

Use the status toggle to enable or disable a rule. Disabled rules are not used for outbound routing.

Key Data Fields

outbound_whitelists Table

ColumnTypeNotes
idbigintPrimary key
organization_idFKTenant scope
namestring
destination_countrystring
destination_prefixstring
outbound_trunk_namestring
default_caller_id_did_idFK nullableDID presented as caller ID for matching calls
statusenumactive, inactive

The API also returns a nested default_caller_id object (id, phone_number, friendly_name) when the relationship is loaded.

MethodEndpointPurpose
GET/POST/PUT/DELETE/v1/outbound-whitelist[/{outboundWhitelist}]Standard CRUD
PATCH/v1/outbound-whitelist/{outboundWhitelist}/toggle-statusToggle active status

See the OPBX REST API reference for full schemas.