Emergency server help: get in touch

Linux

Linux server scripts, tools and guides for AlmaLinux, Rocky Linux, Ubuntu and Debian: hardening, firewalls, databases, mail and monitoring.

225 guides, scripts and tools for Linux. Search them or pick a type. Press / to search.

225 pages

Restore a FreePBX Backup to a New Server: Tested on FreePBX 17

We backed up a working FreePBX 17 server, reinstalled it from a blank Debian 12, restored the backup and made inbound and outbound test calls. The restore works, but the backup skipped core when it ran from /root, left out the _custom.conf files and the call recordings, and reported errors with exit code 0.

October 17, 2026

ASR and ACD Calculator: CDR Call Quality for FreePBX, Asterisk and Carriers

Open a FreePBX or Asterisk CDR export, or a carrier CSV, and get ASR, NER, ACD, short-call and 0-second rates per trunk, hour and destination prefix, with warnings worth checking. Runs in your browser; nothing is uploaded.

October 17, 2026

PBX Support Bundle for Asterisk and FreePBX: Share Diagnostics Without Passwords

A Bash script that collects what a consultant or your SIP provider asks for (versions, PJSIP transports, endpoints, registrations, selected configs and recent logs) into a private archive, with passwords, digest values, keys, e-mail addresses, public IPs and phone numbers masked. Nothing is uploaded.

October 17, 2026

Calls Drop After 30 Seconds or 15 Minutes? A Tested Decision Tree for FreePBX and Asterisk

When calls drop after 30 seconds, 32 seconds or about 15 minutes, the exact time points to the cause. We reproduced each drop on a FreePBX 17 server and show the SIP trace, the Asterisk log line and the fix for each one.

October 17, 2026

SIP TLS Certificate Check for Asterisk and FreePBX (TLS and WSS)

A read-only Bash script that checks every SIP TLS certificate an Asterisk or FreePBX server uses (PJSIP TLS transports and the WSS server WebRTC phones connect to): days left, host name, chain, private key, and whether Asterisk still serves an old certificate after a renewal.

October 17, 2026

SDP Offer/Answer Comparator: Codecs, Direction, SRTP and DTMF

Paste the SDP offer and answer from a SIP call and see, per media line, which codecs both sides accept, which one the answer prefers and what is wrong: no common codec, hold or one-way direction, RTP versus SRTP or DTLS, missing DTMF, rtcp-mux, ICE and media addresses. Runs in your browser.

October 17, 2026

A SIPp 200 OK Is Not Proof Your Carrier Got the Call (FreePBX Test)

A SIPp load test through FreePBX reported 30 of 30 successful calls, yet the call records showed only 9 reached the carrier: the PBX answered the other 21 itself with a concurrency-limit announcement. Here is why it happens, how to check the CDR, and how to run a load test you can trust.

October 17, 2026

SIPp Call Load Test for Asterisk and FreePBX, Checked Against the CDR

A Bash wrapper around SIPp that registers as one of your extensions, places a controlled burst of calls through Asterisk or FreePBX and then reads the call records, so calls the PBX answered itself are reported as false successes instead of delivered calls.

October 17, 2026

Call Recording Retention Cleaner: Delete or Archive Old FreePBX Recordings

A Bash script that enforces a retention period on Asterisk and FreePBX call recordings. It is a dry run by default, can archive old recordings into a verified tar.gz before deleting them, skips calls still being recorded, can stop the FreePBX call log linking to removed files, and can run only when the disk is filling up.

October 16, 2026

VoIP Toll Fraud Watch: Alert on International and After-Hours Calls in Asterisk

A Bash script that reads the Asterisk or FreePBX call records every few minutes and raises an alarm on the patterns of toll fraud: bursts of international or premium-rate calls, long international talk time, calls outside office hours, one extension making far more calls than usual, and transit calls that come in on a trunk and go straight back out.

October 16, 2026

FreePBX Off-Site Backup Script: Databases, Config and Voicemail over rsync

A Bash script that backs up a FreePBX or Asterisk server without the FreePBX Backup module: both databases, the Asterisk internal database, configuration, voicemail, prompts and provisioning files, with checksums, a read-back check, an rsync/SSH copy to another server that is verified, and pruning of old sets.

October 16, 2026

Asterisk Security Audit: Check FreePBX for Toll Fraud Risks and Exposed Ports

A read-only Bash audit for Asterisk and FreePBX that finds the settings behind toll fraud and hijacked PBXs: unsupported versions, public AMI or IAX2, weak SIP passwords, anonymous SIP, trusted IPs in internal contexts, a blind fail2ban jail and unprotected international routes, each with a one-line fix.

October 16, 2026

Free website test

Is your website set up right?

Check SSL, security headers, redirects, robots.txt, sitemap, llms.txt and security.txt in one test. It takes about 30 seconds.