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.
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.
Twilio AMD against LineVaults, item by item
| Item | Twilio AMD | LineVaults |
|---|---|---|
| How it is switched on | The MachineDetection parameter on each API call request | One EAGI line after Answer(), or a WebSocket from your own code |
| How the answer is delivered | The AnsweredBy value | One JSON message, mapped to channel variables by the client |
| Dialers it serves | Applications that place calls through Twilio's API | VICIdial, GoAutoDial, Asterisk 13+, FreeSWITCH, or any system through the WebSocket API |
| Carriers | Twilio's own network | Any SIP trunk; the audio is taken from your own server |
| What your dialplan reads | Not a dialplan feature | AMDSTATUS and AMDCAUSE, the variables VICIdial's VD_amd.agi expects |
| Time to a verdict | Set by the mode and options you choose | Most calls near 2.0 s; the unclear 5 to 9% get up to 3.2 s |
| Phone call-screening assistants | See their docs | Reported separately as SCREENING |
| Recordings that sound like a live "Hello?" | See their docs | Classified as recordings |
| Behavior on an outage or bad key | See their docs | Immediate FALLBACK, no audio consumed; Asterisk AMD() decides; free |
| Evidence per call | See their docs | Cause, confidence and timing in the call log; the audio heard, kept 1 to 90 days or never |
| Price model | A 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.
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).
Moving over in five steps
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.
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.
Install the client
linevaults.agi.pyfor VICIdial, GoAutoDial and Asterisk;linevaults_amd.luawith mod_audio_stream for FreeSWITCH. Run its connection test before any live call.Route one campaign through it
Keep Asterisk AMD() as the FALLBACK branch, so a missing key or a lost connection never drops a call.
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
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.