Plans & Packages Catalog Module Documentation
π― User Roles & Key Capabilities
Section titled βπ― User Roles & Key Capabilitiesβ| Role | Primary Use Case | Key Capabilities |
|---|---|---|
| Product Catalog Architect | Plan definition & bundle packaging. | Build recurring SaaS/UCaaS subscription plans, configure trial periods, and define setup fees. |
| Tariff & Rating Analyst | Real-time call rating & LCR margins. | Maintain international and domestic rate tables, specify billing increments, and set margin multipliers. |
| Revenue Assurance Specialist | Real-time OCS charging oversight. | Audit rating engine calculations, verify prepaid debiting, and ensure zero-loss call teardown. |
Table of Contents
Section titled βTable of Contentsβ- Module Overview (Technical)
- Module Overview (Commercial & Business Value)
- Visual Interface & Form Structure
- Architectural Flow & Subscription Provisioning
- Common Scenarios & Operational Playbooks
- Troubleshooting & Diagnostic Commands
- Model Context Protocol (MCP) AI Integration
- Glossary
1. Module Overview (Technical)
Section titled β1. Module Overview (Technical)βThe Plans & Packages Catalog module defines the commercial products and subscription templates offered by the telecom operator. It encapsulates monthly base prices, bundled resource allowances (concurrent channels, extension seats, pooled outbound minutes, call recording storage GB), Fair Usage Policies (FUP), and overage pricing models.
Service Types Supported
Section titled βService Types Supportedβ- Hosted Cloud PBX (
mini_pbx): Multi-tenant PBX service with bundled extensions, IVRs, queues, conference bridges, and Ring2All PBX provisioning automation. - Wholesale SIP Trunk (
sip_trunk): Dedicated trunking packages with burstable concurrent channel limits, Ring2All SBC dispatching, and per-minute overage rating. - Telecom Bundle / Combo (
bundle): Hybrid packages pairing cloud PBX extensions with high-capacity SIP trunking and pooled toll-free/domestic minutes. - Hardware Rental (
hardware): Physical equipment leases (e.g. Yealink IP deskphones, ATA gateways) billed as recurring monthly line items. - Custom Elastic Sizing (
is_custom_sizing): Dynamic sliding-scale packages allowing customer-selected step increments for channels, extensions, and recording storage.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β Product Plan (service catalog plans) β β β’ service_type: 'mini_pbx' | 'sip_trunk' | 'bundle' | 'hardware' β β β’ price: NUMERIC(10,2) (e.g. $39.99/mo) | currency: 'USD' β β β’ included_extensions: 10 | included_channels: 4 β β β’ included_minutes: 1000 | fup_overage_rate_per_min: $0.0150 β β β’ rate_card_id: FK -> LCR rate cards (Outbound overage deck) β βββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ β βββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββ βΌ βΌ βββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββ β Ring2All PBX Tenant Limits β β Ring2All SBC Channel Policy β β β’ Max Extensions: 10 β β β’ Max Concurrent Channels: 4 β β β’ Max Queues: 2 β β β’ Trunk Outbound CPS Bounds β β β’ Storage Retention: 180 Days β β β’ Associated Rate Card Routing β βββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββ2. Module Overview (Commercial & Business Value)
Section titled β2. Module Overview (Commercial & Business Value)β- Predictable Recurring Revenue (MRR): Turns unpredictable VoIP usage into steady, automated monthly or annual recurring revenue streams.
- Automated Tier Enforcement: Automatically provisions and enforces operational resource ceilings in the voice engines, preventing resource starvation or unpaid over-consumption.
- Flexible Packaging & Upselling: Supports fixed packages for standard enterprise clients alongside modular elastic plans for high-growth enterprises needing incremental capacity on demand.
3. Visual Interface & Form Structure
Section titled β3. Visual Interface & Form Structureβ4.1 Plans Catalog (List View)
Section titled β4.1 Plans Catalog (List View)βThe Product Plans & Packages catalog displays all active and archived service offerings with clear badges indicating service classification, base price, bundled capacities, and subscriber counts.

4.2 Plan Configuration Form (Form View)
Section titled β4.2 Plan Configuration Form (Form View)βThe Plan Configuration form manages granular product rules across commercial pricing, voice channel limits, extension allowances, minute bundles, and recording storage quotas.

4.3 Form Parameter Reference
Section titled β4.3 Form Parameter Referenceβ| Parameter Name | Data Type | Required | Default Value | Description & Business Rules |
|---|---|---|---|---|
| Plan Name | String |
Yes | β | Marketing title displayed on customer quotes, invoices, and the self-service Plan Store. |
| Plan Code / SKU | String |
Yes | β | Unique alphanumeric SKU (e.g. PBX_PRO_10EXT). Immutable once associated with active customer subscriptions. |
| Service Classification | Enum |
Yes | mini_pbx |
Classification: mini_pbx (Cloud PBX), sip_trunk (Trunking), bundle (Combined), hardware (Lease). |
| Base Price | Numeric |
Yes | 0.00 |
Recurring subscription price billed at the start of each billing period in the planβs currency. |
| Billing Period | Enum |
Yes | monthly |
Billing frequency: monthly, quarterly, semi_annual, annual. |
| Included Channels | Integer |
Yes | 2 |
Number of simultaneous call channels provisioned on Ring2All SBC / PBX cores. |
| Included Extensions | Integer |
Yes | 0 |
Number of SIP extensions permitted within the customerβs Ring2All PBX domain. |
| Included Minutes | Integer |
Yes | 0 |
Pooled outbound domestic minutes included per cycle before FUP overage pricing begins. |
| FUP Overage Rate | Numeric |
Yes | 0.0000 |
Per-minute billing rate applied to outbound calls once pooled included minutes are depleted. |
| Associated Rate Card | Dropdown |
No | None | Linked rate card used to bill international or off-net destinations not covered by included minutes. |
| Recording Quota (GB) | Integer |
Yes | 0 |
Bundled audio storage space for call recordings and voicemails before storage overages apply. |
| Root FQDN Domain | String |
No | cloudpbx.local |
Predefined parent FQDN (e.g. pbx.carrier.com) appended to the customerβs chosen prefix (acme.pbx.carrier.com) during Mini-PBX provisioning. |
| Infrastructure Node | Dropdown |
No | Auto |
Target Ring2All PBX cluster node for provisioning. Leave as Auto for automated least-loaded cluster placement. |
| Status (Active) | Boolean |
Yes | true |
When active, the plan is available for customer assignment and self-service purchasing. |
Multimodal AI Package Configuration (3-Block Allowance)
Section titled βMultimodal AI Package Configuration (3-Block Allowance)βThe Plan Configuration form exposes three specialized blocks for packaging and monetizing Artificial Intelligence telephony capabilities:
| AI Service Block | Parameter | Data Type | Default | Description & Operational Behavior |
|---|---|---|---|---|
| AI Chat & AI Assistant Tokens | included_ai_tokens |
BigInt |
0 |
Pooled prompt and completion tokens included per billing cycle for web portal AI assistant and extension chatbots. |
ai_token_overage_rate |
Numeric |
0.0000 |
Retail price charged per 1,000 tokens once the included monthly token allowance is exhausted. | |
| AI Voice Agents | included_ai_voice_minutes |
Integer |
0 |
Bundled real-time interactive voice agent minutes per cycle for inbound IVR bots and outbound voice assistants. |
ai_voice_overage_rate_per_min |
Numeric |
0.0000 |
Retail per-minute rate applied to interactive voice sessions exceeding the bundled minute allowance. | |
| Audio Transcription (STT) | included_ai_transcription_minutes |
Integer |
0 |
Bundled minutes for automatic call recording transcription, voicemail-to-text, and AI executive summaries. |
ai_transcription_overage_rate_per_min |
Numeric |
0.0000 |
Retail per-minute rate applied to speech-to-text transcription once included minutes are depleted. |
4. Architectural Flow & Subscription Provisioning
Section titled β4. Architectural Flow & Subscription Provisioningβ Customer Subscribes to Plan β βΌ βββββββββββββββββββββββββββββββββββ β Public Plans Catalog SKU β β β’ Service Type: mini_pbx β β β’ Price: $49.99/mo β β β’ Ext Quota: 20 | Channels: 6 β β β’ Bundled AI: 500k tokens, β β 100 voice min, 60 STT min β βββββββββββββββββ¬ββββββββββββββββββ β Triggers Automated Provisioning βΌ βββββββββββββββββββββββββββββββββββ β Subscription Activation β βββββββββββββββββββββββββββββββββββ€ β 1. Ledger Entry: $49.99 debit β β 2. PBX API: Provision Tenant β β with 20 extensions limit β β 3. SBC API: Provision Trunk β β with 6 max channels β β 4. OCS: Initialize subscription β β balances for Voice, Tokens, β β and Audio Transcription β βββββββββββββββββ¬ββββββββββββββββββ β βΌ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β Real-Time OCS Multimodal Rating Run β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€ β When an AI session or call completes: β β 1. Ingest usage (tokens, duration, service type) β β 2. Check active subscription bundle balance: β β β’ If balance > 0: Deduct atomically (Billed = $0) β β β’ If balance = 0: Apply overage rate from plan β β 3. Debit customer prepaid wallet if overage occurs β β 4. Generate auditable AIDR record β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[!TIP] Cloudflare Wildcard DNS & Multi-SBC Load Balancing: To route customer Mini-PBX sub-subdomains (
acme.<root_domain>) across multiple Ring2All SBC nodes for both SIP registration and HTTPS Web Admin without per-order DNS API calls, see Cloudflare, Multi-SBC & BSS Unified Subdomain Routing.
5. Common Scenarios & Operational Playbooks
Section titled β5. Common Scenarios & Operational PlaybooksβScenario A: Creating an Elastic Sized SIP Trunking Plan
Section titled βScenario A: Creating an Elastic Sized SIP Trunking Planβ- Navigate to Services & Rates β Plans (Catalog) and click + Add Plan.
- Set Service Classification to
sip_trunkand enter SKUTRUNK_ELASTIC_BASE. - Set base price to
$25.00/mowith 4 included channels. - Toggle Enable Custom Sizing and configure
channel_step = 2at$10.00per step. - In Associated Rate Card, select the wholesale outbound termination rate card.
- Click Save Plan. The plan appears in the online catalog ready for customer self-service subscription.
Scenario B: Retiring / Archiving an Obsolete Plan Tier
Section titled βScenario B: Retiring / Archiving an Obsolete Plan Tierβ- Locate the outdated plan in the catalog table and open the editor.
- In the status section, toggle Active Status from
ActivetoArchived / Inactive. - Save changes. Existing active subscribers continue on their grandfathered rate, but the plan is hidden from the public Plan Store and new manual account assignments.
6. Troubleshooting & Diagnostic Commands
Section titled β6. Troubleshooting & Diagnostic CommandsβQuerying Catalog Plans & Quota Configurations (PostgreSQL)
Section titled βQuerying Catalog Plans & Quota Configurations (PostgreSQL)βsu - postgres -c "psql -d ss_billing -c \"SELECT id, name, code, service_type, price, included_extensions, included_channels, included_minutes, is_activeFROM plansORDER BY id ASC;\""Checking Plan Details via REST API
Section titled βChecking Plan Details via REST APIβcurl -s -k -X GET "https://198.51.100.29/api/v1/plans/1" \ -H "Authorization: Bearer <TOKEN>" | jq .7. Model Context Protocol (MCP) AI Integration
Section titled β7. Model Context Protocol (MCP) AI IntegrationβThe Plans & Packages Catalog module connects natively to the Ring2All BSS MCP Server, allowing autonomous AI agents and billing operators to query commercial offerings, inspect quota parameters, and audit active customer subscriptions.
Available MCP Tools
Section titled βAvailable MCP Toolsβ| Tool Name | Access Role | Description & Primary Function | Example Arguments |
|---|---|---|---|
list_billing_plans |
Billing Operations / Admin |
Lists available SaaS plans, trunk packages, recurring prices, and quotas. | {"status": "active"} |
get_billing_plan |
Billing Operations / Admin |
Retrieves detailed plan configuration including included extensions, channels, and rate cards. | {"planId": "1"} |
list_active_subscriptions |
Billing Operations / Admin |
Lists active recurring customer subscriptions, renewal dates, and quantities. | {"customerId": "1"} |
Sample MCP Tool Execution: get_billing_plan
Section titled βSample MCP Tool Execution: get_billing_planβRequest Payload
Section titled βRequest Payloadβ{ "name": "get_billing_plan", "arguments": { "planId": "1" }}Response Payload
Section titled βResponse Payloadβ{ "id": "1", "name": "Business PBX Starter", "code": "PBX_START_10EXT", "serviceType": "mini_pbx", "price": "$39.99", "currency": "USD", "billingPeriod": "monthly", "includedExtensions": 10, "includedChannels": 4, "includedMinutes": 1000, "includedStorageGb": 10, "fupOverageRate": "$0.0150/min", "rateCard": "Standard Retail Rate Card", "active": true}Conversational AI Prompts for AI Assistant
Section titled βConversational AI Prompts for AI Assistantβ- βList all active PBX plans and compare their included extensions and monthly prices.β
- βShow detailed configuration and included channels for plan SKU PBX_START_10EXT.β
- βWhich active subscriptions are currently renewing for customer 1?β
8. Glossary
Section titled β8. Glossaryβ- MRR (Monthly Recurring Revenue): Predictable total revenue generated by all active subscriptions every 30 days.
- FUP (Fair Usage Policy): Terms governing acceptable use of βunlimitedβ or bundled minute pools, triggering per-minute rates upon quota exhaustion.
- Elastic Sizing: Commercial packaging model that scales dynamically based on customer-selected channel and extension increments.
- Rate Card Binding: Associating a destination tariff matrix to a subscription for rating non-inclusive calls.
- Model Context Protocol (MCP): Open protocol standard that enables secure, controlled integration between Large Language Models and external tools, databases, and telecom rating engines.

