#!/bin/bash # --- USER CONFIG --- IAXBLOCK="from-astrocom" CONF="/etc/asterisk/iax_custom.conf" # Astrocom API endpoint info ASTROCOM_URL="https://astrocom.tel/api/v1/user/update" # Shouldn't need to change this! ASTROCOM_TOKEN="" # ------------------- # Parse flags DRYRUN=0 if [[ "$1" == "--dry-run" || "$1" == "-n" ]]; then DRYRUN=1 fi # Generate a 32-char alphanumeric secret NEWSECRET=$(tr -dc 'A-Za-z0-9'