Install Asterisk 15 - Debian (basic-pbx)

without DAHDI

 apt-get install wget subversion xmlstarlet
 wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-15-current.tar.gz
 tar zxvf asterisk-15-current.tar.gz
 cd asterisk*
 contrib/scripts/get_mp3_source.sh
 contrib/scripts/install_prereq install
 ./configure --with-pjproject-bundled --with-crypto --with-ssl=ssl --with-srtp
 make menuselect

 
 make
 make install
 make config
 make basic-pbx
 ldconfig
 adduser --system --group --home /var/lib/asterisk --no-create-home --gecos "Asterisk PBX" asterisk
 usermod -a -G dialout,audio asterisk
chown -R asterisk:asterisk /var/lib/asterisk &&
chown -R asterisk:asterisk /var/log/asterisk &&
chown -R asterisk:asterisk /var/run/asterisk &&
chown -R asterisk:asterisk /var/spool/asterisk &&
chown -R asterisk:asterisk /usr/lib/asterisk &&
chown -R asterisk:asterisk /etc/asterisk &&
chmod -R u=rwX,g=rX,o= /var/lib/asterisk &&
chmod -R u=rwX,g=rX,o= /var/log/asterisk &&
chmod -R u=rwX,g=rX,o= /var/run/asterisk &&
chmod -R u=rwX,g=rX,o= /var/spool/asterisk &&
chmod -R u=rwX,g=rX,o= /usr/lib/asterisk &&
chmod -R u=rwX,g=rX,o= /etc/asterisk

/etc/default/asterisk

 AST_USER="asterisk"
 AST_GROUP="dialout" 
 /etc/init.d/asterisk start
 asterisk -vvvr
Asterisk 15.2.0, Copyright (C) 1999 - 2016, Digium, Inc. and others.
=========================================================================
Connected to Asterisk 15.2.0 currently running on fs (pid = 58393)
fs*CLI>

Advanced

Mysql odbc connector for Debian 8/9
 https://dev.mysql.com/get/Downloads/Connector-ODBC/5.3/mysql-connector-odbc-5.3.10-linux-debian8-x86-64bit.tar.gz
 https://cdn.mysql.com//Downloads/Connector-ODBC/5.3/mysql-connector-odbc-5.3.9-linux-debian9-x86-64bit.tar.gz
  • asterisk_install/asterisk-15_debian_8.txt
  • Последние изменения: 2018/04/03