VOS3000

VOS3000 Data Maintenance & Auto‑Cleanup: Important Database Management Guide

VOS3000 Data Maintenance & Auto‑Cleanup: Important Database Management Guide

As your VOS3000 softswitch processes thousands of calls daily, the MySQL database grows continuously. Without proper VOS3000 data maintenance, old CDRs, logs, and reports consume disk space, slow down queries, and can eventually cause system instability. This guide covers everything you need to know about managing VOS3000 data – from manual cleanup to fully automated maintenance routines.

By the end of this article, you’ll know how to keep your database lean, fast, and reliable for years of operation.

Why VOS3000 Data Maintenance Matters

VOS3000 stores data in multiple MySQL tables that grow daily:

  • CDR tables – one per day (cdr_YYYYMMDD) – can grow to gigabytes per month under heavy traffic.
  • System logs – record every user action and system event.
  • Payment records – all recharge and adjustment history.
  • Alarm history – past alarms and notifications.
  • Report data – pre‑computed summaries for quick access.

Without cleanup, you risk:

  • Running out of disk space (causing MySQL crashes).
  • Slow CDR queries (waiting minutes for results).
  • Backup files becoming too large to handle.

Understanding VOS3000 Data Storage Structure

VOS3000 organizes data into separate tables by type and date. This design makes maintenance easier – you can drop or archive entire tables without affecting current operations.

CDR Tables

Located under “System Management > Data Maintenance > CDR Tables”. Each table name ends with a date suffix, e.g., cdr_20250309. The “Data volume” column shows the number of records. Double‑click any table to view its contents.

System Log Tables

Found under “System Management > Data Maintenance > System Log Tables”. These record all user activities – logins, configuration changes, etc. They’re essential for audits but can be purged after a retention period.

History Alarm Tables

Under “System Management > Data Maintenance > History Alarm Tables”. Stores past alarms. Once resolved, alarms move here from current alarm list.

Payment Record Tables

Under “System Management > Data Maintenance > Payment Record Tables”. All financial transactions are stored here permanently or until purged.

Data Report Tables

Under “System Management > Data Maintenance > Data Report Tables”. Pre‑generated reports (daily summaries) – can be safely deleted if you regenerate reports on demand.

Other Income Report Tables

Under “System Management > Data Maintenance > Other Income Report Tables”. Contains package rent, monthly fees, and other non‑call income records.

Manual Data Cleanup Methods

For one‑time or occasional cleanup, you can manually delete old data through the web interface:

  1. Navigate to System Management > Data Maintenance.
  2. Select the table category (e.g., CDR Tables).
  3. Click Filter to show all tables.
  4. Check the boxes next to tables older than your retention period.
  5. Click Delete and confirm.

⚠️ Warning: Deleted data cannot be recovered. Ensure you have verified backups before deleting anything.

Automating VOS3000 Data Cleanup – VOS3000 Data Maintenance

Manual cleanup is error‑prone. VOS3000 includes a powerful auto‑cleanup feature that automatically removes old data based on your rules.

Enabling Auto‑Cleanup

Go to System Management > Data Maintenance > Automatically Cleanup. Here you can configure retention periods for each data type:

  • CDR tables – keep for X days, then delete.
  • System log tables – keep for X days.
  • History alarm tables – keep for X days.
  • Payment record tables – keep for X days (be careful – financial records may need longer retention for legal reasons).
  • Data report tables – keep for X days.
  • Other income report tables – keep for X days.

You can also enable automatic cleanup of:

  • Accounts – delete accounts that have been inactive/expired for X days.
  • Gateways – delete gateways belonging to deleted accounts.
  • Phones – delete phones belonging to deleted accounts.

How Auto‑Cleanup Works

Once enabled, a background process runs daily (typically at low‑traffic hours) and:

  1. Identifies tables older than the configured retention period.
  2. Drops those entire tables (fastest method).
  3. Logs the action in system logs for audit.
  4. If configured, deletes orphaned accounts/gateways/phones.

⚠️ Important: Auto‑cleanup deletes entire tables, not individual rows. This is extremely fast and efficient but means you cannot keep partial months – it’s all or nothing per table.

