(Unofficial) FreePBX on Pi

You’ll need to compile from source for the Raspberry Pi:

  # Install MariaDB ODBC Connector
  cd /usr/src
  git clone https://github.com/MariaDB/mariadb-connector-odbc.git
  cd mariadb-connector-odbc
  git checkout tags/3.1.1-ga
  mkdir build
  cd build
  cmake ../ -LH -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_SSL=OPENSSL\
 -DDM_DIR=/usr/lib/arm-linux-gnueabihf -DCMAKE_C_FLAGS_RELEASE:STRING="-w"
  cmake --build . --config Release
  make install

  # Configure ODBC
  cat <<EOF > /etc/odbcinst.ini
[MySQL]
Description = ODBC for MySQL (MariaDB)
Driver = /usr/local/lib/libmaodbc.so
FileUsage = 1
EOF

  cat <<EOF > /etc/odbc.ini
[MySQL-asteriskcdrdb]
Description = MySQL connection to 'asteriskcdrdb' database
Driver = MySQL
Server = localhost
Database = asteriskcdrdb
Port = 3306
Socket = /var/run/mysqld/mysqld.sock
Option = 3
EOF

CDR/CEL/UCP all work.

In fact, everything works on both Stretch and Buster, FreePBX 14 and 15, using:

https://www.dslreports.com/forum/r30661088-PBX-FreePBX-for-the-Raspberry-Pi