Skip to content

Field Policies (Validation & Length Limits) Documentation

13 min readUpdated: Nov 29, 2026
View as Markdown
  1. Navigation & Access
  2. Screenshots & Visual Interface
  3. 🎯 User Roles & Key Capabilities
  4. Module Overview (Technical)
  5. Business & Operational Value
  6. Configuration Tabs & Policy Reference
  7. Cross-Platform Consistency (PBX, SBC, BSS, CRM, NMS, DMS)
  8. Model Context Protocol (MCP) AI Integration
  9. Common Scenarios & Troubleshooting
  10. Glossary

To configure Field Policies in Ring2All PBX:

  1. Log in to the Ring2All PBX Web Portal (https://<domain-or-ip>/login) with administrative privileges.
  2. In the left navigation sidebar, expand Admin → System Settings.
  3. Click Field Policies (/admin/system-settings/field-policies).
  4. Review or customize limits across the five zero-scroll category tabs (Telephony, DTMF PINs, Security, Names & Identifiers, and Contacts & Content).
  5. Click Save in the bottom action bar to commit changes immediately, Cancel to discard unsaved edits while staying on the form, or Restore Defaults to revert the tenant to factory baselines after confirming the modal dialog.

[!TIP] Ring2All SBC & Ring2All BSS: In perimeter and billing nodes, Field Policies are embedded directly inside Server Settings → Validation & Limits (/settings/server), exposing the profile-relevant sections (Security, Names & Identifiers, Contacts & Content, and Telephony / Porting PINs).


The Telephony tab governs extension digit lengths, */# dialability, feature code and speed-dial ceilings, Caller ID display name lengths, CNAM 15-character carrier limits, and dial pattern thresholds. Field Policies - Telephony Tab

The DTMF PINs tab configures minimum and maximum numeric lengths for Voicemail, Feature Access, Conference, DISA, Authorization Codes, PIN Lists, VIP PINs, and LNP Porting PINs—strictly clamped to FreeSWITCH Lua DTMF collector ceilings. Field Policies - DTMF PINs Tab

The Security & Passwords tab configures minimum/maximum password lengths, Argon2id DoS ceilings, uppercase/lowercase/digit/symbol complexity toggles, username length bounds, and API key ceilings. Field Policies - Security & Passwords Tab


Role Access Level Primary Responsibilities & Capabilities
Platform Super Administrator Full Access (RW) Governs global and per-tenant length policies, configures enterprise password complexity standards, tightens telephony numbering rules, and restores factory defaults when needed.
Tenant / Domain Administrator Tenant-Scoped (RW) Aligns extension numbering length (e.g., strictly 4-digit extensions), enforces corporate voicemail PIN lengths, and sets CNAM/Caller ID compliance limits for their organization.
Security & Compliance Officer Security Governance (RW / RO) Enforces NIST/SOC 2 password minimum lengths (8–32 characters), uppercase/lowercase/digit/symbol complexity toggles, and username length standards across administrative and portal logins.
Platform AI Assistant / MCP Operator Governed MCP Tools (RO / RW) Queries active tenant policies (get_field_policies), dry-run validates candidate strings (validate_value_against_field_policy), and applies audited updates (update_field_policies).

Two-Tier Enforcement: Immutable Hard Ceilings vs. Configurable Soft Policies

Section titled “Two-Tier Enforcement: Immutable Hard Ceilings vs. Configurable Soft Policies”

Field Policies establishes a unified validation engine shared across the Ring2All frontend, Fastify REST APIs, PostgreSQL 17 databases, FreeSWITCH 1.11+ Lua handlers, and Kamailio 6.1+ tables:

flowchart LR
    Admin["Admin Console UI<br/>(/admin/system-settings/field-policies)"] -->|PUT /api/v1/validation-policy| API["Fastify 5 Validation Service"]
    MCP["MCP AI Assistant<br/>(update_field_policies)"] --> API
    API -->|Clamp Within Hard Ceilings| Bounds["Immutable Platform Hard Ceilings<br/>(PostgreSQL VARCHAR / FreeSWITCH Lua / Argon2id)"]
    Bounds -->|Persist JSONB per tenant_id| PG[("PostgreSQL 17<br/>Tenant Validation Policy")]
    PG -->|Hydrate on Login & Save| UI["All Web Forms & Inputs<br/>(Live MaxLength & Zod Validation)"]
    PG -->|Runtime API Validation| Routes["Extensions, Users, PINs,<br/>Routing & Provisioning APIs"]
  1. Immutable Hard Ceilings: Lower and upper safety boundaries derived directly from PostgreSQL column widths (VARCHAR(N)), FreeSWITCH Lua session:read() DTMF buffer lengths, ITU-T E.164 dialing limits, RFC 5321 email limits (254 chars), and Argon2id Denial-of-Service password caps (128 chars). Administrators can tighten rules inside these limits, never exceed them—permanently preventing PostgreSQL 22001 truncation errors or Lua DTMF lockouts.
  2. Configurable Tenant Soft Policies: Stored per immutable numeric tenant_id and automatically hydrated into the web client on authentication and policy updates.
  3. Invariant Checks: Every update enforces min <= max invariants across paired range controls (such as extensionMinLength <= extensionMaxLength and passwordMinLength <= passwordMaxLength).

  • Zero Truncation & Signaling Outages: Prevents operators from saving 20-digit PINs or oversized CNAM strings that would silently fail in carrier SIP headers or FreeSWITCH IVR digit collectors.
  • Per-Tenant Numbering Standardization: Enables MSPs to enforce strict dialing plans (for example, mandatory 4-digit internal extensions and 6-digit Voicemail PINs) without writing custom code.
  • Enterprise Compliance Ready: Delivers turnkey password complexity and minimum-length governance aligned with HIPAA, PCI-DSS, ISO 27001, and SOC 2 password policies.
  • Immediate UI + API Parity: Updating a single policy immediately updates live form validation, input counters, and backend REST/MCP rejection rules.

The interface is organized into 5 zero-scroll tabs to keep every setting visible and scannable on standard desktop monitors:

Parameter Policy Key Factory Default Allowed Hard Bounds Purpose & Enforcement
Extension Min Length telephony.extensionMinLength 2 1 – 15 Minimum digits allowed when provisioning SIP, Virtual, or Hot Desking extensions.
Extension Max Length telephony.extensionMaxLength 15 1 – 15 Maximum digits allowed for extension numbers (capped at E.164 15-digit limit).
Allow * and # in Extensions telephony.extensionAllowStarHash true Boolean Controls whether special star/hash characters may be included in custom dialable extensions.
Feature Code Max Length telephony.featureCodeMaxLength 12 2 – 12 Maximum dial sequence length for PBX feature codes (e.g., *97, *72).
Speed Dial Max Length telephony.speedDialMaxLength 16 1 – 16 Maximum digit length for speed-dial shortcut codes.
Caller ID Name Max Length telephony.callerIdNameMaxLength 64 10 – 64 Maximum characters for internal and SIP display Caller ID names.
PSTN CNAM Max Length telephony.cnamMaxLength 15 5 – 15 Strict North American PSTN CNAM character ceiling (standard 15-char carrier limit).
Caller ID Number Max Length telephony.callerIdNumberMaxLength 20 4 – 32 Maximum length for presented Caller ID numbers.
Dial Destination Max Length telephony.dialDestinationMaxLength 32 4 – 32 Maximum character length for forwarding targets and dial destinations.
Dial Pattern Max Length telephony.dialPatternMaxLength 64 4 – 64 Maximum pattern string length in Outbound Routes and Dial Restriction Rules.

Every PIN ceiling matches the verified FreeSWITCH Lua DTMF digit collection buffer so users are never prompted for digits that telephony scripts cannot read:

PIN Category Policy Keys (min / max) Factory Default Allowed Hard Bounds
Voicemail PIN voicemailPinMinLength / voicemailPinMaxLength 4 – 20 4 – 20 digits
Features Password / Lock PIN featuresPinMinLength / featuresPinMaxLength 4 – 10 4 – 10 digits
Conference Room PIN conferencePinMinLength / conferencePinMaxLength 2 – 10 2 – 10 digits
DISA Access PIN disaPinMinLength / disaPinMaxLength 4 – 16 4 – 16 digits
Authorization Code authCodeMinLength / authCodeMaxLength 1 – 10 1 – 10 digits
PIN List Entries pinListMinLength / pinListMaxLength 4 – 16 4 – 16 digits
VIP PIN Routing vipPinMinLength / vipPinMaxLength 1 – 20 1 – 20 digits
LNP Porting PIN (BSS) portingPinMinLength / portingPinMaxLength 4 – 8 4 – 8 digits

Parameter Policy Key Factory Default Allowed Hard Bounds Description
Password Min Length security.passwordMinLength 8 8 – 32 Minimum password length for admin users, Connect portal logins, and self-service resets.
Password Max Length security.passwordMaxLength 128 16 – 128 Hard cap preventing Argon2id CPU/memory DoS on oversized password submissions.
Require Uppercase (A–Z) security.passwordRequireUppercase false Boolean Mandates at least one uppercase ASCII character.
Require Lowercase (a–z) security.passwordRequireLowercase false Boolean Mandates at least one lowercase ASCII character.
Require Number (0–9) security.passwordRequireNumber false Boolean Mandates at least one numeric digit.
Require Special Character security.passwordRequireSpecial false Boolean Mandates at least one symbol (e.g., !@#$%^&*).
Username Min / Max Length security.usernameMinLength / MaxLength 3 – 64 2 – 32 / 8 – 64 Enforces login identifier length across admin consoles and Kamailio subscriber tables.
API Key Max Length security.apiKeyMaxLength 512 32 – 512 Maximum accepted length for external integration API keys and bearer tokens.

Parameter Policy Key Factory Default Allowed Hard Bounds
Entity Name text.nameMaxLength 100 10 – 150
First / Last Name text.firstNameMaxLength / lastNameMaxLength 80 10 – 100
Display Name text.displayNameMaxLength 120 10 – 150
Company Name text.companyNameMaxLength 150 10 – 200
Department text.departmentMaxLength 100 10 – 100
Title / Job Role text.titleMaxLength 120 10 – 200
Subject / Ticket Title text.subjectMaxLength 200 20 – 255
Alias / Code / Slug aliasMaxLength / codeMaxLength / slugMaxLength 32 / 32 / 64 4 – 100 / 4 – 80 / 4 – 100

Parameter Policy Key Factory Default Allowed Hard Bounds
Short Description text.shortDescriptionMaxLength 255 50 – 500
Long Notes text.longNotesMaxLength 2000 100 – 5000
Street Address / City / State / Postal address / city / state / postalCode 128 / 100 / 50 / 20 30–255 / 20–100 / 10–100 / 4–20
Email Address text.emailMaxLength 254 50 – 254 (RFC 5321 ceiling)
URL / Endpoint text.urlMaxLength 500 100 – 2048
SMS Message Body text.smsBodyMaxLength 1600 160 – 1600
Chat Message Body text.chatMessageMaxLength 8000 500 – 10000
AI System Prompt text.systemPromptMaxLength 16000 1000 – 32000
Template Body text.templateBodyMaxLength 131072 (128 KB) 8192 – 262144 (256 KB)

4. Cross-Platform Consistency (PBX, SBC, BSS, CRM, NMS, DMS)

Section titled “4. Cross-Platform Consistency (PBX, SBC, BSS, CRM, NMS, DMS)”

The Field Policies engine is profile-aware so every application in the Ring2All ecosystem displays only the sections relevant to its operational domain while sharing the same underlying validation rules:

Application Navigation Path Exposed Profile Tabs
Ring2All PBX Admin → System Settings → Field Policies (/admin/system-settings/field-policies) Telephony, DTMF PINs, Security, Names & Identifiers, Contacts & Content
Ring2All SBC Network → Server Settings → Validation & Limits (/settings/server) Telephony (Caller ID / Dial Patterns), Security, Names & Identifiers, Contacts & Content
Ring2All BSS Network → Server Settings → Validation & Limits (/settings/server) Telephony & Porting PINs, Security, Names & Identifiers, Contacts & Content
Ring2All CRM / NMS / DMS Settings → Server Settings Security, Names & Identifiers, Contacts & Content

5. Model Context Protocol (MCP) AI Integration

Section titled “5. Model Context Protocol (MCP) AI Integration”

Administrators and external MCP clients can inspect, update, reset, and dry-run test Field Policies programmatically across Ring2All PBX, Ring2All SBC, and Ring2All BSS.

Tool Name Platform Availability Operation Key Parameters
get_field_policies PBX, SBC (get_sbc_field_policies), BSS (get_bss_field_policies) Read include_bounds (boolean, default true)
update_field_policies PBX, SBC (update_sbc_field_policies), BSS (update_bss_field_policies) Write Partial objects for telephony, pins, security, text
reset_field_policies PBX, SBC (reset_sbc_field_policies), BSS (reset_bss_field_policies) Destructive / Guarded confirm_reset: true (required safety guard)
validate_value_against_field_policy PBX, SBC (validate_sbc_field_value), BSS (validate_bss_field_value) Dry-Run Check field_type (extension, voicemail_pin, password, username, email, caller_id_name, text, etc.), value

Dry-Run Validate a Candidate Password (validate_value_against_field_policy)

Section titled “Dry-Run Validate a Candidate Password (validate_value_against_field_policy)”
{
"tool": "validate_value_against_field_policy",
"args": {
"field_type": "password",
"value": "Telecom2026!"
}
}

Enforce Strict 4-Digit Extensions & 12-Char Passwords (update_field_policies)

Section titled “Enforce Strict 4-Digit Extensions & 12-Char Passwords (update_field_policies)”
{
"tool": "update_field_policies",
"args": {
"telephony": {
"extensionMinLength": 4,
"extensionMaxLength": 4,
"extensionAllowStarHash": false
},
"security": {
"passwordMinLength": 12,
"passwordRequireUppercase": true,
"passwordRequireNumber": true,
"passwordRequireSpecial": true
}
}
}
  • English: “Inspect our active tenant Field Policies and verify whether 6-digit extensions and 10-character passwords pass validation.”
  • Spanish: “Consulta las políticas de campos activas del tenant y actualiza la longitud mínima de contraseña a 12 caracteres requiriendo mayúsculas y números.”

Scenario 1: Enforcing Enterprise Password Complexity (SOC 2 / PCI-DSS)

Section titled “Scenario 1: Enforcing Enterprise Password Complexity (SOC 2 / PCI-DSS)”
  1. Open Admin → System Settings → Field Policies and select the Security tab.
  2. Set Password Min Length to 12.
  3. Enable Require Uppercase, Require Lowercase, Require Number, and Require Special Character.
  4. Click Save. All new users, password resets, and self-service profile password updates immediately enforce the stricter policy.
  1. Click Restore Defaults in the bottom action bar.
  2. Confirm the destructive action in the modal dialog.
  3. All customized limits revert atomically to the platform defaults shown in Section 3.
  • Validation Error "min cannot exceed max": Verify that the minimum value of a paired range (e.g., voicemailPinMinLength) is less than or equal to its maximum (voicemailPinMaxLength) before saving.
  • Input Rejects Value Above Hard Ceiling: Hard ceilings (such as 15 for CNAM, 10 for Conference PINs, or 128 for Passwords) are enforced to protect PostgreSQL schemas and FreeSWITCH Lua DTMF readers and cannot be exceeded.

  • CNAM (Caller ID Name): 15-character North American PSTN caller display name standard transmitted across carrier trunks.
  • DTMF (Dual-Tone Multi-Frequency): Touch-tone telephone keypad digits (0–9, *, #) captured by FreeSWITCH Lua scripts for PIN validation.
  • Hard Ceiling: Immutable technical maximum imposed by database column definitions, signaling RFCs, or cryptographic DoS bounds.
  • Soft Policy: Per-tenant configurable limit operating safely inside the platform’s hard ceiling.