Shell one-liners and a simple monitoring loop for watching queue activity, agent status, and call flow in real time from the command line.
Convert audio files to Asterisk-compatible formats using sox or ffmpeg. Covers single-file WAV, GSM, and ulaw conversion, batch directory scripts, and...
Generate a quick-glance fail2ban report from the command line. The script queries every active jail, prints a summary table of current and total bans,...
Find and remove duplicate cron entries that accumulate from repeated Ansible runs, manual edits, or package upgrades on Asterisk servers. Includes a s...
Diagnose the Asterisk maxsilence and minsecs warning, choose safe voicemail recording values, tune silence detection, and verify real calls.
Diagnose and fix 500 Server Internal Error responses to MWI SUBSCRIBE requests in Asterisk PJSIP. Usually caused by a missing or misconfigured mailbox...
Validate Asterisk configuration before reloading -- catches syntax errors in dialplan, PJSIP, and other configs before they take down your phone syste...
Set up HTTP/HTTPS auto-provisioning for Polycom VVX phones with nginx, TLS, and optional basic auth. Covers the provisioning URL format, config file s...
Configure fail2ban jails and filters to block SIP brute-force and scanning attacks on Asterisk. Includes custom regex filters for PJSIP auth failures ...
Automate Asterisk config deployment with pre-deploy backup, SSH multiplexing for fast transfers, and post-deploy verification. Supports multi-server r...
Automated backup script for Asterisk configuration files, voicemail spools, AstDB, and custom sounds with rotation and optional remote sync.
Monitor SIP trunk registration status and send alerts only on state changes, avoiding alert fatigue from repeated notifications when the trunk remains...
Check PJSIP endpoint registration status and send alerts via Slack or email when phones or trunks go offline. Handles flapping detection to suppress r...
Parse Asterisk full log to extract call statistics -- total calls, answered, unanswered, failed, busiest hour, and top callers.
Enable SIP debug traces on the Asterisk CLI to troubleshoot registration failures, call setup problems, and authentication issues -- with annotated RE...
Configure fail2ban for Asterisk on Debian 12+ systems using journald without rsyslog. Covers the backend switch from file monitoring to systemd journa...
Fix logrotate failures on Debian 12+ systems running journald without rsyslog. Stale configs referencing the syslog user or rsyslog-specific directive...