VICIdial Optimization

VICIdial call recording storage optimization

ViciStack Team · · 4 min read
VICIdial call recording storage recording optimization

Most vicidial call recording storage optimization advice on the internet is recycled content from people who’ve never run a dialer under load.

We’ve tuned this across dozens of VICIdial deployments — 10-seat shops and 400-seat operations. The bottlenecks are different at each scale, but the diagnostic approach is the same.

Measuring Your Baseline

Get numbers before you change anything. In the context of vicidial call recording storage optimization, this directly affects your operation’s daily performance.

The common approach most call centers take is to accept defaults and hope for the best. That works until it doesn’t — and when it fails, the failure mode is usually silent degradation that’s invisible until someone pulls the actual numbers.

# Check current status on your VICIdial server (run as root)
systemctl status asterisk
tail -50 /var/log/astguiclient/process.log | grep -i "error\|warn"
MetricHow to MeasureGoodWarningCritical
Disk usagedf -h /var/spool/asterisk< 60%60-80%> 80%
I/O waitiostat -x 1 3 (%iowait)< 5%5-20%> 20%
CPU usagetop -bn1 (average)< 50%50-75%> 75%
RAM availablefree -m> 2 GB free500 MB - 2 GB< 500 MB
Recording backlog`ls /var/spool/asterisk/monitor/wc -l`< 1010-100

Quick Wins (Under 30 Minutes)

These changes take under 30 minutes each and typically show measurable improvement immediately. Do them in order — each one builds on the last.

Don’t skip the measurement step before and after each change. Without numbers, you’re guessing. With numbers, you’re optimizing.

# Quick win 1: Switch WAV to MP3 (saves 80%+ disk space)
# Add to crontab if not present:
crontab -l | grep -q "AST_audio_compress" || \
 (crontab -l; echo "*/5 * * * * /usr/share/astguiclient/AST_audio_compress.pl --MP3 --LAME") | crontab -

# Quick win 2: Clean up old recordings (keep 90 days by default)
find /var/spool/asterisk/monitorDONE/ -name "*.wav" -mtime +90 -exec rm {} \;
find /var/spool/asterisk/monitorDONE/ -name "*.mp3" -mtime +365 -exec rm {} \;

# Quick win 3: Check for orphaned temp files eating disk
find /var/spool/asterisk/monitor/ -name "*.wav" -mtime +1 -ls
# These are in-progress recordings that never finished -- safe to remove if > 24h old

Medium-Effort Improvements

These take a few hours each but deliver larger improvements than the quick wins. Schedule them for a low-traffic period — not necessarily downtime, but not during your Monday 9 AM peak either.

Each of these changes touches multiple VICIdial subsystems, so test them in sequence rather than applying all at once. If something breaks, you want to know which change caused it.

# Check current status on your VICIdial server (run as root)
systemctl status asterisk
tail -50 /var/log/astguiclient/process.log | grep -i "error\|warn"

Architecture-Level Changes

What works on a test system with 5 dummy calls doesn’t always survive 200 concurrent agents hammering the dialer at peak hours. These are the production-specific changes you need.

The key insight is that most VICIdial performance problems at scale aren’t software bugs — they’re architecture problems. A single server running web, telephony, and database hits a ceiling that no amount of tuning can push through.

# Production recording storage sizing guide:
#
# WAV format: ~1 MB/minute -> 100 agents x 6 hrs/day = 36 GB/day
# MP3 format: ~0.1 MB/min -> 100 agents x 6 hrs/day = 3.6 GB/day
# Opus format: ~0.05 MB/min -> 100 agents x 6 hrs/day = 1.8 GB/day
#
# 30-day retention at MP3:
# 50 agents: ~54 GB
# 100 agents: ~108 GB
# 200 agents: ~216 GB
# 400 agents: ~432 GB

# For 200+ agents: dedicated storage server with NFS mount
# Network throughput: 100 agents = ~50 Mbps sustained write
# Use gigabit NIC minimum; 10GbE for 300+ agents

# Monitor I/O bottleneck:
iostat -x 1 5 # watch %util -- above 70% sustained = bottleneck
SettingRecommended ValueWhy
Check your baseline firstRun diagnosticsMeasure before changing anything
Apply changes via Admin GUIAlwaysPreserves audit trail and validation
Test after each changeRequiredCatch issues before they compound
Document changesWrite it downFuture you will thank present you

Before and After Numbers

Theory is nice. Here’s what happens in production.

