Ctrl K
ring2all.com

Active Calls Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Call Fields Reference
  5. Call States
  6. Common Scenarios & Examples
  7. Limitations & Important Notes
  8. Troubleshooting Tips
  9. Glossary

---

1. Module Overview (Technical)

What Are Active Calls?

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

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│                  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 FreeSWITCH              │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼                                                         │
│  FreeSWITCH (mod_commands)                                      │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Files

FileDescription
modules/activeCalls/ActiveCallsPage.tsxMain page
modules/activeCalls/api.tsAPI calls to backend
---

2. Module Overview (Commercial/Business)

Business Value

Active Calls provides live call visibility:

Without Active CallsWith Active Calls
Blind to current callsReal-time view
No call monitoringLive state tracking
Unknown capacityCurrent load visible
Manual checkingInstant refresh

Use Cases

  1. Capacity Monitoring
- See current call volume

- Identify peak times

  1. Troubleshooting
- Debug call issues live

- See codec and IP info

  1. Supervision
- Monitor call center

- Track long calls

  1. Operations
- System health check

- Network visibility

Feature Highlights

FeatureBenefit
Real-timeLive call data
SearchFind specific calls
Call StatesRinging, Active, Held
DurationRunning call length
Technical InfoCodec, IP address
RefreshManual or auto update
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • 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 Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              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                                         │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

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.

---

4. Call Fields Reference

Display Columns

ColumnDescription
DirectionInbound/Outbound/Internal
CallerCalling party number
DestinationCalled party number
StateCurrent call state
DurationTime since call started
CodecAudio codec in use
IP AddressRemote endpoint IP
ContextFreeSWITCH context
HostnameFreeSWITCH server

Direction Types

DirectionIconDescription
Inbound📥Incoming from external
Outbound📤Outgoing to external
Internal🔄Extension to extension
---

5. Call States

State Types

StateDescriptionColor
ACTIVECall in progress🟢 Green
RINGINGDestination ringing🟡 Yellow
EARLYEarly media (ringback)🟡 Yellow
HELDCall on hold🟠 Orange
HANGUPCall ending🔴 Red

State Flow

Plaintext
EARLY → RINGING → ACTIVE → HELD → ACTIVE → HANGUP
  │                  │              ↑
  │                  └──────────────┘
  └──── (ringback/progress) ────────┘

---

6. Common Scenarios & Examples

Scenario 1: Monitor Call Volume

  1. Open Active Calls
  2. View total count
  3. Watch during peak hours

Scenario 2: Find Specific Call

  1. Enter phone number in search
  2. Locate the call
  3. View details

Scenario 3: Debug Call Issue

  1. Find affected call
  2. Check state (stuck in RINGING?)
  3. Note codec and IP

Scenario 4: Check Long Calls

  1. Sort by duration
  2. Identify unusually long calls
  3. Investigate if needed

---

7. Limitations & Important Notes

Technical Notes

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.

Best Practices

  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

---

8. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
No calls shownNo active callsNormal if system idle
Stale dataNot refreshedClick Refresh
Search no matchWrong formatTry partial number
Call stuckFreeSWITCH issueCheck FS logs
High countPeak loadNormal during busy

Diagnostic Commands

FreeSWITCH CLI:

Bash
# 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>"

---

9. Glossary

TermDefinition
Active CallCurrently connected call
ChannelFreeSWITCH call leg
CodecAudio encoding (G711, G722, Opus)
RINGINGDestination alerting
EARLYEarly media before answer
HELDCall on hold
ContextFreeSWITCH dialplan context
---

Lua Script Status ℹ️

No Lua Handler Required

ComponentStatus
Active Callsℹ️ Frontend module - queries FreeSWITCH via backend API
Active Calls queries live channel data from FreeSWITCH using mod_commands. No Lua handlers are used.

---

Documentation last updated: January 2026
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?