Before you start: you need root access to each ViciDial server that places calls, and an AMDY account. The free trial includes 30,000 detections — enough to test one campaign properly.
1. Create an API key
Sign up at app.amdy.ai, open Settings → API keys and create a key. Use one key per dialer server so each shows up separately in your dashboard. Keep keys out of version control.
2. Install the client on each dialer
Copy the install command shown in your dashboard and run it on each ViciDial server. The installer places the AMDY EAGI script in your AGI directory and registers the server with your account. It needs only the Python 3 that ships with current ViciBox releases.
3. Add the AMDY AMD extension
ViciDial sends answered calls with AMD enabled to a routing extension — 8369 by default — that runs Asterisk’s AMD() and then VD_amd.agi. Create a copy of it on a new extension and add the AMDY step before VD_amd.agi. Depending on your version, add it through Admin → System Settings → Custom Dialplan Entry or your custom extensions file.
exten => 8370,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8370,n,EAGI(amdy.agi,YOUR_API_KEY)
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()
exten => 8370,n,Goto(vdamd)Then reload the dialplan:
asterisk -rx "dialplan reload"4. Point one campaign at it
In Campaigns → Detail, change the Routing Extension of one test campaign from 8369 to 8370. Leave your AMD send to VM exten setting as it is — VD_amd.agi keeps handling HUMAN and MACHINE exactly as before. Leave every other campaign on 8369 for now so you have a baseline.
5. Watch the first calls
- In the Asterisk CLI, answered calls on the test campaign should show the AMDY step and an
AMDSTATUSof HUMAN or MACHINE. - In your AMDY dashboard, each verdict appears with its cause and timing.
- If every call shows FALLBACK, check the API key and that the server finished registering.
6. Compare, then roll out
Run the test campaign for at least a few days on the same lists, hours and carriers as a control campaign. Label a sample of answered calls by ear and compare live people kept, machines reaching agents, and agent talk time. When your numbers support it, switch more campaigns to 8370. See how to test AMD on your own calls.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Every call is FALLBACK | Wrong or revoked key, or server not registered | Re-copy the key and re-run the installer |
| EAGI errors in the CLI | Script not executable or wrong path | Check permissions in your AGI directory |
| No change in agent calls | Campaign still routed to 8369 | Confirm the Routing Extension is 8370 |
| Calls wait too long | Native AMD running before AMDY | Make sure AMD() only runs on the FALLBACK branch |