Install Asterisk 1.8 on Debian 7

    內容表格
    1. 1. 系統環境
    2. 2. 開始安裝

    版本為 15:35, 20 Nov 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    系統環境

    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
    
    Powered by MindTouch Core