Asterisk/freepbx на OrangePI PC
Published on 30.06.2020
В момент установки делались записи, но разбирать их полноценно пока лень. На будущее. Но в целом — понятно.
apt install asterisk asterisk-config nano htop
apt-get install -y build-essential openssh-server apache2 mariadb-server mariadb-client bison flex php php-curl php-cli php-mysql php-pear php-gd curl sox libncurses5-dev libssl-dev mpg123 libxml2-dev libnewt-dev sqlite3 libsqlite3-dev pkg-config automake libtool autoconf git unixodbc-dev uuid uuid-dev libasound2-dev libogg-dev libvorbis-dev libicu-dev libcurl4-openssl-dev libical-dev libneon27-dev libspandsp-dev sudo subversion libtool-bin python-dev
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash —
sudo apt-get install -y nodejs
reboot
pear install Console_Getopt
useradd -m asterisk
chown asterisk. /var/run/asterisk
chown -R asterisk. /etc/asterisk
chown -R asterisk. /var/{lib,log,spool}/asterisk
chown -R asterisk. /usr/lib/asterisk
rm -rf /var/www/html
sed -i ‘s/(^upload_max_filesize = )./\120M/’ /etc/php5/apache2/php.ini cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf_orig sed -i ‘s/^(User|Group)./\1 asterisk/’ /etc/apache2/apache2.conf
sed -i ‘s/AllowOverride None/AllowOverride All/’ /etc/apache2/apache2.conf
service apache2 restart
cd /usr/src
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-14.0-latest.tgz
tar vxfz freepbx-14.0-latest.tgz
rm -f freepbx-14.0-latest.tgz
cd freepbx
touch /etc/asterisk/{modules,ari,statsd}.conf
./start_asterisk start
./install -n
a2enmod rewrite
service apache2 restart
fwconsole chown
Posted in: