Vicidial AMD Settings: Getting Answering Machine Detection Right
Vicidial AMD settings live in two places. The campaign decides whether answering machine detection runs and what happens to a machine: the Routing Extension (8369 runs AMD on a stock install, 8368 skips it), AMD Send to VM exten, the Answering Machine Message, WaitForSilence Options, CPD AMD Action and AMD Agent Route Options. The dialplan line for extension 8369 holds the eight Asterisk AMD() timings that decide human or machine. Tune those timings one at a time on a small test list, and remember that every millisecond of analysis is silence a live person hears before an agent says hello.
How AMD Works in Vicidial
When an auto-dialed call is answered, the AMD extension runs Asterisk's AMD() application on the first few seconds of audio. It doesn't understand words. It measures sound and silence: a short "Hello?" followed by a pause looks human, while a long, unbroken greeting or a long silence looks like a machine.
AMD() sets two channel variables. AMDSTATUS is the verdict (HUMAN, MACHINE, NOTSURE or HANGUP) and AMDCAUSE is the reason, such as LONGGREETING, INITIALSILENCE or MAXWORDS. Vicidial's VD_amd.agi script reads them, logs them to the vicidial_amd_log table and routes the call. By default, HUMAN and NOTSURE go to an agent and MACHINE does not.
AMD only runs on auto-dial campaigns. If you dial with MANUAL or click-to-dial, the detector never sees the call.
The Asterisk AMD() Timings
Check what your server actually passes before you change anything:
asterisk -rx "dialplan show 8369@default"
On many Vicidial installs the line looks like this:
exten => 8369,n,AMD(2000,2000,1000,5000,120,50,4,256)
Values passed in the dialplan override /etc/asterisk/amd.conf. That's the most common reason an amd.conf edit "does nothing." Here's what each position means (all times in milliseconds):
| # | Parameter | What it does | Tuning effect |
|---|---|---|---|
| 1 | initialSilence | Longest silence allowed before the greeting starts. Longer = MACHINE. | Raise it if people who pick up and pause get flagged as machines. |
| 2 | greeting | Longest greeting allowed. Longer = MACHINE. | Raise it for business lists where people answer with a company name. |
| 3 | afterGreetingSilence | Silence after a greeting that confirms HUMAN. | Lower it to route humans sooner; too low lets short voicemail greetings through. |
| 4 | totalAnalysisTime | Hard cap on analysis time. Hitting it returns NOTSURE. | Lower it to cut dead air, at the cost of more NOTSURE calls. |
| 5 | minimumWordLength | Shortest burst of sound counted as a word. | Raise it slightly on noisy lines so clicks don't count as words. |
| 6 | betweenWordsSilence | Silence that separates one word from the next. | Rarely changed; feeds the word count. |
| 7 | maximumNumberOfWords | Most words allowed in a greeting. More = MACHINE. | Raise it if wordy humans get dropped; lower it if voicemails reach agents. |
| 8 | silenceThreshold | Audio level (0 to 32767) treated as silence. | Raise it on lines with background noise or hiss. |
Newer Asterisk versions also accept a ninth value, maximumWordLength, which flags one very long continuous sound as a machine. After a dialplan edit, run dialplan reload. After an amd.conf edit, run module reload app_amd.so.
Campaign Settings That Matter
Open Campaigns → [your campaign] → Detail. Field names vary a little between Vicidial versions.
Routing Extension and AMD Type
The Routing Extension turns detection on or off for the campaign. Use the AMD extension (8369 on a stock install) only on campaigns where you've decided AMD is worth it. AMD Type picks the engine: Asterisk's built-in AMD, or an external call progress detection (CPD) engine if your server has one.
AMD Send to VM Exten, Answering Machine Message and WaitForSilence
With AMD Send to VM exten set to N, a detected machine is hung up and dispositioned as an answering machine (usually AA). Set it to Y and Vicidial sends the machine to the campaign's Answering Machine Message, the recording that plays to the voicemail box.
WaitForSilence Options only matter on that message path. They map to Asterisk's WaitForSilence() (milliseconds of silence required, how many times to wait for it, and an optional timeout), so the message starts after the greeting and beep instead of halfway through. They don't change whether a call is judged human or machine. Leaving a recorded message is a prerecorded call, so the consent rules below apply.
CPD AMD Action
CPD AMD Action applies when an external CPD engine makes the call. DISABLED does nothing. DISPO marks the call AA and hangs up. MESSAGE plays the Answering Machine Message. INGROUP sends the call to the AMD Inbound Group, and CALLMENU sends it to a call menu. MESSAGE, INGROUP and CALLMENU each need their destination built first, or the call has nowhere to land.
AMD Agent Route Options
Set to ENABLED, this sends only the STATUS,CAUSE pairs you list in the campaign's AMD agent options settings container to agents (for example HUMAN,HUMAN and NOTSURE,TOOLONG). It's the cleanest way to test a cause you suspect is hiding real people, such as MACHINE,INITIALSILENCE: route it to agents for one shift and see what they find.
Survey and Message Campaigns
Survey and broadcast-style campaigns use their own routing extensions. If you add AMD there, confirm with dialplan show which extension runs AMD(), and treat every recording as a prerecorded message for consent purposes.
Testing on a Small List First
Don't tune on a live campaign:
- Copy the campaign and attach a small list of numbers you're allowed to call, including your own team's phones.
- Call your own phones and answer three ways: a quick "Hello?", a long "Thanks for calling, this is..." greeting, and letting it go to voicemail.
- Watch the Asterisk CLI (
asterisk -rvvv) forAMDSTATUSandAMDCAUSEon each call. - Turn on recordings and listen to the first few seconds of a sample of calls, marking what was really there: person, voicemail, carrier message or silence.
- Change one value, reload, and repeat. Two changes at once and you won't know which one helped.
Then compare vicidial_amd_log against agent dispositions in vicidial_log (joined on uniqueid) to see how often each cause is wrong. If calls fail before AMD ever runs, the problem is upstream; our guide to Vicidial SIP codes and hangup causes covers those, and our Vicidial one-way audio fix helps when AMD hears silence because no audio is arriving.
Why AMD Creates Dead Air and How to Reduce It
A live person who says "Hello?" waits through afterGreetingSilence before AMD calls them human, then waits again while the call reaches an agent. If AMD can't decide, they wait until totalAnalysisTime runs out. That silence is why people hang up on AMD calls.
To reduce it:
- Lower totalAnalysisTime and afterGreetingSilence carefully, testing after each change.
- Send NOTSURE to agents rather than dropping it.
- Keep agents available. AMD plus an aggressive dial level means humans wait in queue after detection. Pace with ADAPT_HARD_LIMIT and a Drop Percentage Limit at or below 3; our guide to improving call center answer rates walks through pacing.
- Check route quality. Clean audio helps AMD decide faster. Tier-1 SIP trunking for call centers and a watch on ASR and ACD tell you whether the route is the problem.
AMD and Abandoned-Call Rules (General Info, Not Legal Advice)
AMD doesn't change your obligations. Under the FTC's Telemarketing Sales Rule, a call is abandoned if the person isn't connected to a live sales representative within two seconds of their completed greeting. The safe harbor requires abandoned calls to stay at or below 3% of calls answered by a live person, measured per campaign over a 30-day period, letting unanswered calls ring for at least 15 seconds or four rings, and promptly playing a recorded message with the seller's name and phone number when no agent is available. FCC rules also require that message to include an automated opt-out.
Two practical points for AMD floors. First, AMD analysis time counts against that two-second window, so long timings work against you. Second, if AMD mistakes a live person for a machine and hangs up or plays a recording, the conservative approach is to count that call as abandoned in your own numbers. In Vicidial, set Drop Action to your safe harbor recording and keep Drop Call Seconds tight.
Prerecorded telemarketing messages, including voicemail messages left by AMD Send to VM, need the called party's prior express written consent. You still need to scrub against the National Do Not Call Registry and your internal do-not-call list, honor opt-outs and respect calling hours; our free TCPA calling hours checker helps with the last one. State rules can be stricter. Talk to your own counsel about your campaigns.
When to Turn AMD Off
Consider switching AMD off (Routing Extension 8368) when:
- You call businesses. Receptionists answer with long greetings that look like machines.
- Your list is warm and consented. Every misread person is a lost conversation.
- Your team is small. A few agents on a low dial level gain little and add dead air.
- Your recordings show misreads on the cause you tested and tuning doesn't fix it.
Vicidial AMD Settings FAQ
Where do I change Vicidial AMD settings?
Routing and machine handling are campaign settings. The human-or-machine timings are in the dialplan line for extension 8369, or in amd.conf when AMD() is called with no values.
Why does editing amd.conf change nothing?
Because the dialplan passes its own AMD() values, and those override amd.conf. Edit the dialplan line instead, then run dialplan reload.
Should NOTSURE calls go to agents?
Usually, yes. NOTSURE often means a real person said something AMD couldn't classify in time. Test it with AMD Agent Route Options and your own recordings.
Does AMD help with the 3% abandonment limit?
No. AMD doesn't exempt calls from the rule, and misread live answers can count against you. Control abandonment with pacing, available agents and a safe harbor message. This is general information, not legal advice.
Helpful tools: check your outbound caller IDs with our free spam number checker, estimate monthly US minutes with our VoIP cost calculator, and see how STIR/SHAKEN relates to spam labels.
Run Vicidial Without Babysitting the Server
Our hosted Vicidial dialer runs on Tier-1 US routes with 99.99% uptime, with US DIDs and STIR/SHAKEN-ready caller ID that helps authenticate your calls. Setting up a carrier yourself? Start with our Vicidial SIP trunk setup guide. Our support team is here Monday to Friday, 9am ET to 9pm PT, to help you test AMD and pacing. Tell us about your campaigns and request a quote. Quotes usually come back the same day.