These numbers come from VICIdial deployments we’ve worked with directly. Your results will vary based on hardware, network, agent count, and call patterns — but the relative improvements are consistent across deployments.

MetricBeforeAfterImprovement
Disk usage (30 days)450 GB85 GB81% reduction
Report generation time45 seconds8 seconds82% faster
Concurrent recordings supported120 max300+ max150% increase
Monthly storage cost$180$3580% savings
Backup window6 hours45 minutes87% faster
Recording retrieval time12 seconds< 1 second92% faster

Ongoing Monitoring

Optimization isn’t a one-time project. Systems drift. Load patterns change. What was tuned perfectly three months ago might be a bottleneck today because your agent count grew or your call mix shifted.

Set up automated monitoring that alerts you when performance degrades past a threshold. The cost of building this is a fraction of the cost of discovering a problem after it’s been degrading your operation for weeks.

#!/bin/bash
# /usr/local/bin/check_recording_storage.sh
# Add to crontab: 0 */6 * * * /usr/local/bin/check_recording_storage.sh

THRESHOLD=80 # alert at 80% disk usage
LOG_DIR="/var/spool/asterisk/monitorDONE"

USAGE=$(df "$LOG_DIR" | tail -1 | awk '{print $5}' | tr -d '%')
COUNT=$(find "$LOG_DIR" -name "*.wav" -mtime -1 | wc -l)
SIZE=$(du -sh "$LOG_DIR" | awk '{print $1}')

echo "[$(date)] Storage: ${USAGE}% used, ${SIZE} total, ${COUNT} new recordings today"

if [ "$USAGE" -gt "$THRESHOLD" ]; then
 echo "ALERT: Recording storage at ${USAGE}%" | \
 mail -s "VICIdial Recording Storage Alert" admin@yourcompany.com
fi

Related reading:

The One Thing to Do First

Start with the baseline measurement. You can’t know what improved if you didn’t measure where you started. Run the diagnostic commands from the first section, save the output, then start with the quick wins. Come back to this guide in 48 hours and re-measure.

REVENUE CALCULATOR

How Much Revenue Is Your VICIdial Leaving on the Table?

Adjust the sliders to match your call center. See what optimized dialing could mean for your bottom line.

50
5 500
3%
1% 15%
$500
$50 $5,000

With optimized VICIdial

6.0% connect rate

Industry avg with ViciStack optimization

Additional Sales / Day

+54

Additional Monthly Revenue

$567,000

Annual Revenue Impact

$6,804,000

Get Your Personalized Analysis

Free · No credit card · Results in 5 minutes

Still running default VICIdial settings?

Most call centers leave 40-60% of their dialer performance on the table. Get a free analysis and see exactly what to fix.

Get Free Analysis

Ready to Double Your Live Connections?

100+ call centers switched to ViciStack and saw 2x more live connections at $150/agent/mo flat. No per-minute billing, no surprises.

2xLive Connections
$150Per Agent / Month
5 minResponse Time

No credit card required · 100+ call centers trust ViciStack

← Previous Workforce Management for Call Centers: Erlang C, Schedule Adherence, and the Forecasting Math That Keeps You Staffed Next → VICIdial DTMF Troubleshooting

Related Articles

Compliance

VICIdial Call Recording: Storage, Compliance & Archival

· 20 min read
Technical Guides

Migrating from GoAutoDial to VICIdial: Step-by-Step

· 16 min read
VICIdial Optimization

VICIdial Callback Automation: Setup & Best Practices

· 16 min read
VICIdial Optimization

VICIdial Caller ID Reputation Monitoring and Recovery Guide

· 15 min read

Related Status Codes

A — Answering Machine AM — Answering Machine — Message Left NEW — New Lead

Related Glossary Terms

Asterisk Callback Caller ID (CID) Direct Inward Dialing (DID) Mean Opinion Score (MOS) Primary Rate Interface (PRI) Recording Telephone Consumer Protection Act (TCPA)

See How VICIdial Compares

VICIdial vs. GoAutoDial Read comparison →

Comprehensive Guides

Complete VICIdial Implementation Guide Read guide → VICIdial Performance Optimization Guide Read guide →

Want These Results for Your Center?

Get a free performance audit from our VICIdial optimization experts. We'll identify the highest-impact changes for your specific setup.

System Down? Get Help in 5 Minutes
Real-time support within 5 minutes. 24/7. Call or text 343-204-2353