Vanilla Asterisk on Raspberry Pi

I had a temporary need for a really simple SIP PBX, running on a Raspberry Pi 2.

I tried RasPBX and IncrediblePPX. Both are excellent, but they bundle a lot of functionality that I do not need. I wanted to use a 'stock' version of Asterisk from the repositories.

I started with a fresh install of Raspbian Wheezy:

sudo raspi-config
sudo apt-get update  && sudo apt-get dist-upgrade 
sudo apt-get install asterisk
sudo reboot

It installed Asterisk v1.8:

Asterisk 1.8.13.1~dfsg1-3+deb7u3, Copyright (C) 1999 - 2012 Digium, Inc. and others.

I then followed this tutorial, but remembering to use:

  • sudo, where necessary (e.g. to copy and edit the config files); and
  • service asterisk restart (rather than init.d).

Once I'd created my config files, I also needed to run:

sudo chown -R asterisk:asterisk /etc/asterisk/*

All working well. NAT traversal is still as painful as I remember!