Skip to content

Active Calls Module Documentation

11 min readUpdated: Nov 29, 2026
View as Markdown
  1. Navigation & Access
  2. Screenshots & Visual Interface
  3. Module Overview (Technical)
  4. Module Overview (Commercial/Business)
  5. Module Overview (End User/Administrator)
  6. Call Fields Reference
  7. Call States
  8. Common Scenarios & Examples
  9. Limitations & Important Notes
  10. Troubleshooting Tips
  11. Glossary
  12. Model Context Protocol (MCP) AI Integration

To access the Active Calls live monitor:

  1. Log in to the Ring2All Web Portal (https://<domain-or-ip>/login).
  2. In the left navigation sidebar, expand Reports.
  3. Under PBX Reports, click Active Calls (/reports/pbx/active-calls).
  4. Monitor active channels in real time, inspect codec utilization, verify bridging states, or use the Refresh button on the toolbar to update channel states.

Live call supervision dashboard displaying originating legs, caller and destination names, IP addresses, duration timers, active media codecs (PCMU, G722), and channel execution status. Active Calls Real-Time Monitor


User Role Key Capabilities & Operational Scope
PBX Super Admin / NOC Engineer Monitors real-time concurrent call capacity across all tenant domains and FreeSWITCH core media relays; identifies network bottlenecks or stuck channels.
Domain Administrator Observes ongoing live calls within the domain, verifies trunk channel consumption, and confirms active codec negotiations.
Call Center Supervisor Supervises live queue conversations in real-time, monitors call duration timers, and assesses agent workload.
Support & Quality Engineer Inspects active SIP channel variables, codec formats, and IP network endpoints for active troubleshooting.

Active Calls is a real-time call monitoring interface that displays all currently active calls on the PBX. It queries Telephony Server’s live channel data to show callers, destinations, call states, duration, and technical details.

┌─────────────────────────────────────────────────────────────────┐
│ Active Calls Architecture │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Admin Panel │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ ActiveCallsPage.tsx │ │
│ │ │ │
│ │ [🔄 Refresh] 🔍 [Search... ] │ │
│ │ │ │
│ │ ┌─────────────────────────────────────────────────────┐ │ │
│ │ │ Dir │ Caller │ Dest │ State │ Duration │ Codec │ │ │
│ │ ├─────┼────────┼────────┼────────┼──────────┼────────┤ │ │
│ │ │ OUT │ 1001 │ +1555..│ ACTIVE │ 00:05:23 │ G722 │ │ │
│ │ │ IN │ +1555..│ 1002 │ RING │ 00:00:12 │ PCMU │ │ │
│ │ │ INT │ 1003 │ 1004 │ HELD │ 00:02:45 │ OPUS │ │ │
│ │ └─────────────────────────────────────────────────────┘ │ │
│ │ │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ API Query (Real-time) │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Backend API │ │
│ │ │ │
│ │ fs_cli: show channels │ │
│ │ │ │
│ │ Returns: Live channel data from Telephony Server │ │
│ │ │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ Telephony Server (mod_commands) │
│ │
└─────────────────────────────────────────────────────────────────┘

Active Calls provides live call visibility:

Without Active Calls With Active Calls
Blind to current calls Real-time view
No call monitoring Live state tracking
Unknown capacity Current load visible
Manual checking Instant refresh
  1. Capacity Monitoring

    • See current call volume
    • Identify peak times
  2. Troubleshooting

    • Debug call issues live
    • See codec and IP info
  3. Supervision

    • Monitor call center
    • Track long calls
  4. Operations

    • System health check
    • Network visibility
Feature Benefit
Real-time Live call data
Search Find specific calls
Call States Ringing, Active, Held
Duration Running call length
Technical Info Codec, IP address
Refresh Manual or auto update

3. Module Overview (End User/Administrator)

Section titled “3. Module Overview (End User/Administrator)”
  • View all active calls in real-time
  • Search by caller, destination, or IP
  • See call direction (In/Out/Internal)
  • Monitor call states
  • Track call duration
  • View technical details
┌─────────────────────────────────────────────────────────────────┐
│ Active Calls │
├─────────────────────────────────────────────────────────────────┤
│ │
│ [🔄 Refresh] 🔍 [Search by caller, destination, IP... ] │
│ │
│ 📊 Active Calls: 5 | 📥 Inbound: 2 | 📤 Outbound: 2 | 🔄 Int: 1│
│ │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ Dir │ Caller │ Destination │ State │ Duration│Codec│ │
│ ├──────┼────────────┼─────────────┼────────┼─────────┼─────┤ │
│ │ 📤 │ 1001 │+15551234567 │ ACTIVE │ 00:05:23│G722 │ │
│ │ 📥 │+15559876543│ 1002 │ RINGING│ 00:00:12│PCMU │ │
│ │ 🔄 │ 1003 │ 1004 │ ACTIVE │ 00:02:45│OPUS │ │
│ │ 📤 │ 1005 │+15555551234 │ EARLY │ 00:00:05│G711 │ │
│ │ 📥 │+15557771234│ 1010 │ HELD │ 00:08:32│PCMU │ │
│ └───────────────────────────────────────────────────────────┘ │
│ │
│ Showing 5 active calls │
│ │
└─────────────────────────────────────────────────────────────────┘

[!TIP] Refresh: Click Refresh button to update call list.

[!TIP] Search: Search by any field - caller, destination, IP, codec.

[!NOTE] Real-time: Data is live but not auto-refreshing - manual refresh needed.


Column Description
Direction Call direction evaluated strictly from the PBX perspective: Internal, Inbound, or Outbound.
Caller Originating party number and resolved caller display name.
Destination Called party number with resolved callee display name (internal extension full name, matched gateway/trunk name, or PSTN destination).
State Current call state (ACTIVE, RINGING, EARLY, HELD, HANGUP).
Duration Live elapsed call time since channel creation.
Codec Negotiated audio/video codec in use (e.g., PCMU, G722, OPUS).
IP Address Dual Source & Destination IP display: shows both the originating leg IP (SRC) and the destination/remote leg IP (DST) when bridged, enabling immediate NAT and one-way audio diagnostics.
Context Active FreeSWITCH dialplan context.
Hostname Originating FreeSWITCH telephony server hostname.

Direction Classification (PBX Perspective)

Section titled “Direction Classification (PBX Perspective)”

Unlike raw FreeSWITCH channel flags (where an originating phone leg starts as inbound toward the PBX), Ring2All PBX correlates both bridged channels (A-leg and B-leg) against the domain’s provisioned extension directory and SIP gateways so operators see true business call direction:

Direction Badge Style PBX-Perspective Classification Rule
Internal Indigo / Violet Both the caller and the destination belong to local extensions within the PBX domain (extension-to-extension calls).
Inbound Emerald An external caller or SIP trunk/gateway dials into a local PBX extension, IVR, ring group, or queue.
Outbound Sky / Blue A local PBX extension originates a call routed out through an external SIP gateway or carrier trunk.

State Description Color
ACTIVE Call in progress 🟢 Green
RINGING Destination ringing 🟡 Yellow
EARLY Early media (ringback) 🟡 Yellow
HELD Call on hold 🟠 Orange
HANGUP Call ending 🔴 Red
EARLY → RINGING → ACTIVE → HELD → ACTIVE → HANGUP
│ │ ↑
│ └──────────────┘
└──── (ringback/progress) ────────┘

  1. Open Active Calls
  2. View total count
  3. Watch during peak hours
  1. Enter phone number in search
  2. Locate the call
  3. View details
  1. Find affected call
  2. Check state (stuck in RINGING?)
  3. Note codec and IP
  1. Sort by duration
  2. Identify unusually long calls
  3. Investigate if needed

[!NOTE] Snapshot: Data shows point-in-time snapshot.

[!NOTE] Manual Refresh: Auto-refresh not enabled by default.

[!WARNING] Gone Quickly: Short calls may not appear.

  1. Regular Refresh: Update frequently during monitoring
  2. Use Search: Find specific calls quickly
  3. Check States: Understand what each state means
  4. Note IPs: Useful for network troubleshooting
  5. Watch Duration: Identify stuck or long calls

Symptom Possible Cause Solution
No calls shown No active calls Normal if system idle
Stale data Not refreshed Click Refresh
Search no match Wrong format Try partial number
Call stuck Telephony Server issue Check FS logs
High count Peak load Normal during busy

Telephony Server CLI:

Terminal window
# Show all active channels
fs_cli -x "show channels"
# Show call count
fs_cli -x "show calls count"
# Show channel by UUID
fs_cli -x "uuid_dump <uuid>"

Term Definition
Active Call Currently connected call
Channel Telephony Server call leg
Codec Audio encoding (G711, G722, Opus)
RINGING Destination alerting
EARLY Early media before answer
HELD Call on hold
Context Telephony dialplan context

10. Model Context Protocol (MCP) AI Integration

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

The Ring2All Platform AI Assistant connects directly with Telephony Server’s Event Socket Layer (ESL) via the Model Context Protocol (MCP). Telecom administrators, call center supervisors, and NOC engineers can supervise active channels, detect hung calls, hang up stalled connections, or initiate live transfers using natural language commands.

Tool Name Operation Primary Parameters Description
get_active_calls Live Channel Monitor domain_name (string, optional) Queries Ring2All PBX’s live call correlator (activeCallsService), returning PBX-perspective call direction (internal, inbound, outbound), caller/callee resolved names, dual sourceIp / destinationIp addresses, duration, call state, and codec.
hangup_call Terminate Channel uuid (string) Terminates an active call session immediately using uuid_kill.
transfer_call Live Call Transfer uuid (string), destination (string) Transfers an active channel to an internal extension, queue, or IVR menu using uuid_transfer.
originate_call Click-to-Call Outbound extension (string), destination (string) Bridges an internal extension to an external destination phone number.

Operational Safeguards & High-Impact Confirmation

Section titled “Operational Safeguards & High-Impact Confirmation”
  • Domain Scope Isolation: Channel queries automatically verify context or domain_name to ensure administrators only observe and interact with calls inside their active domain.
  • High-Risk Action Guard: The hangup_call tool carries a riskLevel: high rating. Call terminations must cite the valid Telephony Server uuid to prevent accidental disruption of active conversations.
  • Audit Trails: Channel manipulations (hangup, transfer, originate) are recorded in the central audit database (audit_logs) with user identification and timestamp.

1. Checking Active Calls on the PBX (get_active_calls)

Section titled “1. Checking Active Calls on the PBX (get_active_calls)”
{}

Response:

{
"success": true,
"data": {
"total": 2,
"calls": [
{
"uuid": "43e2f5b8-9f12-4c28-98e1-d3091726a801",
"direction": "internal",
"callerIdNumber": "2009",
"callerIdName": "Desk Phone",
"destinationNumber": "2001",
"destinationName": "Alex Rivera",
"state": "ACTIVE",
"duration": 62,
"codec": "PCMU",
"sourceIp": "198.51.100.42",
"destinationIp": "198.51.100.88"
},
{
"uuid": "7a33dc91-1184-4b53-902e-c119852230ab",
"direction": "outbound",
"callerIdNumber": "1004",
"callerIdName": "Sales Desk",
"destinationNumber": "+17865550122",
"destinationName": "Primary SIP Trunk",
"state": "ACTIVE",
"duration": 18,
"codec": "G722",
"sourceIp": "198.51.100.51",
"destinationIp": "203.0.113.10"
}
]
}
}

2. Disconnecting a Stalled Call Session (hangup_call)

Section titled “2. Disconnecting a Stalled Call Session (hangup_call)”
{
"uuid": "43e2f5b8-9f12-4c28-98e1-d3091726a801"
}

Response:

{
"success": true,
"data": {
"message": "Call 43e2f5b8-9f12-4c28-98e1-d3091726a801 was terminated successfully."
}
}
  • “How many calls are currently active in our PBX?”
  • “Is extension 1001 currently on a call?”
  • “Show me all ongoing calls that have lasted longer than 15 minutes.”
  • “Hang up the stuck call on channel UUID 43e2f5b8-9f12-4c28-98e1-d3091726a801.”

Documentation last updated: January 2026