Astervis Docs

Real-time Sync

Configure real-time CDR synchronization

Astervis syncs call records from your PBX in real-time. New calls appear in your dashboard within seconds.

Check Sync Status

sudo astervis-installer status

Look for "Sync Status" in the output:

Sync Status: ● Active
Last Sync:   2024-01-15 14:32:05 (2 minutes ago)
CDR Count:   145,832 records

Sync Modes

When Astervis starts, it can import historical data:

ModeBehaviorUse Case
Full importLoad all CDR historyFirst installation
IncrementalOnly new recordsNormal operation
From dateHistory from specific dateSelective import

Import Historical Data

# Import all history
sudo astervis-installer sync --full
 
# Import from specific date
sudo astervis-installer sync --from "2024-01-01"

Reset and Re-import

If sync gets out of sync:

sudo astervis-installer sync --reset

This will re-import all CDR data. For large databases, use --from to limit the date range.

Troubleshooting

No New Calls Appearing

  1. Check sync status:

    sudo astervis-installer status
  2. Check MySQL connection:

    sudo astervis-installer test-mysql
  3. View sync logs:

    sudo astervis-installer logs --service sync

Sync Lag (Delays)

If calls take more than 30 seconds to appear:

  1. Check server resources:

    sudo astervis-installer status --verbose
  2. Restart sync service:

    sudo astervis-installer restart --service sync

MySQL Binary Logging

Real-time sync requires MySQL binary logging. If disabled, enable it:

# Check if enabled
sudo astervis-installer test-mysql --check-binlog
 
# The installer will show instructions if not enabled

See MySQL Configuration for details.

Performance Tips

  • SSD storage — sync performance degrades on spinning disks
  • Adequate RAM — sync services need ~1.5 GB
  • Network latency — keep Astervis on the same server or network as your PBX

On this page