Install AMD on VICIdial: installation guide
This guide shows how to install AMD on VICIdial with LineVaults: confirm the requirements, place one EAGI client on each dialer, add one dialplan extension, move a single campaign over and read the results. Allow about 15 minutes per server. Scope: any VICIdial system on Asterisk 13 or later, including ViciBox 11 and 12, source builds and GoAutoDial.
Revised 2026-11-26 · about 15 minutes per server · root access on each dialer
1. Requirements
| Requirement | How to check |
|---|---|
| VICIdial on Asterisk 13 or newer | asterisk -rx "core show version" |
| Python 3.6 or newer (ViciBox 11 and 12 include it) | python3 --version |
Outbound HTTPS (TCP 443) to amd.linevaults.com | Step 4 tests it |
| Root shell on every dialer server | — |
| A LineVaults account; the Sandbox plan is free, no card | Open free account |
2. Create an API key
Sign in to the dashboard, go to WS keys, and issue a separate key for every dialer, labeled with the server's hostname. The full key is displayed a single time, so store it before closing the dialog. Separate keys let the call logs show each server's traffic on its own.
3. Install the client
cd /var/lib/asterisk/agi-bin
curl -fsSLO https://www.linevaults.com/assets/linevaults.agi.py
chmod 755 linevaults.agi.py
The same file can be downloaded from the WS keys page of the dashboard. It uses only Python's standard library, so there is nothing else to install.
4. Verify the connection
python3 /var/lib/asterisk/agi-bin/linevaults.agi.py --test wss://amd.linevaults.com/ YOUR_KEY
The test streams 3 seconds of silence exactly as a live call would, and prints one line after about 2 seconds:
| Output | Meaning | Action |
|---|---|---|
AMDSTATUS=MACHINE AMDCAUSE=SILENCE | Working | Continue to step 5 |
AMDSTATUS=FALLBACK AMDCAUSE=AUTH | The key was refused | Copy the key again from the dashboard |
AMDSTATUS=FALLBACK AMDCAUSE=NOSERVER | The server can't reach amd.linevaults.com | Check DNS and outbound port 443 |
5. Add the dialplan extension
On AMD campaigns, VICIdial routes each answered call to extension 8369. Define a sibling, 8370, in /etc/asterisk/extensions.conf. It belongs in the context that already holds 8369, which on most systems is [default]:
exten => 8370,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8370,n,EAGI(linevaults.agi.py,wss://amd.linevaults.com/,YOUR_KEY,4500)
exten => 8370,n,GotoIf($["${AMDSTATUS}" = "FALLBACK"]?native)
exten => 8370,n(vdamd),AGI(VD_amd.agi,${EXTEN})
exten => 8370,n,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB-----${CONNECTEDLINE(name)})
exten => 8370,n,Hangup()
exten => 8370,n(native),AMD(2000,2000,1000,5000,120,50,4,256)
exten => 8370,n,Goto(vdamd)
8369. Some systems add options to them; copy those two lines from your server rather than from this listing.| Arguments of the EAGI line | Value |
|---|---|
| 1 · WebSocket URL | wss://amd.linevaults.com/ |
| 2 · API key | The key for this server from step 2 |
| 3 · Timeout in ms | 4500; it covers the 3.2 s maximum listening window plus network time |
Apply and confirm:
asterisk -rx "dialplan reload"
asterisk -rx "dialplan show 8370@default"
6. Move one campaign
Start with a single campaign. Under Campaigns in the VICIdial administration screens, edit one field as below, then press Submit:
| Campaign field | Before | After |
|---|---|---|
| Routing Extension | 8369 (Asterisk AMD) | 8370 |
| AMD send to VM exten | Your setting | Unchanged |
| Voicemail message settings | Your settings | Unchanged |
7. Test live calls
Let the campaign dial and watch the Asterisk console with asterisk -rvvv. Each answered call logs one line from the client, such as linevaults.agi: HUMAN HUMAN or linevaults.agi: MACHINE SCREENING. Within seconds the same calls appear in the dashboard's call logs.
8. Read the results
- Call logs: one row per answered call showing status, cause, confidence and elapsed time, with CSV export.
- Recordings let you play the seconds the model heard, straight in the browser, to check any call you doubt.
- VICIdial reports: compare the campaign's AA (answering machine) count and agent-connected calls with the days before the switch.
To measure the change properly, label a few hundred calls by ear and count both error types, as in the test plan in the buyer's guide; our own figures are in the benchmarks. When the numbers satisfy you, move the remaining campaigns.
9. Roll back
Restore 8369 in the campaign's Routing Extension field. The new extension and the client can stay in place; with no campaign pointing at them, they are idle.
10. Troubleshooting
Every verdict in the console is FALLBACK
Run the step 4 test again. With AUTH, the key typed into the EAGI line is the problem. With NOSERVER, amd.linevaults.com is unreachable on port 443: look at name resolution and outbound firewall rules.
Call logs stay empty
Either the campaign still routes to 8369 or extension 8370 never loaded. Confirm the campaign field, then repeat the dialplan show command from step 5.
Agents report a gap before the conversation starts
Expect roughly 2 seconds from pickup to verdict, comparable to common AMD settings. If it is longer, compare the elapsed_ms values in the call logs with the latency between the dialer and the service.
python3: command not found
Install Python 3 from the distribution's packages; on openSUSE-based ViciBox that is zypper install python3.
Building your own integration? Read the AMD WebSocket API reference. Running FreeSWITCH? Use the FreeSWITCH integration.
Put a verdict on every answered call
Run it on one campaign next to your current AMD and compare. If the service can't help, your dialer falls back to Asterisk AMD() on its own.