Install the dependencies:
apt update && apt install sudo wget gnupg gnupg2 dphys-swapfile -y
wget -O- https://repo.3cx.com/key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/3cx-archive-keyring.gpg >> /dev/null
echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm main" | tee /etc/apt/sources.list.d/3cxpbx.list
Add beta mirror source (can be skipped)
echo "deb [arch=amd64 by-hash=yes signed-by=/usr/share/keyrings/3cx-archive-keyring.gpg] http://repo.3cx.com/3cx bookworm-testing main" | tee /etc/apt/sources.list.d/3cxpbx.list
sudo apt update -y && sudo apt-get upgrade -y --with-new-pkgs && sudo apt dist-upgrade -y && sudo apt autoremove -y
sudo apt install 3cxpbx -y
Check available version to install
sudo apt-cache policy 3cxpbx
sudo apt-get install 3cxpbx=xx.x.xxxx
Clean if there existing install
sudo /usr/sbin/3CXWizard --cleanup
sudo apt install 3cxsbc -y
wget -O /tmp/post-install http://downloads-global.3cx.com/downloads/debian12iso/post-install_12.1.0_46a7ea2.txt; chmod +x /tmp/post-install; bash /tmp/post-install
bash /usr/local/bin/post-install