- apt-get update
- apt-get -y upgrade
- apt-get -y install build-essential libncurses5-dev libcurl3-dev libvorbis-dev libspeex-dev unixodbc unixodbc-dev libiksemel-dev linux-headers-`uname -r`
- cd /usr/src download asterisk and zaptel wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.26.1.tar.gz wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz
- tar xvzf asterisk-1.4-current.tar.gz && tar xvzf zaptel-1.4-current.tar.gz
- We build the Zaptel drivers first. ./configure && make && make install
- Asterisk MeetMe conferences require a timing source. In the absence of a hardware timing source, we use the software timing source contained in the
ztdummy
kernel module. Load the module with modprobe ztdummy - /usr/src/asterisk-1.4.2 and build it with ./configure && make && make install
- Asterisk is now installed, but we're not finished yet. Essential configuration files in
/etc/asterisk
do not yet exist. Rather than start from scratch, we install a set of sample configuration files with make samples - asterisk -V
- To make sure that Asterisk starts automatically at boot time and shuts down cleanly during shutdown or reboot, we need init scripts. Install them from the
/usr/src/asterisk-1.4.2
directory with make config - The
ztdummy
kernel module must also start at boot time; add it to/etc/modules
with echo "ztdummy" >> /etc/modules - 安装完成,现在开始正式配置 Hello world.
参考文档
http://www.the-asterisk-book.com/unstable/installation-1.4-debian-4.0.html