Skip to main content

Worker Services

OPBX uses two standalone worker services for specialized runtime tasks:

WorkerTechnologyPurpose
Dialer WorkerGoExecutes outbound auto-dialer campaigns
AMD WorkerJava/Vert.x 5Detects voicemail beeps in live audio streams

Both workers run as Docker services in the standard Docker Compose stack. They communicate with the Laravel backend through REST APIs and Redis.

When to Read These Guides

Read the worker guides when you need to:

  • Understand how outbound campaigns are executed
  • Build or run a worker locally
  • Configure worker environment variables
  • Troubleshoot campaign or AMD issues
  • Scale the dialer worker horizontally

Common Commands

View Worker Logs

docker compose logs -f dialer-worker
docker compose logs -f amd-worker

Scale the Dialer Worker

docker compose up -d --scale dialer-worker=3

Restart a Worker

docker compose restart dialer-worker
docker compose restart amd-worker
tip

Wait 120 seconds after restarting the full stack before testing worker functionality.