Debian 7
Asterisk 1.8.32.3
相依性套件安裝
apt-get install build-essential linux-headers-`uname -r` ncurses-dev apt-get install bison festival festival-dev libssl-dev zlib1g-dev libnewt-dev apt-get install libvorbis-dev automake libmysqlclient-dev mysql-client apt-get install php5 php5-cli php5-common php5-dev apt-get install curl libgnutls26 libgnutls-dev libtiff5-dev libtiff-tools apt-get install libasound2-dev portaudio19-dev libportaudio2 jackd apt-get install unixodbc unixodbc-bin unixodbc-dev apt-get install libbluetooth-dev libxml2-dev apt-get install sox subversion libcurl4-gnutls-dev
安裝 Asterisk
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.32.3.tar.gz tar xzf asterisk-1.8.32.3.tar.gz cd asterisk-1.8.32.3/ ./configure make menuselect make make install make samples make config
設定 Asterisk
addgroup --system asterisk adduser --system --ingroup asterisk --home /var/lib/asterisk --no-create-home --shell /bin/bash asterisk vi /etc/default/asterisk
AST_USER="asterisk" AST_GROUP="asterisk"
chown -R asterisk:asterisk /etc/asterisk chown -R asterisk:asterisk /var/{run,log,spool,lib}/asterisk adduser asterisk audio