標題:
Asterisk installation
[打印本頁]
作者:
ckleea
時間:
2010-8-20 10:55
標題:
Asterisk installation
Apart from YUM install, one can compile asterisk and make your own asterisk
Below is some generic scripts that
#!/bin/sh
ASTERISK_BRANCH="1.6.2"
LIBPRI_BRANCH="1.4"
ASTERISK_GUI_BRANCH="2.0"
ASTERISK_ADDONS_BRANCH="1.6.2"
DAHDI_LINUX_BRANCH="2.3"
DAHDI_TOOLS_BRANCH="2.3"
mkdir -p /usr/src/$ASTERISK_BRANCH
cd /usr/src/$ASTERISK_BRANCH
clear
echo
echo "Get Sources"
echo
svn co http://svn.digium.com/svn/asterisk/branches/$ASTERISK_BRANCH asterisk
svn co http://svn.digium.com/svn/libpri/branches/$LIBPRI_BRANCH libpri
svn co http://svn.digium.com/svn/asterisk-gui/branches/$ASTERISK_GUI_BRANCH gui
svn co http://svn.digium.com/svn/asterisk-addons/branches/$ASTERISK_ADDONS_BRANCH
addons
svn co http://svn.digium.com/svn/dahdi/linux/branches/$DAHDI_LINUX_BRANCH
dahdi-linux
svn co http://svn.digium.com/svn/dahdi/tools/branches/$DAHDI_TOOLS_BRANCH
dahdi-tools
echo
echo "Compile & Install Dahdi Linux"
echo
cd dahdi-linux
make && make install
echo
echo "Compile & Install Dahdi Tools"
echo
cd ../dahdi-tools
./configure && make && make install && make config
echo
echo "Compile & Install Libpri"
echo
cd ../libpri
make && make install
echo
echo "Compile & Install Asterisk"
echo
cd ../asterisk
./configure
echo
echo "Enable ulaw sounds"
echo
make menuselect.makeopts
menuselect/menuselect --disable CORE-SOUNDS-EN-GSM menuselect.makeopts
menuselect/menuselect --enable CORE-SOUNDS-EN-ULAW menuselect.makeopts
menuselect/menuselect --disable MOH-OPSOUND-WAV menuselect.makeopts
menuselect/menuselect --enable MOH-OPSOUND-ULAW menuselect.makeopts
make && make install && make samples && make install-logrotate
echo
echo "Compile & Install Asterisk Addons"
echo
cd ../addons
./configure && make && make install && make samples
echo
echo "Compile & Install Asterisk Gui"
echo
cd ../gui && ./configure
make && make install
複製代碼
Another site to look at the installation is
http://www.voip-info.org/wiki/vi ... +1.4.x+installation
http://www.voip-info.org/wiki/vi ... +1.6.x+installation
歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/)
Powered by Discuz! 7.2