vicigeeksimple guides
Browse

Helpful checks

Useful tools

Simple checks for VICIdial, Asterisk and SIP. Every tool says when to use it and what a good result looks like.

07 toolsSafe checks firstCommands and explanations

Check before changing anything

Look first. Change carefully.

Read what the command checks before copying it.
T01

Infrastructure · SIP diagnosis

sngrep SIP Flow Viewer

Find a SIP dialog, read its message ladder and inspect the first failing transaction.

Use when
A VICIdial test call has no visible signaling, is rejected, or needs correlation between the agent and carrier legs.
What to check
Install sngrep and download the fictional PCAP from the full guide first. This command opens a file offline without capture privileges. The three generated dialogs teach navigation; they do not prove a real call or audio result. The guide provides a separate bounded live-observation recipe.
Read-only starter · bash
sngrep -F -I ./vicigeek-sngrep-fictional.pcap
Open the full guide
T02

VICIdial · read only

Agent State Correlator

Check the Asterisk call count and one synthetic agent’s current state.

Use when
An isolated test agent appears ready but receives no outbound calls.
What to check
Use an approved root/sudo context for Asterisk CLI and the root-owned0600 client file created in /articles/vicidial-read-only-database-account. The file must select the actual database. First confirm CURRENT_USER()/DATABASE() identify the SELECT-only account, then replace learner1 with your synthetic user. A matching status row and PBX count do not prove a bridge or completed call.
Read-only starter · bash
sudo asterisk -rx 'core show channels count'
sudo mysql --defaults-file=/etc/vicidial-readonly.cnf -e "SELECT CURRENT_USER(), DATABASE(); SELECT user,status FROM vicidial_live_agents WHERE user='learner1';"
Open the full guide
T03

Asterisk · channel trace

DestChannel Timeline

Show recent NO DestChannel log matches, current channels and the AMI event types Asterisk supports.

Use when
A log reports NO DestChannel and you need starting points for a call trace.
What to check
The log matches supply line numbers; current channels are a snapshot and manager show events lists event types, not a chronological event stream.
Read-only starter · bash
grep -n 'NO DestChannel' /var/log/astguiclient/*.log | tail -20
asterisk -rx 'core show channels concise'
asterisk -rx 'manager show events'
Open the full guide
T04

Operations · duplicate safe

Callback Dry-run Ledger

Count duplicate-number groups in one synthetic test list without displaying phone numbers.

Use when
Check a disposable test list for duplicate numbers before a callback exercise.
What to check
Select the actual database using a read-only account. Replace 90001 with your confirmed synthetic test list ID; use only an isolated lab. A zero means no duplicate nonempty exact-number groups in that list; this does not normalize numbers, identify callback owners or move records.
Read-only starter · sql
SELECT COUNT(*) AS duplicate_number_groups FROM (
  SELECT phone_number FROM vicidial_list WHERE list_id = 90001 AND phone_number IS NOT NULL AND phone_number <> ''
  GROUP BY phone_number HAVING COUNT(*) > 1
) AS duplicate_groups;
Open the full guide
T05

Asterisk · file integrity

Recording Boundary Audit

Count recording metadata for one synthetic lead without listing filenames or recording IDs.

Use when
Begin investigating a recording boundary using an isolated test lead.
What to check
Select the actual database using a read-only account, and replace 12345 with the confirmed synthetic test lead ID in an isolated lab. A count shows matching metadata rows only; it does not inspect audio or prove that recordings are separate.
Read-only starter · sql
SELECT COUNT(*) AS recording_rows FROM recording_log
WHERE lead_id = 12345;
Open the full guide
T06

SIP · service namespace

SIP Resolver Preflight

Query the local host resolver and systemd-resolved, and list configured PJSIP outbound registrations.

Use when
Check a carrier hostname and registration status after a trunk stops working.
What to check
Replace sip.carrier.example with the approved hostname. getent tests this host resolver. Run resolvectl only when systemd-resolved is active; an absent command or inactive service is a documented skip, not DNS failure. PJSIP registrations apply only to trunks that REGISTER; use the full guide for other drivers and service namespaces.
Read-only starter · bash
TARGET_HOST='sip.carrier.example'
getent ahosts "$TARGET_HOST"
if command -v resolvectl >/dev/null 2>&1 && systemctl is-active --quiet systemd-resolved; then
  resolvectl query "$TARGET_HOST"
else
  printf '%s\n' 'SKIP: no active systemd-resolved query path; use the getent result.'
fi
sudo asterisk -rx 'pjsip show registrations'
Open the full guide
T07

Dialer · measured tuning

AMD Control Matrix

Count call statuses recorded during the past day.

Use when
Get a baseline status distribution before investigating answering-machine detection.
What to check
The grouped totals alone do not identify human answers or measure false-machine, drop or agent-connect rates; use labeled calls and a comparable control.
Read-only starter · sql
SELECT status, COUNT(*) AS calls
FROM vicidial_log
WHERE call_date >= NOW() - INTERVAL 1 DAY
GROUP BY status ORDER BY calls DESC;
Open the full guide

Follow without guesswork

Get the next article

RSS is live now. Email delivery below is an explicit local preview and sends nothing.Open the RSS feed
Email preview only. The address stays in this browser and is never transmitted.