Rasterisk Pi

14. October 2012 20:56 by Ron in   //  Tags:   //   Comments

Business wise I use Asterisk a lot and not only for my own use but also for customer implementations.

As you could have read I also bought a Raspberry PI and if you own something like that you have to make some use of it as well.

I decided to combine the two and install Asterisk on the Raspberry PI, it cannot be that hard.

What I wanted to do:

  • Use a default image from the Raspberrypi.org website, why re-invent the wheel
  • Remove de Graphical environment, we do not need that crap
  • Install Asterisk 1.8.x

I downloaded the latest image that the RBP crew recommends from the website. Debian Wheezy it is.

To get everything done I won’t bug you with all the nasty details about the errors I got :-).

Here is the shortlist of the commands I used in the end to get everything done.

Update the system and remove the graphical stuff:

pi@raspberrypi ~ $ sudo apt-get update
pi@raspberrypi ~ $ sudo apt-get remove xserver-common x11-common

Automatically remove all dependencies:

pi@raspberrypi ~ $ sudo apt-get autoremove

That removes about 900Mb of crap nobody needs if you know how Linux really works.

Now we can really start with the fun stuff, install the needed compilers and dependencies, it is a long list of stuff we need:


pi@raspberrypi ~ $ sudo apt-get -y install make gcc g++ libxml2 libxml2-dev ssh libncurses5 libncursesw5 libncurses5-dev libncursesw5-dev linux-libc-dev sqlite libnewt-dev libusb-dev zlib1g-dev libmysqlclient15-dev libsqlite0 libsqlite0-dev bison openssl libssl-dev libeditline0 libeditline-dev libedit-dev mc sox libedit2 libedit-dev curl libcurl4-gnutls-dev apache2 libapache2-mod-php5 php-pear openssh-server build-essential openssh-client zlib1g zlib1g-dev libtiff4 libtiff4-dev libnet-telnet-perl mime-construct libipc-signal-perl libmime-types-perl libproc-waitstat-perl mpg123 libiksemel-dev

Now all we have to do is download the source files:


pi@raspberrypi ~ $ cd /usr/src
pi@raspberrypi ~ $ sudo wget http://……/asterisk-
pi@raspberrypi ~ $ sudo tar -xvzf asterisk-

To get everything installed we need to compile the sources off course:


pi@raspberrypi ~ $ sudo ./configure
pi@raspberrypi ~ $ sudo make
pi@raspberrypi ~ $ sudo make install
pi@raspberrypi ~ $ sudo make config
pi@raspberrypi ~ $ sudo make samples   

Now all you have to do is change the configfiles as needed in the /etc/asterisk/ directory.

Testing it showed me that 25 extensions is working perfectly on one Raspberry-Pi so the Raspberry-Pi is powerfull enough for a small SOHO environment.

blog comments powered by Disqus