Skip to main content

Inbound Blacklist

The Inbound Blacklist stops unwanted callers before a call is routed. Each rule matches the caller ID against a pattern and decides what the blocked caller experiences: silence, a short message, or a long wait on hold music. A rule applies to all your phone numbers or only to the numbers you pick.

Purpose​

Use this module to:

  • block spam, robocalls and abusive callers;
  • block one number, a range that starts with a prefix, or a wildcard pattern;
  • choose how a blocked call is handled;
  • apply a rule to every phone number or only to some;
  • see how many calls each rule has blocked.

Prerequisites​

  • At least one phone number if you want a rule for specific numbers. See Phone Numbers.
  • You are the Owner or a PBX Admin.

Permissions​

ActionOwnerPBX AdminPBX UserReporter
See Inbound Blacklist in the sidebarYesYesNoNo
Read rules, blocked-call logs and statistics (API)YesYesYesYes
Create, edit, toggle or delete a ruleYesYesNoNo

How a call is checked​

When a call arrives on one of your active phone numbers, OPBX looks at every active rule that is either global or assigned to that number. If the caller ID matches a rule, the call is handled by that rule's strategy and never reaches its normal destination. The check runs before any routing (IVR, queue, ring group and so on).

Match types​

Match typeMatches whenExample patternBlocks
Exact MatchThe caller ID equals the pattern+12025550190Only that number
Prefix MatchThe caller ID starts with the pattern+1202555019+12025550190 to +12025550199
Wildcard PatternThe caller ID matches a shell-style pattern: * is any characters, ? is one character+1202555018*Every number starting +1202555018

The caller ID is compared exactly as the carrier delivers it, usually in E.164 format with a leading +. Write patterns the same way.

Rejection strategies​

StrategyWhat the caller experiences
Drop (Silent)The call is hung up at once
Reject (Message)The caller hears "Your call has been rejected", then the call ends
Torment (Music)The caller is placed alone in a holding room with hold music for 600 seconds (10 minutes), then disconnected. The room prefix is generated automatically

Every blocked call is logged and adds 1 to the rule's Blocked Count.

Workflows​

Find a rule​

Who can do this: Owner and PBX Admin (the only roles with Inbound Blacklist in the sidebar).

  1. Open Inbound Blacklist (under Apps and Security › Security).
  2. Type in Search by caller ID pattern....
  3. Click Reset to clear the search.

The list shows each rule's pattern and match type, Strategy, Scope, Blocked Count, Created and Status (see List columns). The page loads up to 100 rules and pages through them 20 at a time.

Inbound Blacklist list with four rules: one Wildcard (Drop), one Prefix (Torment) and two Exact (Drop and Reject), each Global, with blocked counts 3, 31, 14 and 6

Block a caller​

Who can do this: Owner and PBX Admin (InboundBlacklistPolicy::create; the Add Blacklist Entry button is shown to these roles only).

  1. Open Inbound Blacklist.
  2. Click Add Blacklist Entry.
  3. Enter the Caller ID Pattern, for example +12025550190 or +1202555018*.
  4. Choose the Match Type (default Exact Match) and the Rejection Strategy (default Drop (Silent)). For Torment (Music) the dialog notes that callers are held with music for 10 minutes (600 seconds) and that the room prefix is generated.
  5. Leave Global Blacklist on to protect every phone number, or turn it off and tick the numbers under Select Phone Numbers. The counter shows how many are selected; Refresh reloads the number list.
  6. Click Create Entry.

The dialog closes, the toast "Blacklist entry created successfully" appears and the rule is listed as Active. If the server refuses the entry, its message appears under the field or as a toast (see Common errors).

FieldRequiredLimitMeaning
Caller ID PatternYesUp to 50 characters: digits, +, * and ? onlyThe number or pattern to block
Match TypeYesExact Match, Prefix Match or Wildcard PatternHow the pattern is compared (see Match types)
Rejection StrategyYesDrop (Silent), Reject (Message) or Torment (Music)What the blocked caller experiences
Global BlacklistNoOn or off. Default: onOn: the rule applies to every phone number. Off: pick the numbers under Select Phone Numbers
Select Phone NumbersWhen Global is offAt least one. Saving with none shows "Please select at least one phone number when not using global scope." under the listThe phone numbers the rule protects, shown by friendly name or number
Add Blacklist Entry dialog with pattern +1202555019, Prefix Match, Torment (Music) with the 600-second note, and Global Blacklist off with two phone numbers ticked

