Acoustic answering machine detection, stage by stage
Acoustic answering machine detection judges an answered call by what its first seconds sound like, not by how long the pauses last. This page documents the LineVaults detection path: the order of the checks, how long the service listens, what it returns, and where it can still be wrong.
The problem with timer rules
Most Asterisk-based dialers, VICIdial and GoAutoDial included, ship with the AMD() application. It does not listen to the answer in any real sense. It measures the silence after pickup, the length of each burst of speech and the number of words, then compares those counts against fixed limits in amd.conf. The working assumption is simple: a short greeting followed by quiet is a person, a long stretch of speech is a recording.
Real answers break that assumption many times a day:
| How the call was answered | What a timer measures | Typical timer result |
|---|---|---|
| "Hello? ... Hello?" with a pause in between | Short words, then a long silence | MACHINE (a person lost) |
| A person driving, or turning away to speak to a colleague | Irregular speech and gaps | MACHINE (a person lost) |
| A short personal voicemail greeting | One short phrase, then quiet | HUMAN (an agent hears voicemail) |
| Carrier messages, call screening, recorded "Hello?" robots | Speech shaped like a person's | HUMAN (an agent hears a recording) |
Each of those limits is a single number applied to every call. Raise one to save hesitant people and more short greetings slip through; lower it and the reverse happens. The errors move around, they don't go away. That is the gap acoustic detection closes.
02 · PipelineThe detection path
Every answered call passes the same four stages in a fixed order. Deterministic checks run ahead of the model, which handles only what they leave open.
| Stage | What it examines | What it catches | Result when it decides |
|---|---|---|---|
| 1 · Tones | Every chunk of audio as it arrives | Busy, reorder, SIT intercepts ("not in service"), fax, ringback, voicemail beeps | BUSY or TONE |
| 2 · Acoustic model | The first seconds of the answer | A live person versus voicemail, call screening assistants, silence and tones; built for real telephone audio, so line noise, codecs and accents don't mislead it | HUMAN, MACHINE, SCREENING, SILENCE |
| 3 · Recording match | The opening of the answer | Recorded greetings played to many numbers: robocall "Hello?" openers and carrier messages produced to imitate a live pickup | MACHINE |
| 4 · Decision rule | The evidence from stages 1 to 3 | Anything not confidently a person | HUMAN only for a confident person; otherwise a machine cause or UNKNOWN |
Stage 4 is deliberately one-sided. A call goes to an agent only when the evidence says a person is on the line; doubt is never rounded up to HUMAN. The benchmark report shows what that rule produces on real traffic.
The listening window
The service does not wait a fixed time on every call. It answers as soon as it is sure and listens longer only when that changes the outcome:
- 0 s · AnswerThe dialer opens the connection and streams the callee's audio from pickup.
- 2.0 s · First decisionMost calls are settled here, once 2 seconds of audio have arrived.
- Up to 3.2 s · Unclear callsSoft-spoken or noisy answers receive extra audio rather than a guess: 5 to 9% of calls.
- Verdict sentOne JSON message. Logging and recording happen only after it has gone out.
| Condition | When the verdict is sent |
|---|---|
| Clear answer | After 2.0 s of audio |
| Unclear at 2.0 s | After up to 3.2 s of audio; the verdict carries "extended": true |
| A 0.6 s gap in the audio, once 1 s or more has been received | At once, from the audio received |
The call ends, or the client sends close | At once, from the audio received |
| Tone recognized | Decided on the tone; tones are fixed patterns, not guesses |
Because a verdict can take up to 3.2 seconds plus network time, every client is set to a 4,500 ms timeout.
04 · InterfaceOutput values
The service returns a status your dialer acts on and a cause that explains it. The clients write them to AMDSTATUS and AMDCAUSE; the WebSocket API reference lists every field.
| AMDSTATUS | AMDCAUSE | Heard on the line | Usual routing |
|---|---|---|---|
| HUMAN | HUMAN | A live person | Bridge to an agent |
| MACHINE | MACHINE | A voicemail greeting or recorded speech, repeated "Hello?" recordings included | Hang up, or leave a voicemail message |
SCREENING | An assistant answering on the owner's behalf (Google Call Screen, iPhone screening) | Hang up, or report separately | |
SILENCE | Nothing said; usually a hangup or a dead line | Hang up | |
TONE | Intercept tones, fax, ringback, dial tone, a beep | Hang up; review the number | |
BUSY | Busy or reorder tone | Hang up; retry later | |
UNKNOWN | Nothing was confident enough to call | Treat as a machine | |
| FALLBACK | AUTH, QUOTA, NOSERVER and others | No judgment made | Run your own detection, such as AMD() |
Note the absence of NOTSURE: uncertainty is resolved by listening longer, never passed on to the dialplan.
Failure behavior
- Refusals come first. A missing or wrong key, a used-up Sandbox plan, a plan limit or an unreachable service returns
FALLBACKbefore any audio is used, so the dialplan can run AsteriskAMD()while the call is still fresh. - Errors after streaming are not people. Once audio is flowing, a timeout or lost connection makes the clients report
MACHINE/UNKNOWN; agents never receive an unconfirmed call. - The verdict never waits on storage. Call logs and recordings are written after the verdict has been sent.
- Refusals are free.
FALLBACKanswers are never billed.
Known limits
Every detector makes mistakes in both directions; a perfect score means only one direction was counted. On our 400 hand-checked test calls:
| Error | Rate | Usual reasons |
|---|---|---|
| Live person judged a machine | About 5 in 100 people | Near-whispered answers, first words addressed to someone nearby, heavy line noise |
| Machine passed to an agent | About 12 in 100 agent calls | Brief self-recorded greetings, newly released robots engineered to pass as live |
| Tone misread | Almost never | Ringback, busy, SIT and fax follow fixed patterns |
The method behind these figures is on the benchmarks page. To weigh this approach against timers, transcripts and carrier AMD, read the buyer's guide; to wire it into a dialer, start with VICIdial, Asterisk or FreeSWITCH.
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.