This page outlines the process to install asterisk under zentyal (a ubuntu derivative).
1) Install the dependencies. sudo apt-get install -y ncurses-dev libxml2-dev libiksemel-dev libopenh323-dev libical-dev libsrtp0-dev libcurl4-openssl-dev libgmime-2.6-dev libmysqlclient-dev libsnmp-dev libnewt-dev libspeex-dev libspeexdsp-dev libvorbis-dev libspandsp-dev subversion
GOTCHA! Do NOT install libneon27-dev to enable CalDav (google calendar) integration. The reason is that SSLV2 has been disabled in this package, and so the feature will be broken. It'll generate log messages like:
[Jan 8 13:10:00] WARNING[17709] loader.c: Error loading module 'res_calendar_exchange.so': /usr/lib/libneon.so.27: undefined symbol: SSLv2_server_method
[Jan 8 13:10:00] WARNING[17709] loader.c: Module 'res_calendar_exchange.so' could not be loaded.
But don't panic! There's a simple solution!
sudo apt-get install libneon27-gnutls-dev
2) Install dahdi wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
tar zxvf dahdi-linux-complete-current.tar.gz
cd [the extracted directory]
make all
sudo make install
sudo make config
3) Install asterisk wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
tar zxvf asterisk-11.current.tar.gz
cd [the extracted directory]
./configure
make menuconfig
contrib/scripts/get_mp3_source.sh
make
sudo make install
And see the following regarding the CDR MySQL schema: https://wiki.asterisk.org/wiki/display/AST/MySQL+CDR+Backend |