Edit a rule​

Who can do this: Owner and PBX Admin (InboundBlacklistPolicy::update). For other roles the rows do not open.

  1. Click the rule's pattern or row.
  2. Change the fields in Edit Blacklist Entry.
  3. Click Update Entry.

The toast "Blacklist entry updated successfully" appears. Saving a rule with the Torment strategy generates a new room prefix and sets the timeout to 600 seconds again.

Edit Blacklist Entry dialog for the +12025550191 rule with Exact Match, Reject (Message) and Global Blacklist on

Turn a rule on or off​

Who can do this: Owner and PBX Admin (InboundBlacklistPolicy::update). For other roles the status pill is not clickable.

  1. In the list, click the rule's Active or Disabled pill in the Status column.

The toast "Status updated successfully" appears and the pill changes. The change applies to the next call.

Delete a rule​

Who can do this: Owner and PBX Admin (InboundBlacklistPolicy::delete; the Delete action is shown to these roles only).

  1. Click the Delete (trash) action on the row.
  2. In Delete Blacklist Entry, click Delete.

The toast "Blacklist entry deleted successfully" appears. A rule is never referenced by other configuration, so the delete always goes through. The rule's blocked-call log entries are kept, without a link to the deleted rule.

Delete Blacklist Entry confirmation for the +12025550191 rule
Phone numbers used in a rule

A phone number selected in a rule cannot be deleted from the Phone Numbers page. The delete is refused and the dialog lists the blacklist rule. Remove the number from the rule first (or make the rule global).

List columns​

ColumnShows
PatternThe caller ID pattern, with the match type under it
StrategyDrop (Silent), Reject (Message) or Torment (Music)
ScopeGlobal, the one selected number, or "n DIDs"
Blocked CountCalls this rule has blocked
CreatedCreation date
StatusActive or Disabled; click to switch

Blocked-call logs and statistics​

The blocked-call log and the statistics are available through the API only; the page does not show them.

  • Blocked-call log (GET /v1/inbound-blacklist/blocked-logs): one row per blocked call with caller ID, called number, rule, phone number, strategy and time. Filters: caller_id, blacklist_id, did_number_id, from_date, to_date, rejection_strategy. Rows are kept for 90 days.
  • Statistics (GET /v1/inbound-blacklist/statistics): totals of rules (all, active, global), counts by strategy and match type, and calls blocked today and this week. The figures are cached for up to 5 minutes and refreshed after every change to a rule.

Common errors​

MessageWhat it meansWhat to do
The caller ID pattern must be a valid phone number or pattern (digits, +, *, ? only).The pattern has letters, spaces or other charactersRemove them
Please select at least one phone number when not using global scope.Global is off and no number is tickedTick at least one number or switch Global on

Key data fields​

inbound_blacklists​

ColumnNotes
idPrimary key
organization_idTenant scope
match_typeexact, prefix or wildcard
caller_id_patternUp to 50 characters
is_globaltrue: all numbers. false: only the numbers in the inbound_blacklist_did_number table
rejection_strategydrop, reject or torment
torment_room_prefix, torment_music_timeoutSet automatically for Torment (random prefix, 600 seconds)
statusactive or inactive
blocked_countCalls blocked by this rule

blocked_call_logs​

ColumnNotes
inbound_blacklist_idThe rule that matched
did_number_idThe number called (set for number-specific rules)
caller_id, called_numberFrom and To of the blocked call
rejection_strategyThe strategy applied
blocked_atTime of the block
MethodEndpointPurpose
GET/v1/inbound-blacklistList (search, match_type, rejection_strategy, scope = global or did_specific, status, per_page up to 100)
POST/v1/inbound-blacklistCreate. is_global defaults to false, so a rule without "is_global": true needs at least one did_number_ids entry (422 otherwise)
GET/v1/inbound-blacklist/{id}One rule
PUT/v1/inbound-blacklist/{id}Update. A rule that ends up non-global must keep at least one phone number (422 otherwise)
PATCH/v1/inbound-blacklist/{id}/toggle-statusSwitch between active and inactive
DELETE/v1/inbound-blacklist/{id}Delete
GET/v1/inbound-blacklist/blocked-logsBlocked-call log
GET/v1/inbound-blacklist/statisticsAggregate statistics

See the OPBX REST API reference for full schemas.