Skip to main content

OutboundWhitelist Model

The OutboundWhitelist model represents allowed destination patterns for outbound dialing restrictions.

Overview

PropertyValue
NamespaceApp\Models
Tableoutbound_whitelists
Primary Keyid
Global ScopeOrganizationScope

Database Schema

ColumnTypeNullableDescription
idbigint unsignedNoPrimary key
organization_idbigint unsignedNoOrganization ID
namevarchar(255)NoRule name
patternvarchar(255)NoRegex pattern
descriptiontextYesDescription
priorityintNoRule priority
statusvarchar(50)Noactive/inactive
created_attimestampNoCreation timestamp
updated_attimestampNoUpdate timestamp

Relationships

Belongs To

  • organization() → Organization

Methods

  • isActive(): bool
  • matches(string $number): bool

Pattern Examples

PatternDescription
^\+1[0-9]{10}$US numbers only
^\+972Israel numbers
`^(+1+44)`