LineVaults
Switch from Twilio · migration guide

Replace Twilio AMD with detection that runs on your dialer

Teams replace Twilio AMD when their outbound calls live in VICIdial or Asterisk rather than in Twilio's Voice API. Twilio's machine detection is an option on calls you create through Twilio; LineVaults judges the answer on your own server, whichever trunk carried the call.

01 · Scope

What Twilio detection covers, and what it doesn't

Twilio's detection is requested call by call: you add the MachineDetection parameter when your code creates an outbound call through its API. Twilio then reports who picked up in AnsweredBy, with values such as human, several machine values, fax or unknown. Depending on the setup, the answer arrives before the call is connected or asynchronously, while it runs.

That design suits applications built on Twilio. It does not reach calls your own Asterisk server dials over other carriers, and a VICIdial campaign has no place to set the parameter.

LineVaults works one layer down. Your Asterisk or FreeSWITCH server already holds the answered audio; a small client streams its first seconds to LineVaults and receives one verdict. The carrier that delivered the call makes no difference.
02 · Comparison

Twilio AMD against LineVaults, item by item

ItemTwilio AMDLineVaults
How it is switched onThe MachineDetection parameter on each API call requestOne EAGI line after Answer(), or a WebSocket from your own code
How the answer is deliveredThe AnsweredBy valueOne JSON message, mapped to channel variables by the client
Dialers it servesApplications that place calls through Twilio's APIVICIdial, GoAutoDial, Asterisk 13+, FreeSWITCH, or any system through the WebSocket API
CarriersTwilio's own networkAny SIP trunk; the audio is taken from your own server
What your dialplan readsNot a dialplan featureAMDSTATUS and AMDCAUSE, the variables VICIdial's VD_amd.agi expects
Time to a verdictSet by the mode and options you chooseMost calls near 2.0 s; the unclear 5 to 9% get up to 3.2 s
Phone call-screening assistantsSee their docsReported separately as SCREENING
Recordings that sound like a live "Hello?"See their docsClassified as recordings
Behavior on an outage or bad keySee their docsImmediate FALLBACK, no audio consumed; Asterisk AMD() decides; free
Evidence per callSee their docsCause, confidence and timing in the call log; the audio heard, kept 1 to 90 days or never
Price modelA per-call fee added to their calling charges (their pricing page has the rate)Sandbox 50,000/month at $0; Core $119 for 1,500,000; $0.00015 per extra call

Source for the Twilio column: its public documentation, read on 2026-11-26. Re-check Twilio's current docs and pricing before deciding; both can change.

03 · Decision

Stay, or move the detection to your dialer?

Stay with Twilio AMD

Every call your product makes is already created by code against Twilio's Voice API, as with an in-house calling app or a voice bot. The parameter is already there and needs no second integration, so adding another service may not pay off.

Move to LineVaults

  • The dialer of record is VICIdial, GoAutoDial, Asterisk or FreeSWITCH, and it is staying.
  • Traffic is split across more than one SIP provider, or may be later.
  • Supervisors need to replay the seconds behind a disputed verdict.
  • Finance wants a fixed monthly line, not a charge on every call.
  • Your company resells hosted VICIdial and wants detection as a line item under its own brand (private label).
04 · Migration plan

Moving over in five steps

  1. List the flows that use detection

    Note which campaigns depend on Twilio AMD today and which already run through your own dialer. Calls created by code on Twilio's API stay where they are; this plan covers the calls your dialer places.

  2. Open a Sandbox account and create a key

    50,000 calls a month, no card. One key per dialer server keeps the logs easy to read.

  3. Install the client

    linevaults.agi.py for VICIdial, GoAutoDial and Asterisk; linevaults_amd.lua with mod_audio_stream for FreeSWITCH. Run its connection test before any live call.

  4. Route one campaign through it

    Keep Asterisk AMD() as the FALLBACK branch, so a missing key or a lost connection never drops a call.

  5. Compare, then move the rest

    After a week, set agent connects and dead air against your current numbers, replay any verdict you doubt, then switch the remaining campaigns and pick a plan.

Setup details: VICIdial, Asterisk, FreeSWITCH, WebSocket API. Before you switch, read how the detection works and the measured accuracy, or weigh all four methods in the buyer's guide.

Trademark notice: Twilio is a trademark of its owner. LineVaults has no affiliation with Twilio and is not endorsed or sponsored by it.

Other migration guides: Telnyx AMD · Plivo AMD · AMDY

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.