Skip to main content

Set Up Access Control Using CarrierX Portal - DeepSeek

Introduction

Access control rules let you manage communication permissions for your CarrierX services. Common use cases include:

  • Blocking calls/SMS to premium numbers
  • Restricting communications to specific numbers only
  • Filtering messages containing certain content
Pro Tip

For comprehensive details about access control functionality, see our How It Works: Access Control guide.

In this tutorial, we'll create rules to:

  1. Block calls to numbers starting with 18807 while allowing all others
  2. Restrict SMS sending to only 15059983793
  3. Apply these rules at both account and trunk group levels

Terms Used

ACRs (Access Control Rules): Individual rules that define matching conditions and actions.

ACLs (Access Control Lists): Groups of ACRs applied to accounts or trunk groups (pronounced "ack-els").

Prerequisites

Before starting:

I. Create Access Control Rules

  1. Log in to CarrierX Portal
  2. Navigate to Configure > Global Settings
  3. Select the Access Control Rules tab

Global Settings Location

  1. Click Add Rule
  2. Configure first rule (voice blocking):
    • Name: Block 18807 Prefix
    • Field: called
    • Quantifier: any
    • Operation: prefix
    • Entry: 18807

Voice Rule Configuration

  1. Click Create

  2. Create second rule (SMS restriction):

    • Name: Allow Only 15059983793
    • Field: to_did
    • Quantifier: all
    • Operation: exact
    • Entry: 15059983793

II. Create Account-Level ACLs

  1. Go to Configure > Global Settings > Access Control Lists
  2. Click Add ACL
  3. Configure voice ACL:
    • Direction: outbound
    • Voice Action True: reject403
    • Add your Block 18807 Prefix rule

Account ACL Setup

  1. Click Update

III. Create Trunk Group-Level ACLs

  1. Navigate to Configure > Trunk Groups
  2. Select your target trunk group
  3. Go to Access Control Lists tab
  4. Click Add ACL
  5. Configure SMS ACL:
    • Direction: outbound
    • SMS Action False: reject
    • Add your Allow Only 15059983793 rule

IV. Verify Your Setup

Test your configuration:

Voice Calls:

  • Call to 18807425877 → Should be blocked
  • Call to 15162065515 → Should connect

SMS Messages:

  • Text to 15059983793 → Should deliver
  • Text to 18882114787 → Should be blocked
success

You've successfully configured access control! For advanced configurations, explore our API documentation or contact support.