Affects Version/s: 16
Fix Version/s: None
Distro Version:Debian 11, FreePBX 16
Distro:Self Install Debian
I don't use FreePBX personally (I use "vanilla" Asterisk), but I am trying to support some users that prefer the FreePBX graphical interface.
Asterisk is always compiled directly from source, and there are some additional modules and features that are added beyond what exists in Asterisk upstream at the moment (additionally, FreePBX lags behind Asterisk releases and the absolute latest version of Asterisk is required). As such, I have looked into the "self install" FreePBX method - installing FreePBX after installing Asterisk. I used this guide as a reference to do so here: https://www.atlantic.net/vps-hosting/how-to-install-asterisk-and-freepbx-on-ubuntu-20-04/
I went ahead and did a test run on a development server (Debian 11 with Asterisk 18.9) and Asterisk had until that point always been installed and run as root. As such, the first time, the install FreePBX script failed as it expects Asterisk to run as root. I then re-ran the install for Asterisk to install as the asterisk user, and this time it passed that check but for some reason, couldn't deduce the version, even though Asterisk was running at the time.
Here's what I mean:
Assuming you are Database Root
Checking if SELinux is enabled...Its not (good)!
Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Error!
Could not determine Asterisk version (got: Asterisk ending (0).). Please report this.
root@pbxdev:/usr/src# asterisk -rx "core show version"
Asterisk 18.9.0 built by root @ pbxdev on a x86_64 running Linux on 2022-02-03 11:40:31 UTC
Asterisk ending (0).
It says "Please report this", so here I am, reporting this! Looks like somehow it's cutting off the first line of output and just getting the ending line?
Also "Its" should be spelled "It's" on the SELinux line.
Let me know if you need anything else.