Ctrl K
ring2all.com

IVR Statistics Module Documentation

Table of Contents

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

---

1. Module Overview (Technical)

What Are IVR Statistics?

IVR Statistics is an analytics module that tracks and reports on IVR (Interactive Voice Response) menu interactions. It provides insights into caller behavior, option popularity, timeout rates, and overall IVR effectiveness.

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│                  IVR Statistics Architecture                    │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  IVR Handler (Lua)                                              │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        ivr_menu.lua                                      │   │
│  │                                                          │   │
│  │  Caller presses option                                   │   │
│  │  ├─ Log action to ivr_stats table                       │   │
│  │  ├─ Record digit pressed                                │   │
│  │  ├─ Track wait time                                     │   │
│  │  └─ Store destination                                   │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Logged to Database                                      │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        public.ivr_stats                                  │   │
│  │                                                          │   │
│  │  ivr_id | action | digit | wait_time | created_at       │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Queried by Frontend                                     │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        IVRStatsPage.tsx                                  │   │
│  │                                                          │   │
│  │  ┌─────────────────────────────────────────────────────┐ │   │
│  │  │ Total: 1,234 │ Options: 987 │ Timeout: 145 │Fail: 12│ │   │
│  │  └─────────────────────────────────────────────────────┘ │   │
│  │                                                          │   │
│  │  Charts: Digit breakdown, Action breakdown, Success rate │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Tables

TablePurpose
public.ivr_statsIVR interaction logs
public.ivr_menusIVR menu definitions

Key Files

FileDescription
modules/ivrStats/IVRStatsPage.tsxAnalytics page
---

2. Module Overview (Commercial/Business)

Business Value

IVR Statistics provides caller behavior insights:

Without IVR StatsWith IVR Stats
Unknown usageFull analytics
Guess at performanceData-driven optimization
Hidden problemsVisible timeouts/failures
No improvement pathClear optimization targets

Use Cases

  1. IVR Optimization
- Identify most-used options

- Simplify menu structure

  1. Problem Detection
- High timeout rates

- Frequent failures

  1. Capacity Planning
- Call volume trends

- Peak hour analysis

  1. Customer Experience
- Wait time analysis

- Success rate tracking

Feature Highlights

FeatureBenefit
Total InteractionsVolume tracking
Option PressesPopularity analysis
TimeoutsNavigation issues
FailuresSystem problems
Digit BreakdownOption popularity
Success RateIVR effectiveness
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • View IVR interaction statistics
  • Filter by date range
  • Filter by action type
  • See digit press distribution
  • Analyze success/timeout rates
  • Export detailed reports

IVR Statistics Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              IVR Statistics                                     │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Filters:                                                       │
│  ├─ IVR Menu: [Main Menu ▼]                                    │
│  ├─ Start Date: [01/01/2026]                                   │
│  ├─ End Date: [01/16/2026]                                     │
│  └─ Action Type: [All ▼]                                       │
│                                                                 │
│  ┌────────────────────────────────────────────────────────────┐ │
│  │ Total       │ Option      │ Timeouts    │ Failures        │ │
│  │ Interactions│ Presses     │             │                 │ │
│  │   1,234     │    987      │    145      │     12          │ │
│  └────────────────────────────────────────────────────────────┘ │
│                                                                 │
│  ┌─────────────────────┐  ┌───────────────────────────────────┐ │
│  │ Timing Statistics   │  │ Most Pressed Digit                │ │
│  │                     │  │                                   │ │
│  │ Avg Wait: 8.5s      │  │ Digit 1: Sales (45%)             │ │
│  │ Avg Duration: 35s   │  │                                   │ │
│  └─────────────────────┘  └───────────────────────────────────┘ │
│                                                                 │
│  ┌─────────────────────┐  ┌───────────────────────────────────┐ │
│  │ Digit Breakdown     │  │ Action Breakdown                  │ │
│  │                     │  │                                   │ │
│  │ 1: ████████ 45%     │  │ Option: ████████████ 80%          │ │
│  │ 2: █████ 25%        │  │ Timeout: ███ 12%                  │ │
│  │ 3: ███ 15%          │  │ Direct: █ 5%                      │ │
│  │ 0: ██ 10%           │  │ Failure: ░ 1%                     │ │
│  │ #: █ 5%             │  │ Invalid: ░ 2%                     │ │
│  └─────────────────────┘  └───────────────────────────────────┘ │
│                                                                 │
│  [Export Summary] [Export Details]                              │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
Select IVR: Must select an IVR menu first to view statistics.
TIP
Date Range: Limit date range to avoid slow queries.
NOTE
Export: Export detailed data for external analysis.

