From 8984dbf601feba1cd1c16cd29dead95566b441b0 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 29 Oct 2025 16:27:28 +0100 Subject: [PATCH] Asterisk: add interactive version selection to installer The install script now fetches available Asterisk versions (Standard, LTS, Certified) from the official website and prompts the user to select which version to install. The download and installation process adapts based on the user's choice. Also updated package management commands from 'apt-get' to 'apt' for consistency. --- install/asterisk-install.sh | 69 +++++++++++++++++++++++++++++++++---- 1 file changed, 63 insertions(+), 6 deletions(-) diff --git a/install/asterisk-install.sh b/install/asterisk-install.sh index adb53406e..07557a072 100644 --- a/install/asterisk-install.sh +++ b/install/asterisk-install.sh @@ -13,8 +13,65 @@ setting_up_container network_check update_os +ASTERISK_VERSIONS_URL="https://www.asterisk.org/downloads/asterisk/all-asterisk-versions/" +html=$(curl -fsSL "$ASTERISK_VERSIONS_URL") + +LTS_VERSION="" +for major in 20 22 24 26; do + block=$(echo "$html" | awk "/Asterisk $major - LTS/,/