Based on typical VoIP operations, here are sensible starting points:

Data TypeRetention PeriodReason
CDRs90 daysEnough for customer disputes and traffic analysis; older data can be archived externally.
System logs30 daysSecurity audits rarely need older logs; export if longer retention required.
History alarms60 daysAlarm patterns over two months help identify recurring issues.
Payment records365 days (or longer for compliance)Financial records may need 1‑7 years depending on local laws – adjust accordingly.
Data reports30 daysReports can be regenerated from CDRs if needed.

Backup Strategy Before Cleanup – VOS3000 Data Maintenance

Before enabling auto‑cleanup or running manual deletes, ensure you have reliable backups:

  • Daily mysqldump of the entire VOS3000 database (compressed).
  • Binary logs for point‑in‑time recovery (if you need to restore to a specific moment).
  • Off‑site storage – keep backups on a different server or cloud storage.

Test your backups regularly by restoring to a test environment.

Monitoring Disk Space

Even with auto‑cleanup, monitor disk usage:

  • Use System Management > Server Monitor to see disk usage trends.
  • Set up Disk Alarm under Alarm Management to notify you when disk usage exceeds thresholds (e.g., 80%, 90%).
  • Check MySQL data directory size periodically: du -sh /var/lib/mysql

Advanced: Archiving Old CDRs

If you need to keep CDRs longer than auto‑cleanup allows, consider archiving:

  1. Export old CDR tables to CSV or SQL files.
  2. Compress and store them in a secure location.
  3. Delete the tables from the live database (either manually or via auto‑cleanup).
  4. If you need to query archived data, import into a separate reporting database or use command‑line tools.

VOS3000 does not include built‑in archival tools, but you can script this using mysqldump and cron.

Frequently Asked Questions (VOS3000 Data Maintenance)

Will auto‑cleanup delete accounts that still have active phones?

No. Auto‑cleanup only deletes accounts that have been expired and have no associated active phones, gateways, or bind numbers. It checks dependencies before deleting.

Can I recover data after auto‑cleanup deletes it?

Not from the live system. You must restore from backups if you need deleted data. This is why testing your backup restoration process is critical before enabling auto‑cleanup.

Does deleting CDR tables affect current calls?

No. VOS3000 writes CDRs to a temporary table and moves them to the daily table after the call ends. Deleting old tables has no impact on ongoing calls.

Why are my CDR tables not being deleted even though auto‑cleanup is enabled?

Check that the retention period is set correctly and that the cleanup process is running (system logs will show cleanup actions). Also ensure that the tables are indeed older than the retention period – auto‑cleanup runs daily, so tables become eligible only after the configured number of days have passed since their creation.

Can I keep payment records forever while auto‑deleting CDRs?

Yes. Each data type has independent retention settings. Set payment records to a high value (e.g., 3650 days) and CDRs to a lower value (e.g., 90 days).

Conclusion

Proper VOS3000 data maintenance ensures your softswitch runs smoothly, queries stay fast, and disk space never becomes a crisis. Whether you prefer manual control or fully automated cleanup, VOS3000 provides the tools you need. Start with conservative retention periods, monitor the results, and adjust as you gain confidence.

Need help setting up data maintenance or recovering from a disk space emergency? Contact us on WhatsApp: +8801911119966

Further Resources



Recent Posts

  • VOS3000

VOS3000 Caller Number Pool: Powerful CLI Rotation for Outbound Traffic

VOS3000 Caller Number Pool: Powerful CLI Rotation for Outbound Traffic The VOS3000 caller number pool feature solves a critical problem… Read More

1 day ago
  • VOS3000

VOS3000 Protect Route: Smart Backup Gateway Activation with Timer

VOS3000 Protect Route: Smart Backup Gateway Activation with Timer The VOS3000 protect route feature is one of the most misunderstood… Read More

1 day ago
  • VOS3000

VOS3000 Outbound Registration: Important Carrier SIP Register Setup

VOS3000 outbound registration setup guide for carrier SIP trunk connections. Configure VOS3000 to register outbound to carriers, IMS, and ITSP… Read More

1 day ago

This website uses cookies.