Friday, December 12, 2008

Compiling Asterisk on Ubuntu server

I wanted to test something on Asterisk for a project and need it a new clean install.
Instead of setting up another machine i decided to use the power of my desktop machine ( an intel quad core with 8GBram) and go for a VM.
I decided to use QEMU for the VM as i am using it for embedded development for sometime now and it has proven a very reliable tool (plus its free :)
I created an Ubuntu server on the VM, but then i realized that the asterisk packages shipping with Ubuntu server were rather old.
So i downloaded asterisk, asterisk-addons, libpri and zaptel and started the building process.
For those of you who decide to go the same way, following are the packages you need to get asterisk with realtime (aka mysql support) to build.

sudo apt-get install build-essential speex libspeex-dev gsm-utils \
libgsm1-dev libgsmme-dev libgsm1 libgsm-tools \
libncurses5-dev ncurses-term libncurses5-dbg libsqlxx-dev doxygen

You will also need to install the linux kernel headers
so do a 'uname -r" and then

sudo apt-get install linux-headers-your-kernel-version-here

Once all these get install, follow the standard procedure to build libpri,zaptel,asterisk and asterisk-addons

No comments: