--- title: "Call Flow Editor Module Documentation" description: "Interactive visual DAG call routing topology builder, inline destination inspector, cycle detection, and multi-format PNG/JPG/PDF diagram exporter for Ring2All PBX." --- ## Table of Contents 1. [Module Overview (Technical)](#1-module-overview-technical) 2. [Module Overview (Commercial/Business)](#2-module-overview-commercialbusiness) 3. [Module Overview (End User/Administrator)](#3-module-overview-end-useradministrator) 4. [Supported Routing Node Types & Multi-Branch Edges](#4-supported-routing-node-types--multi-branch-edges) 5. [Interactive Canvas, Block Inspector & Inline Editing](#5-interactive-canvas-block-inspector--inline-editing) 6. [Loop Detection & Same-Reference Deduplication](#6-loop-detection--same-reference-deduplication) 7. [High-Resolution Diagram Export (PNG, JPG & Print-Ready Light PDF)](#7-high-resolution-diagram-export-png-jpg--print-ready-light-pdf) --- ## 1. Module Overview (Technical) ### What Is the Call Flow Editor? The **Call Flow Editor** (`PBX → Calls Routing → Call Flow Editor`) is an interactive Directed Acyclic Graph (**DAG**) visualizer and inline routing editor for Ring2All PBX. Instead of navigating across multiple separate module screens to trace where an inbound DID or extension call goes when unanswered, timed out, or matched by a schedule, administrators can select any starting entry point and immediately inspect, edit, and export its complete end-to-end routing tree on a single interactive canvas. ``` ┌────────────────────────────────────────────────────────────────────────────┐ │ Ring2All Call Flow Editor Engine │ ├────────────────────────────────────────────────────────────────────────────┤ │ │ │ Entry Point Selector (Inbound Route, IVR, Time Condition, Queue, Ext) │ │ │ │ │ ▼ │ │ ┌──────────────────────────────────────────────────────────────────────┐ │ │ │ Recursive Graph Resolver (/api/v1/pbx/call-flows/graph) │ │ │ │ • Traverses 12+ PBX routing tables in a single multi-tenant query │ │ │ │ • Resolves IVR DTMF options, Timeout, Invalid Input & Loopbacks │ │ │ │ • Resolves Time Condition Match / No-Match & Holiday overrides │ │ │ │ • Resolves Extension Forwardings, Personal Assistant & Voicemail │ │ │ └──────────────────────────────────┬───────────────────────────────────┘ │ │ │ │ │ ▼ │ │ ┌──────────────────────────────────────────────────────────────────────┐ │ │ │ Interactive SVG/HTML DAG Canvas + Inline Block Inspector │ │ │ │ • Animated directional edges when a routing block is selected │ │ │ │ • Inline destination re-pointing & "+ New" destination creation │ │ │ │ • 1-Click Export to PNG, JPG, and Print-Ready Light-Mode PDF │ │ │ └──────────────────────────────────────────────────────────────────────┘ │ └────────────────────────────────────────────────────────────────────────────┘ ``` --- ## 🎯 User Roles & Key Capabilities | User Role | Key Capabilities & Permissions | |-----------|--------------------------------| | **PBX Super Admin / Telecom Engineer** | Audit end-to-end call routing trees across domains, detect unintended routing loops (`LOOP` badge), re-point destinations inline from the **Block Inspector**, and create new target modules without leaving the canvas. | | **Customer Success / Implementation Specialist** | Generate clean, customer-ready call flow architecture diagrams in **PNG**, **JPG**, or **Light-Mode Print PDF** for onboarding handoffs and compliance audits. | | **Helpdesk / Support Analyst** | Visually trace how a specific DID (`Inbound Route`) or VIP extension routes calls across Business Hours (`Time Conditions`), `IVR` menus, `Queues`, `Ring Groups`, and `Voicemail` fallbacks. | --- ## 2. Module Overview (Commercial/Business) ### Key Benefits - **Zero Blind Spots in Complex Call Trees**: Instantly reveals every branch of an Inbound DID—including DTMF options (`Option 1`, `Option 2`), `Timeout` and `Invalid Input` fallbacks, `Time Condition` matches, and `Queue` overflow destinations. - **Readable Human Labels**: Terminal actions display clear operational labels (such as **`Hangup`**, **`Congestion`**, **`Busy Tone`**, **`Play Sit Tone`**) rather than raw SIP/FreeSWITCH hangup cause codes, while IVR blocks display descriptive multi-line summaries of their greeting and timeout rules. - **Animated Path Highlighting**: Clicking any block on the canvas animates all incoming and outgoing routing lines connected to that block, making it effortless to trace paths in dense multi-tier trees. - **Ink-Friendly Light PDF & High-Res Image Export**: Exports the complete call flow diagram to **PNG**, **JPG**, or a **Print-Ready Light-Mode PDF** (white canvas background with crisp dark typography and color-coded node badges) regardless of whether the user's browser is in Dark Mode or Light Mode. --- ## 3. Module Overview (End User/Administrator) ### Interface Preview ![Call Flow Editor](/screenshots/pbx/calls-routing/call-flow-editor.png) ### Navigation 1. Navigate to **PBX → Calls Routing → Call Flow Editor** (`/pbx/calls-routing/call-flow-editor`). 2. In the top toolbar: - Choose the **Entry Module Type** (`Inbound Routes`, `IVR`, `Time Conditions`, `Queues`, `Ring Groups`, `Extensions`, etc.). - Select the specific **Root Entry Item** (for example, `DID +13055550100 — Main Corporate Line`). 3. Use the canvas controls (`Zoom In`, `Zoom Out`, `Fit View`, `Reset Pan`) to explore the tree, or click any block to open the **Block Inspector** on the right panel. --- ## 4. Supported Routing Node Types & Multi-Branch Edges | Node Type | Outgoing Branches Visualized | Card Style & Details | |-----------|------------------------------|----------------------| | **Inbound Routes** (`inbound_routes`) | Primary `Destination` edge | Rectangular entry node with DID number / Caller ID pattern. | | **IVR Menus** (`ivr`) | `Option 0–9 / * / #`, `Timeout`, and `Invalid Input` | Descriptive multi-line node displaying IVR name, greeting prompt, and timeout parameters. | | **Time Conditions** (`time_conditions`) | `Time Match` and `No Match` | Displays linked Time Group schedule and dual-branch routing paths. | | **Queues** (`queues`) | `Failover / Timeout Destination` | Displays queue number, ring strategy, and overflow target. | | **Ring Groups** (`ring_groups`) | `No Answer Destination` | Displays group extension, ring strategy, and fallback target. | | **Extensions** (`extensions`) | `No Answer`, `Busy`, `Unreachable`, `Personal Assistant (PA Key 1–9)`, `Voicemail` | Displays extension number, user name, and active forwarding/PA branches. | | **Call Flow Control** (`call_flow_control`) | `Normal Flow (Green)` and `Override Flow (Amber)` | Displays day/night feature code toggle and both states. | | **Parking Lots** (`parking_lots`) | `Parking Timeout Return / Failover` | Displays parking orbit range and timeout destination. | | **Voicemail / Announcements / Conferences / DISA** | Post-playback destination or terminal voicemail box | Rounded capsule or structured node depending on continuation. | | **Terminate Call** (`terminate`) | Terminal leaf node (`End`) | Rounded pill node displaying human-readable termination action (`Hangup`, `Congestion`, `Busy`). | --- ## 5. Interactive Canvas, Block Inspector & Inline Editing When you click any node in the Call Flow Editor: 1. **Animated Connected Edges**: All parent and child connection lines attached to the selected node animate with a directional flow pulse so you can immediately see where calls arrive from and where they go next. 2. **Block Inspector Panel**: Opens on the right side of the workspace: - **Re-Point Existing Branches**: Change the target **Module Type** and **Destination / Item** of any branch directly from the inspector dropdowns and click **Apply Changes**. - **Create `+ New` Destination Inline**: Click **`+ New`** next to a destination selector to create a new Queue, IVR, Ring Group, Time Condition, or Announcement on the fly and automatically link it to the current branch. - **Open Full Module Form**: Click the external link shortcut in the inspector header to open the full Level 2 configuration form for that specific item. --- ## 6. Loop Detection & Same-Reference Deduplication To keep large call trees clean and prevent infinite recursion: - **Loop Detection (`LOOP` Badge)**: When an IVR option or fallback points back to an ancestor node higher in the tree (for example, `Option 3 → Return to Main IVR`), the ancestor node displays an amber **`LOOP`** badge and the recursive reference is rendered as a dashed loopback card (`Goes back to an earlier...`). - **Shared Target Deduplication (`Same as ...`)**: When multiple branches converge on the exact same downstream destination, duplicate subtrees are collapsed cleanly with a reference indicator so the diagram remains compact and easy to read. --- ## 7. High-Resolution Diagram Export (PNG, JPG & Print-Ready Light PDF) Click the **Export** buttons in the top-right toolbar of the Call Flow Editor to share or archive the diagram: | Export Format | Output Behavior | Best For | |---------------|-----------------|----------| | **PNG (`Export PNG`)** | High-resolution `@2x` raster image of the complete call flow graph. | Embedding in technical documentation, wikis, and tickets. | | **JPG (`Export JPG`)** | Compressed high-resolution `@2x` JPEG image. | Quick sharing in chat channels and emails. | | **PDF (`Print / PDF`)** | Automatically renders the entire call flow graph onto a **clean white Light-Mode sheet** (no dark background, saving toner/ink) with structured headers, metadata timestamp, and high-contrast node borders. | Printing physical handoff binders, executive sign-offs, and compliance audits. |