#!/usr/bin/env bash # Copyright (c) 2021-2025 community-scripts ORG # Author: michelroegl-brunner # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://asterisk.org source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors 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/,/