LineVaults
Technology · detection path

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.

01 · Background

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 answeredWhat a timer measuresTypical timer result
"Hello? ... Hello?" with a pause in betweenShort words, then a long silenceMACHINE (a person lost)
A person driving, or turning away to speak to a colleagueIrregular speech and gapsMACHINE (a person lost)
A short personal voicemail greetingOne short phrase, then quietHUMAN (an agent hears voicemail)
Carrier messages, call screening, recorded "Hello?" robotsSpeech shaped like a person'sHUMAN (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 · Pipeline

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

StageWhat it examinesWhat it catchesResult when it decides
1 · TonesEvery chunk of audio as it arrivesBusy, reorder, SIT intercepts ("not in service"), fax, ringback, voicemail beepsBUSY or TONE
2 · Acoustic modelThe first seconds of the answerA live person versus voicemail, call screening assistants, silence and tones; built for real telephone audio, so line noise, codecs and accents don't mislead itHUMAN, MACHINE, SCREENING, SILENCE
3 · Recording matchThe opening of the answerRecorded greetings played to many numbers: robocall "Hello?" openers and carrier messages produced to imitate a live pickupMACHINE
4 · Decision ruleThe evidence from stages 1 to 3Anything not confidently a personHUMAN 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.

03 · Timing

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:

  1. 0 s · AnswerThe dialer opens the connection and streams the callee's audio from pickup.
  2. 2.0 s · First decisionMost calls are settled here, once 2 seconds of audio have arrived.
  3. Up to 3.2 s · Unclear callsSoft-spoken or noisy answers receive extra audio rather than a guess: 5 to 9% of calls.
  4. Verdict sentOne JSON message. Logging and recording happen only after it has gone out.
ConditionWhen the verdict is sent
Clear answerAfter 2.0 s of audio
Unclear at 2.0 sAfter 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 receivedAt once, from the audio received
The call ends, or the client sends closeAt once, from the audio received
Tone recognizedDecided 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 · Interface

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

AMDSTATUSAMDCAUSEHeard on the lineUsual routing
HUMANHUMANA live personBridge to an agent
MACHINEMACHINEA voicemail greeting or recorded speech, repeated "Hello?" recordings includedHang up, or leave a voicemail message
SCREENINGAn assistant answering on the owner's behalf (Google Call Screen, iPhone screening)Hang up, or report separately
SILENCENothing said; usually a hangup or a dead lineHang up
TONEIntercept tones, fax, ringback, dial tone, a beepHang up; review the number
BUSYBusy or reorder toneHang up; retry later
UNKNOWNNothing was confident enough to callTreat as a machine
FALLBACKAUTH, QUOTA, NOSERVER and othersNo judgment madeRun your own detection, such as AMD()

Note the absence of NOTSURE: uncertainty is resolved by listening longer, never passed on to the dialplan.

05 · Safety

Failure behavior

  • Refusals come first. A missing or wrong key, a used-up Sandbox plan, a plan limit or an unreachable service returns FALLBACK before any audio is used, so the dialplan can run Asterisk AMD() 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. FALLBACK answers are never billed.
06 · Limits

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:

ErrorRateUsual reasons
Live person judged a machineAbout 5 in 100 peopleNear-whispered answers, first words addressed to someone nearby, heavy line noise
Machine passed to an agentAbout 12 in 100 agent callsBrief self-recorded greetings, newly released robots engineered to pass as live
Tone misreadAlmost neverRingback, 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.

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.