VICIdial AMD configuration in 5 steps
This is the whole VICIdial AMD configuration for RingValee: download one script, add one extension, point one campaign at it, place a test call and watch the result arrive. Budget about 15 minutes per dialer server. Any ViciBox 11 or 12, scratch-built VICIdial or GoAutoDial server qualifies, as long as Asterisk is 13 or later.
Updated 2026-11-26 · about 15 minutes · you'll need root on each dialer server
- 1 · ScriptMake a key, download
ringvalee.agi.py, check it connects - 2 · ExtensionAdd
8370next to your8369 - 3 · CampaignRouting Extension to
8370 - 4 · Test callCall your own phone, twice
- 5 · Call logSee verdicts, listen, compare
Step 1 · Get a key and the script
Create your account (free, no card), go to WS keys and make one key for each dialer server. Name each key after its server so the dashboard tells them apart. Copy the key right away: it's only shown once.
Then, on each dialer:
cd /var/lib/asterisk/agi-bin
curl -fsSLO https://www.ringvalee.com/assets/ringvalee.agi.py
chmod 755 ringvalee.agi.py
python3 --version # needs 3.6+; ViciBox 11 and 12 already have itThe same file is on the WS keys page if you'd rather download it there. It only uses Python's standard library, so there's nothing else to install. Before touching the dialplan, check that the server can reach RingValee:
python3 /var/lib/asterisk/agi-bin/ringvalee.agi.py --test wss://amd.ringvalee.com/ YOUR_KEYIt plays 3 seconds of silence as if it were a call. After about 2 seconds you should see AMDSTATUS=MACHINE AMDCAUSE=SILENCE.
FALLBACK AUTH: the key is wrong. Copy it again.FALLBACK NOSERVER: the server can't reachamd.ringvalee.comon port 443. Check DNS and outbound HTTPS.
Step 2 · Add one extension
Answered calls with AMD on go to extension 8369. Next to it, in the same context (normally [default]) of /etc/asterisk/extensions.conf, add a sibling called 8370:
exten => 8370,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 8370,n,EAGI(ringvalee.agi.py,wss://amd.ringvalee.com/,YOUR_KEY,4500)
exten => 8370,n,GotoIf($["${AMDSTATUS}" = "FALLBACK"]?native)
exten => 8370,n(vdamd),AGI(VD_amd.agi,${EXTEN})
exten => 8370,n,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB-----${CONNECTEDLINE(name)})
exten => 8370,n,Hangup()
exten => 8370,n(native),AMD(2000,2000,1000,5000,120,50,4,256)
exten => 8370,n,Goto(vdamd)8369 may pass extra options to VD_amd.agi or agi-VDAD_ALL_outbound.agi. Copy those two lines from your own 8369, not from this page.Reload and confirm: asterisk -rx "dialplan reload", then asterisk -rx "dialplan show 8370@default". The native line is your safety net: if RingValee answers FALLBACK, the call runs the old AMD().
Step 3 · Point one campaign at it
Pick a campaign
Go to Campaigns in VICIdial's admin. Choose one with steady volume so the numbers mean something.
Change the Routing Extension
Set it to
8370. With Asterisk AMD on it reads8369.Leave the rest alone
Don't change AMD send to VM exten or the voicemail message. Click Submit.
Step 4 · Place a test call
Load your own mobile number as a lead in that campaign and let the dialer call it twice:
- Let it go to voicemail. The call should be handled as a machine, exactly as your campaign does with AA.
- Pick up and say "Hello?" like you normally would. You should hear an agent, or the agent should get you.
With console verbosity at 3 or higher, Asterisk prints each verdict on a line starting with ringvalee.agi:, for example ringvalee.agi: HUMAN HUMAN.
Step 5 · Watch the call log
- Open Call logs in your dashboard. Calls show up within seconds, each with its verdict, reason and timing.
- Play back a few to hear exactly what was heard before deciding.
- In VICIdial, compare the campaign's AA count and agent connects with the days before.
Happy with it? Move the other campaigns over. The test results page explains how to count both kinds of mistakes on your own calls, and the savings calculator puts a dollar figure on the difference.
Changing your mind
Put 8369 back in the campaign's Routing Extension field. You're done; nothing else needs undoing.
If something looks wrong
Asterisk's log shows FALLBACK on every call
Run the test from step 1. AUTH means the key in the EAGI line is wrong. NOSERVER means the dialer can't reach amd.ringvalee.com: check outbound port 443 and DNS.
The dashboard is empty
The campaign is probably still on 8369, or the reload didn't take. Check the Routing Extension and run "dialplan show 8370@default" again.
Agents notice a pause before the customer speaks
A verdict takes about 2 seconds after answer, about what a typical AMD setting uses. If you see more, compare the elapsed time in the call log with what you hear, and test the network route from the dialer.
"python3: not found"
The server has no Python 3 yet. Add it with the system's package manager; ViciBox is openSUSE-based, so: zypper install python3
Not on VICIdial? See plain Asterisk, GoAutoDial, FreeSWITCH or the API.
Let your agents talk to people, not greetings
25,000 calls a month free, no card. If anything goes wrong, your dialer quietly falls back to Asterisk AMD() for that call.