系統環境介紹:
// 準備事項
// 使用 uname -r 檢查目前的 Linux 核心版本,安裝合適的 linux-headers。
apt-get install linux-headers-2.6.26-2-686 apt-get install libncurses5-dev bison libssl-dev libnewt-dev zlib1g-dev procps gcc make binutils doxygen apt-get install apache2 mysql-server php5-mysql php5-gd
// 下載原始檔
cd /usr/src wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.2.40.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-addons-1.2.9.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-sounds-1.2.1.tar.gz wget http://downloads.asterisk.org/pub/telephony/zaptel/zaptel-1.2.27.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.2.8.tar.gz
// 編譯安裝 libpri
cd /usr/src tar xzf libpri-1.2.8.tar.gz cd libpri-1.2.8 make make install
//