[{"data":1,"prerenderedAt":48},["ShallowReactive",2],{"post:en:asterisk-amd-vs-streaming-detection":3},{"slug":4,"title":5,"description":6,"date":7,"updated":7,"author":8,"tags":9,"html":13,"toc":14,"minutes":33,"related":34},"asterisk-amd-vs-streaming-detection","Asterisk AMD() vs streaming voicemail detection","What Asterisk's AMD() application does, how it is tuned and where it struggles, and how to test it against a streaming detector on your own recordings.","2026-11-28","Voicemail Detector",[10,11,12],"asterisk","comparison","testing","\u003Cp>If you run Asterisk, answering machine detection is already installed: the \u003Ccode>AMD()\u003C\u002Fcode> dialplan application. It is free, it runs on your own switch and it is well documented. This post explains what it does, where it tends to struggle, and how to compare it fairly with a streaming detector on your own calls.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>Options and defaults change between Asterisk versions; check the documentation for yours. Last checked 2026-11-28.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2 id=\"what-amd-does\">What AMD() does\u003C\u002Fh2>\n\u003Cp>\u003Ccode>AMD()\u003C\u002Fcode> listens to the start of an answered call and decides from the shape of the audio: how long the first silence lasts, how long the greeting is, how many words it contains and how long they are (\u003Ca href=\"https:\u002F\u002Fdocs.asterisk.org\u002FLatest_API\u002FAPI_Documentation\u002FDialplan_Applications\u002FAMD\u002F\" rel=\"noopener\" target=\"_blank\">Asterisk documentation\u003C\u002Fa>).\u003C\u002Fp>\n\u003Cp>It sets \u003Ccode>AMDSTATUS\u003C\u002Fcode> to one of:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>MACHINE\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Ccode>HUMAN\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Ccode>NOTSURE\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Ccode>HANGUP\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Ccode>AMDCAUSE\u003C\u002Fcode> records which rule decided. The main parameters, with defaults read from \u003Ccode>amd.conf\u003C\u002Fcode>, are:\u003C\u002Fp>\n\u003Cdiv class=\"table-wrap\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Parameter\u003C\u002Fth>\n\u003Cth>What it limits\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>\u003Ccode>initialSilence\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Longest silence allowed before the greeting starts. Exceeding it means machine.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>greeting\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Longest greeting allowed. Exceeding it means machine.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>afterGreetingSilence\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Silence after the greeting. Reaching it means human.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>totalAnalysisTime\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Longest time the analysis may run.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>minimumWordLength\u003C\u002Fcode>, \u003Ccode>betweenWordsSilence\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>What counts as a word, and as a pause between words.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>maximumNumberOfWords\u003C\u002Fcode>, \u003Ccode>maximumWordLength\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Too many words, or one word too long, means machine.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>silenceThreshold\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>The level below which audio counts as silence.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>The idea is simple and often works: a person says a short &quot;hello?&quot; and waits, while a recording talks longer without pausing for an answer.\u003C\u002Fp>\n\u003Ch2 id=\"where-rule-based-detection-struggles\">Where rule-based detection struggles\u003C\u002Fh2>\n\u003Cp>The same rules that make \u003Ccode>AMD()\u003C\u002Fcode> predictable make some answers hard for it:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Short recorded greetings.\u003C\u002Fstrong> A carrier mailbox that only says &quot;leave a message&quot; is as short as a person&#39;s hello.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Long or chatty people.\u003C\u002Fstrong> Someone who answers &quot;Hello, this is Maria from accounts, who&#39;s calling?&quot; talks like a greeting.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Recorded welcomes with pauses.\u003C\u002Fstrong> IVRs and announcements that pause between sentences can look like a person waiting.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Phone assistants and call screeners.\u003C\u002Fstrong> They speak, pause for the caller and speak again, much like a person.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Line conditions.\u003C\u002Fstrong> Background noise, comfort noise and level differences between carriers move the silence threshold.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Tuning helps, but every change trades one error for another. Raising the greeting limit stops cutting people who talk longer, and lets longer recordings through as human. Users on the Asterisk forums regularly discuss exactly this trade-off (\u003Ca href=\"https:\u002F\u002Fcommunity.asterisk.org\u002Ft\u002Famd-troubleshooting\u002F92914\" rel=\"noopener\" target=\"_blank\">community thread\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch2 id=\"what-to-measure\">What to measure\u003C\u002Fh2>\n\u003Cp>Compare any two detectors on the same four numbers:\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Cstrong>People treated as machines.\u003C\u002Fstrong> The expensive error: a real conversation hung up on.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Machines treated as people.\u003C\u002Fstrong> Agent or voice AI time spent on a greeting.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Time to verdict.\u003C\u002Fstrong> Seconds from the answer until the decision, at the median and the 95th percentile.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Unknowns.\u003C\u002Fstrong> How often it gives up, and what your dialer does then.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>A single accuracy percentage hides the difference between the first two, which cost very different amounts.\u003C\u002Fp>\n\u003Ch2 id=\"a-fair-test-on-your-own-recordings\">A fair test on your own recordings\u003C\u002Fh2>\n\u003Cp>You do not need live traffic to compare. Use recordings of answered calls where you know the outcome.\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Cstrong>Build the set.\u003C\u002Fstrong> Pick a few hundred recent answered calls, as 8 kHz mono WAV or raw µ-law, and label each one: person, voicemail, carrier announcement, IVR, call screener. Keep the mix close to your real traffic.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Run Asterisk.\u003C\u002Fstrong> Play each file into a test extension that runs \u003Ccode>AMD()\u003C\u002Fcode> and log \u003Ccode>AMDSTATUS\u003C\u002Fcode>, \u003Ccode>AMDCAUSE\u003C\u002Fcode> and the time of the decision.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Run the streaming detector on the same files.\u003C\u002Fstrong> With Voicemail Detector, send each file to the REST endpoint and keep the verdict and the time it was reached:\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cpre>\u003Ccode class=\"language-sh\">curl -s https:\u002F\u002Fapi.voicemaildetector.com\u002Fv1\u002Fdetect \\\n  -H &quot;Authorization: Bearer $VD_API_KEY&quot; \\\n  --data-binary @call-0001.wav\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The response says \u003Ccode>human\u003C\u002Fcode>, \u003Ccode>machine\u003C\u002Fcode> or \u003Ccode>unknown\u003C\u002Fcode>, with \u003Ccode>at_ms\u003C\u002Fcode>, the point in the call where the verdict was reached (\u003Ca href=\"\u002Fdocs\">API docs\u003C\u002Fa>). Live streams over WebSocket or gRPC give the same verdict as the audio arrives.\u003C\u002Fp>\n\u003Col start=\"4\">\n\u003Cli>\u003Cstrong>Score both.\u003C\u002Fstrong> Count the four numbers above, per category, and look at the calls where they disagree. Those are where your money is.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Our free tier covers 500 calls a month, enough to try it on a test set of your own recordings (\u003Ca href=\"\u002Fpricing\">pricing\u003C\u002Fa>). Coverage is strongest today on Spanish-speaking Latin America (Peru, Colombia, Panama, the Dominican Republic and the Caribbean); English works, with less coverage of English-speaking carriers so far.\u003C\u002Fp>\n\u003Ch2 id=\"which-to-keep\">Which to keep\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Keep \u003Ccode>AMD()\u003C\u002Fcode>\u003C\u002Fstrong> when your calls are mostly to people and mailboxes it already handles, you have someone to tune it, and a few seconds of extra listening are acceptable.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Add a streaming detector\u003C\u002Fstrong> when its errors cost you more than a per-call fee: agents talking to greetings, voice AI minutes spent on recordings, or people hung up on in the countries you dial.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Run both for a while.\u003C\u002Fstrong> Stream calls to the detector, keep acting on \u003Ccode>AMD()\u003C\u002Fcode>, and compare results call by call before you switch.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"sources\">Sources\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fdocs.asterisk.org\u002FLatest_API\u002FAPI_Documentation\u002FDialplan_Applications\u002FAMD\u002F\" rel=\"noopener\" target=\"_blank\">Asterisk AMD() documentation\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fcommunity.asterisk.org\u002Ft\u002Famd-troubleshooting\u002F92914\" rel=\"noopener\" target=\"_blank\">Asterisk community: AMD() troubleshooting\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n",[15,18,21,24,27,30],{"id":16,"text":17},"what-amd-does","What AMD() does",{"id":19,"text":20},"where-rule-based-detection-struggles","Where rule-based detection struggles",{"id":22,"text":23},"what-to-measure","What to measure",{"id":25,"text":26},"a-fair-test-on-your-own-recordings","A fair test on your own recordings",{"id":28,"text":29},"which-to-keep","Which to keep",{"id":31,"text":32},"sources","Sources",4,[35,40,44],{"slug":36,"title":37,"description":38,"minutes":39},"voicemail-detection-cost-per-call","Answering machine detection cost per call: calling platforms vs Voicemail Detector","What built-in answering machine detection costs per call on Twilio, Telnyx, SignalWire, Bandwidth and Voximplant, what it costs on Voicemail Detector, a month at 600,000 answered calls, and when the saving does not hold.",5,{"slug":41,"title":42,"description":43,"minutes":39},"answering-machine-detection-pricing-2026","Answering machine detection pricing compared (2026)","What answering machine detection costs on Twilio, Telnyx, SignalWire, Bandwidth, Voximplant, contact center suites, standalone APIs and open source, and the streaming cost nobody puts in the table.",{"slug":45,"title":46,"description":47,"minutes":33},"twilio-amd-alternatives-2026","Twilio AMD alternatives in 2026","When Twilio's answering machine detection is the right choice, and when Telnyx premium, a standalone streaming API or open source fits better, by situation.",1796140761568]