Repository navigation
asterisk #4468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
asterisk #4468
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7cbbfbb
'Add new script'
push-app-to-main[bot] de3b56a
Update asterisk.json
MickLesk fb12138
Update asterisk.json
michelroegl-brunner da38829
Update asterisk-install.sh
michelroegl-brunner 3b11450
Update asterisk.sh
michelroegl-brunner 1bf3473
Update asterisk-install.sh
michelroegl-brunner 7c3f766
Update asterisk-install.sh
michelroegl-brunner 5ca0863
Update asterisk.sh
michelroegl-brunner 27394da
noob STD service call
MickLesk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/usr/bin/env bash | ||
| source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) | ||
| # 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/ | ||
|
|
||
| APP="Asterisk" | ||
| var_tags="${var_tags:-telephone;pbx}" | ||
| var_cpu="${var_cpu:-2}" | ||
| var_ram="${var_ram:-2048}" | ||
| var_disk="${var_disk:-4}" | ||
| var_os="${var_os:-debian}" | ||
| var_version="${var_version:-12}" | ||
| var_unprivileged="${var_unprivileged:-1}" | ||
|
|
||
| header_info "$APP" | ||
| variables | ||
| color | ||
| catch_errors | ||
|
|
||
| function update_script() { | ||
| header_info | ||
| check_container_storage | ||
| check_container_resources | ||
| msg_error "No Update function provided for ${APP} LXC" | ||
| exit | ||
| } | ||
|
|
||
| start | ||
| build_container | ||
| description | ||
|
|
||
| msg_ok "Completed Successfully!\n" | ||
| echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ___ __ _ __ | ||
| / | _____/ /____ _____(_)____/ /__ | ||
| / /| | / ___/ __/ _ \/ ___/ / ___/ //_/ | ||
| / ___ |(__ ) /_/ __/ / / (__ ) ,< | ||
| /_/ |_/____/\__/\___/_/ /_/____/_/|_| | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "name": "Asterisk", | ||
| "slug": "asterisk", | ||
| "categories": [0], | ||
| "date_created": "2025-05-14", | ||
| "type": "ct", | ||
| "updateable": false, | ||
| "privileged": false, | ||
| "interface_port": null, | ||
| "documentation": "https://docs.asterisk.org/", | ||
| "config_path": "/etc/asterisk", | ||
| "website": "https://asterisk.org/", | ||
| "logo": "https://docs.asterisk.org/favicon.ico", | ||
| "description": "Asterisk is an open-source framework for building communications applications, most commonly used as a phone system (PBX). Developed by Digium (now part of Sangoma), it turns a standard computer into a powerful telephony server.", | ||
| "install_methods": [ | ||
| { | ||
| "type": "default", | ||
| "script": "ct/asterisk.sh", | ||
| "resources": { | ||
| "cpu": 2, | ||
| "ram": 2048, | ||
| "hdd": 4, | ||
| "os": "Debian", | ||
| "version": "12" | ||
| } | ||
| } | ||
| ], | ||
| "default_credentials": { | ||
| "username": null, | ||
| "password": null | ||
| }, | ||
| "notes": [] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| #!/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 | ||
|
|
||
| msg_info "Installing Dependencies" | ||
| $STD apt-get install -y \ | ||
| libsrtp2-dev \ | ||
| build-essential \ | ||
| libedit-dev \ | ||
| uuid-dev \ | ||
| libjansson-dev \ | ||
| libxml2-dev \ | ||
| libsqlite3-dev | ||
| msg_ok "Installed Dependencies" | ||
|
|
||
| msg_info "Downloading Asterisk" | ||
| RELEASE=$(curl -fsSL https://downloads.asterisk.org/pub/telephony/asterisk/ | grep -o 'asterisk-[0-9]\+-current\.tar\.gz' | sort -V | tail -n1) | ||
| temp_file=$(mktemp) | ||
| curl -fsSL "https://downloads.asterisk.org/pub/telephony/asterisk/${RELEASE}" -o "$temp_file" | ||
| mkdir -p /opt/asterisk | ||
| tar zxf "$temp_file" --strip-components=1 -C /opt/asterisk | ||
| cd /opt/asterisk | ||
| msg_ok "Downloaded Asterisk" | ||
|
|
||
| msg_info "Installing Asterisk" | ||
| $STD ./contrib/scripts/install_prereq install | ||
| $STD ./configure | ||
| $STD make -j$(nproc) | ||
| $STD make install | ||
| $STD make config | ||
| $STD make install-logrotate | ||
| $STD make samples | ||
| mkdir -p /etc/radiusclient-ng/ | ||
| ln /etc/radcli/radiusclient.conf /etc/radiusclient-ng/radiusclient.conf | ||
| systemctl enable -q --now asterisk | ||
| msg_ok "Installed Asterisk" | ||
|
|
||
| motd_ssh | ||
| customize | ||
|
|
||
| msg_info "Cleaning up" | ||
| rm -f "$temp_file" | ||
| $STD apt-get -y autoremove | ||
| $STD apt-get -y autoclean | ||
| msg_ok "Cleaned" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.