VICIdial answering machine detection that leaves VD_amd.agi in charge
LineVaults adds VICIdial answering machine detection at one point in the call path: an EAGI step that runs just before VICIdial's own VD_amd.agi. The AMDSTATUS variable, the campaign settings and your voicemail handling stay exactly as they are. Only the judgment behind them changes.
Where LineVaults sits in a VICIdial call
VICIdial sends answered calls on AMD campaigns to a routing extension. LineVaults runs inside a copy of that extension, so nothing upstream or downstream needs to know it is there.
- Campaign dialsThe hopper, dial level and carrier work as today.
- Call answeredAsterisk sends it to the routing extension
8370. - linevaults.agi.pyStreams the answer over TLS and sets
AMDSTATUSandAMDCAUSE. - VD_amd.agiReads
AMDSTATUSas it always has. - OutcomePeople are bridged to agents. Machines are dispositioned AA and disconnected, or given your recorded message.
What changes on the server, and what doesn't
| Item | Status | Detail |
|---|---|---|
| Campaign Routing Extension | Changed | 8369 → 8370 |
extensions.conf | Added | One new extension, a copy of your AMD extension |
agi-bin | Added | The linevaults.agi.py client, Python 3.6+ standard library only |
VD_amd.agi | Unchanged | Still decides what happens to each call |
| AMD send to VM exten | Unchanged | Voicemail drop keeps working |
amd.conf | Standby | Used only when the verdict is FALLBACK |
| Carriers and trunks | Unchanged | Detection hears the audio already on your server |
| VICIdial and Asterisk versions | Unchanged | Asterisk 13 or newer; no upgrade needed |
The extension
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)
The native branch is your safety net: if a key is wrong or the service can't be reached, the call runs through Asterisk AMD() and continues as before. Copy the VD_amd.agi and agi-VDAD_ALL_outbound.agi lines from your own 8369, since some installs pass extra options. The installation guide covers every screen.
Why stock VICIdial AMD loses live people
Out of the box, VICIdial relies on Asterisk's AMD(), configured through amd.conf. That application counts pauses and word lengths; it never considers what the voice sounds like. So a person who answers and waits for you to speak first gets classed as a machine, while a brisk two-word greeting on a voicemail box gets classed as a person. Turning AMD on usually cuts the voicemail agents hear, and cuts the live people they hear along with it. Plenty of centers switch it off for that reason and pay agents to listen to greetings all day.
Changing the amd.conf values shifts which calls are misjudged. It does not reduce how many are. The technology page explains what listening to the answer does differently.
Measured numbers to expect
| Measure | Value | Basis |
|---|---|---|
| Live people sent to agents | 94.9% | 400 hand-checked calls, benchmarks |
| Agent calls that were people | 88% | Same test |
| Answer to verdict | About 2 s | Up to 3.2 s for unclear calls |
| Calls lost when the service can't judge | None | FALLBACK hands the call to AMD() |
What agents and supervisors notice
- More hesitant "Hello?" answers reach a headset instead of being dispositioned AA.
- Fewer voicemail greetings and carrier announcements get through to agents.
- Google and iPhone screening assistants are reported on their own, as
SCREENING. - Time from answer to agent stays close to what a typical AMD setting gives: about 2 seconds.
Supported VICIdial deployments
Supported: every VICIdial build running on Asterisk 13 and later. That covers ViciBox 11 and 12, installs from source, GoAutoDial and clusters with several dialer servers, where each server holds its own connection. One key per server keeps their traffic apart in the dashboard. The carrier doesn't matter, because detection works on the audio your server already receives. Systems outside VICIdial can use the Asterisk integration or the AMD WebSocket API; plans and limits are on the pricing page.
08 · QuestionsVICIdial integration questions
Is VD_amd.agi replaced?
No. VICIdial's script still owns call handling; LineVaults supplies the AMDSTATUS input it acts on.
Which timeout goes in the EAGI line?
Use 4500. The longest listening window is 3.2 s, and the remainder absorbs network round trips.
Does voicemail drop still work?
Yes. A MACHINE result follows the campaign's existing send-to-VM configuration, unchanged.
Do we have to upgrade VICIdial first?
No upgrade is involved. If the server runs Asterisk 13 or later, the client works with the versions already installed.
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.