---

4. Metrics Reference

Summary Cards

MetricDescription
Total InteractionsAll IVR entries
Option PressesValid digit presses
TimeoutsNo response within limit
FailuresSystem errors

Action Types

ActionDescription
Option PressedCaller pressed valid digit
TimeoutNo response from caller
FailureSystem or config error
InvalidInvalid digit pressed
Direct DialExtension dialed directly
ExitCaller hung up

Timing Metrics

MetricDescription
Average Wait TimeTime before digit press
Average DurationTotal IVR time

Success Metrics

MetricCalculation
Success RateOptions / Total × 100%
Timeout RateTimeouts / Total × 100%
Failure RateFailures / Total × 100%
---

5. Common Scenarios & Examples

  1. Select IVR menu
  2. View Digit Breakdown chart
  3. Note most-pressed digits
  4. Consider reordering menu

Scenario 2: Reduce Timeouts

  1. Check Timeout Rate
  2. If high (>20%), menu may be confusing
  3. Simplify options
  4. Shorten prompts

Scenario 3: Monthly Report

  1. Set date range for month
  2. View all metrics
  3. Export Summary
  4. Share with management

Scenario 4: Troubleshoot Failures

  1. Filter by "Failure" action type
  2. View Call Details table
  3. Identify patterns
  4. Fix configuration issues

---

6. Limitations & Important Notes

Technical Notes

NOTE
Historical Data: Statistics depend on logging being enabled.
NOTE
Select IVR First: Must choose an IVR to view stats.
WARNING
Large Ranges: Long date ranges may be slow.

Best Practices

  1. Regular Review: Check stats weekly/monthly
  2. Watch Timeouts: High timeout = confusing menu
  3. Watch Failures: Any failures need investigation
  4. Export Data: Archive important stats
  5. Optimize Menus: Use data to improve IVR

Target Benchmarks

MetricTarget
Success Rate> 85%
Timeout Rate< 10%
Failure Rate< 1%
Avg Wait Time< 15 seconds
---

7. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
No dataStats not loggedCheck IVR logging
High timeoutsLong/confusing promptsSimplify menu
High failuresConfig errorsCheck IVR settings
High invalidWrong key mappingReview option numbers
No call detailsPaginationUse Next/Previous

Diagnostic SQL

IVR statistics summary:

Sql
SELECT 
  action,
  COUNT(*) as count,
  AVG(wait_time) as avg_wait
FROM public.ivr_stats
WHERE ivr_id = [ivr_id]
  AND created_at >= NOW() - INTERVAL '30 days'
GROUP BY action;

Most pressed digits:

Sql
SELECT 
  digit,
  COUNT(*) as presses
FROM public.ivr_stats
WHERE ivr_id = [ivr_id]
  AND action = 'option_pressed'
GROUP BY digit
ORDER BY presses DESC;

---

8. Glossary

TermDefinition
IVRInteractive Voice Response
InteractionSingle caller entering IVR
Option PressValid digit selection
TimeoutNo caller response
Direct DialExtension dialed in IVR
Success RatePercentage completing IVR
---

Lua Script Status ℹ️

No Dedicated Handler Required

ComponentStatus
IVR Statisticsℹ️ Reporting module - reads logs from public.ivr_stats
IVR Statistics is a frontend analytics module. IVR interactions are logged by the IVR handler (ivr_menu.lua) to public.ivr_stats. This module only reads and displays that data.

---

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?