LineVaults
Integration · VICIdial

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.

01 · Integration point

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.

  1. Campaign dialsThe hopper, dial level and carrier work as today.
  2. Call answeredAsterisk sends it to the routing extension 8370.
  3. linevaults.agi.pyStreams the answer over TLS and sets AMDSTATUS and AMDCAUSE.
  4. VD_amd.agiReads AMDSTATUS as it always has.
  5. OutcomePeople are bridged to agents. Machines are dispositioned AA and disconnected, or given your recorded message.
02 · Change set

What changes on the server, and what doesn't

ItemStatusDetail
Campaign Routing ExtensionChanged8369 → 8370
extensions.confAddedOne new extension, a copy of your AMD extension
agi-binAddedThe linevaults.agi.py client, Python 3.6+ standard library only
VD_amd.agiUnchangedStill decides what happens to each call
AMD send to VM extenUnchangedVoicemail drop keeps working
amd.confStandbyUsed only when the verdict is FALLBACK
Carriers and trunksUnchangedDetection hears the audio already on your server
VICIdial and Asterisk versionsUnchangedAsterisk 13 or newer; no upgrade needed
03 · Dialplan

The extension

/etc/asterisk/extensions.conf · [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)

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.

04 · Rationale

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.

05 · Results

Measured numbers to expect

MeasureValueBasis
Live people sent to agents94.9%400 hand-checked calls, benchmarks
Agent calls that were people88%Same test
Answer to verdictAbout 2 sUp to 3.2 s for unclear calls
Calls lost when the service can't judgeNoneFALLBACK hands the call to AMD()
06 · On the floor

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.
07 · Topology

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 · Questions

VICIdial 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.

Sandbox · 50,000 calls a month · no card

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.