Skip to content

Help

Troubleshooting

What to check when nothing arrives, everything goes to agents, your old AMD decides the calls, or the install refuses.

Most problems are one of seven things. Each section says how to tell, and what to do.

Start with the doctor

The installer leaves a checker on the dialer. Run it as root:

sudo /usr/local/lib/amdcop/doctor.py

It prints one line per check (Python, the config, who can change the files it runs, the dialplan, the audio path, what a call does when AMD Cop cannot answer, the network, the sender, the last 20 calls and, with the campaign lookup on, your campaigns), each OK, WARN or FAIL, and every failure says what to do. Its output never contains your key, a phone number or a lead id, so you can paste it to us as it is. On an install older than the doctor, run the install command again: it is safe on a dialer it already installed, and it adds the doctor.

Paste its output into the box under the install checklist (on the page that gave you the command) and the failing lines are listed first, each with its fix. The box reads it in your browser and sends it nowhere.

Nothing arrives in the portal

  • The install is still running, or stopped with a message. The install checklist shows the step it reached and, for a failed step, the fix. Or run it again and read the last lines it prints.
  • The server cannot open the port it sends call audio to. The checklist's First call heard row says so with the address, and the installer prints a warning. Allow outbound TCP to that address from the dialer; until then every call falls back.
  • It ran on the wrong server. It has to run on the dialer that places the calls, as root.
  • The dialer cannot reach us. Check the addresses in Network and security from the dialer itself.
  • The dialer reaches us from a different address than you expect. Its heartbeat records the address we see; that is the address the portal registers.

Every call goes to an agent

AMD Cop cannot answer, and the calls fall back to an agent (see Statuses and causes). That happens:

  • when Detection, If AMD Cop cannot answer, says Send every call to an agent;
  • with the default too, when the problem shows more than 1 second after the answer, such as our server not answering at all;

AMDCOP_CAUSE on the call says why AMD Cop could not answer:

  • FALLBACK_UNREACHABLE or FALLBACK_TIMEOUT: the dialer cannot reach the detection service, or it answers too late. Check the network.
  • FALLBACK_REFUSED: the key was revoked, or the dialer is not active. Check both in the portal.
  • FALLBACK_NOT_CONFIGURED: /etc/amdcop/config.json is missing or unreadable. Run the install again.
  • FALLBACK_NO_CALL_ID: the dialplan block was edited by hand. Run the install again to restore it.
  • FALLBACK_ERROR: AMD Cop answered without a verdict. Send us the doctor's output.

If the cause is HUMAN-AMDCOP and your agents still hear voicemails, the campaign is not using AMD Cop: check its Routing Extension (ViciDial guide). After a beside install it must be the extension the portal shows for that dialer under Dialers, which is 8372, not 8371, on a dialer where 8371 was already taken.

Your old AMD decides the calls

Calls carry an AMDCAUSE that does not contain AMDCOP, such as INITIALSILENCE-2000-2000, and AMDCOP_FALLBACK=amd. AMD Cop could not answer, the problem showed within 1 second of the answer, and your own AMD() decided them, which is what Detection asks for by default during an outage. AMDCOP_CAUSE says why, with the meanings in the list above, and the doctor's recent-calls line counts these calls and names the most common cause.

People are hung up on one campaign

The campaign has AMD Agent Route Options ENABLED, and its settings container, AMD_AGENT_OPT_ and the campaign, has no line that lets AMD Cop's people through. ViciDial then hangs up every call that matches no line, people included.

  • The container needs the line HUMAN,HUMAN for people and sampled calls, and NOTSURE,NOTSURE for calls AMD Cop is not sure of or could not answer in time. Or set AMD Agent Route Options to DISABLED for the campaign.
  • The doctor checks each campaign's container when the campaign lookup is on, and names the line to add. See Statuses and causes.

No call records, but calls are routed

Routing works and the portal shows nothing: the sender is not sending.

systemctl status amdcop-sender
ls -la /var/spool/amdcop

The spool should hold today's file and the sender should be running. Where there is no systemd, the sender runs once a minute from /etc/cron.d/amdcop-sender.

Calls land with no audio

Many calls show NOAUDIODATA: the Playback(sip-silence) line that opens the AMD Cop block was removed. Run the install again; it puts the block back as it should be.

The install refuses

The installer stops rather than guess when the dialplan is not what it expects:

  • "no AMD() application": your 8369 no longer runs Asterisk's own AMD, usually because another product replaced it. The installer will not overwrite that blind. Send us its output and we will tell you the safe way in for that dialer.
  • 8369 in two contexts, or a block in the wrong context: the dialplan was edited in a way the installer cannot safely change. It prints what it found. Fix that line, or contact us with the output.
  • Asterisk is not running: start it first. The installer copies nothing until it can talk to Asterisk.

Installed before connector 1.5.0?

Every new install is connector 1.6.0. A dialer installed earlier needs the install command run again before anything else on this page: it upgrades in place, keeps the extension and your settings, and Dialers then shows 1.6.0. Until it is upgraded:

  • on connector 1.4.0 or older, the doctor is in /etc/amdcop/, where the user Asterisk runs as can change it, so do not run it with sudo: upgrade first, and it moves to /usr/local/lib/amdcop/;
  • on connector 1.3.0 or older, causes start with AMDCOP_ (AMDCOP_HUMAN and so on), which a HUMAN,HUMAN container does not match, so people are hung up;
  • before connector 1.2.0, calls AMD Cop cannot answer go to an agent whatever Detection says, and AMDCAUSE carries the reason instead of AMDCOP_CAUSE: AMDCOP_UNAVAILABLE for the network, AMDCOP_NOT_CONFIGURED for the config, AMDCOP_NO_CALL_ID for an edited block.

Still stuck

Send us the doctor's output and, if the install itself failed, the last 40 lines it printed. Contact support lists the ways to reach us.

Never send the key, or the install command, which contains it.

Next: Network and security