Edited by blunted at Sep 17, 2016 23:39 |
I needed a cheap asterisk box for a project, and had two Bpis sitting around.
There wasnt an freely accessible image with Asterisk/FreePBX for banana pi available . So I built this one.
FreePBX version is currently 184.108.40.206
User / Password
root / fr33pbx
hostname is 'freepbx'
Image download link:
https://mega.nz/#!o10niZAQ!D9zP1 ... G-_eIo4I0KUqE9xtdVE
(796 MB compressed (7zip) , 7.8gig uncompressed IMG file.)
Created with win32discimager, should be able to be written with this or with dd on linux/mac
Just needs the freepbx install to be run which is very simple.
logged in as root:
wget http://mirror.freepbx.org/module ... pbx-13.0-latest.tgz
tar vxfz freepbx-13.0-latest.tgz
rm -f freepbx-13.0-latest.tgz
meetme conference module needs to be manually started
module load app_meetme.so
then install freepbx
The reason I have included these manual steps, rather than providing the FreePBX GUI already installed is the install process for FreePBX sets up and secures MySQL for asterisk with unique password etc. If I just supplied a complete image this would be a security problem...
The freepbx admin page (ip address/admin) does NOT work after installing FreePBX so you then need to do the following:
service apache2 restart
This will fix the problem but cause a "tampered" error in the FreePBX framework module.
To fix the signature issue and redownload the files:
fwconsole ma refreshsignatures
then <IPADDRESS>/admin will get you to the admin page
Is setup for dhcp , scan or check your router logs for ip address.
This last part is because of a current bug with FreePBX / Apache - see:
You will need setup starting asterisk via rc.local etc (sorry I forgot to do this part before I made the image!)
will manually start
This may work with other Bpi models too , don't know I can't test (I only have a couple of M1's here). Latest Bananian dist so in theory it will , but ymmv.
XMPP module in freepbx does not work (needs custom Prosody server centos rpm, cant find source for this) but the asterisk module does work so if you need this functionality (like I did) it will mean using the hairy chested asterisk via CLI method (manual configs).
Source etc has been included in image /usr/src for stuff not installed via aptitude etc. This can be deleted if not required.
Some dependancies may need to be installed in bananian for certain freepbx modules to work.
Free free to redistribute this image or host it elsewhere.
I suggest using fail2ban etc and setup a firewall (again that particular freepbx module requires custom rpm). I've left this to peoples personal preferences.
This was done roughly based on the debian 8.1 install instructions at the freepbx wiki. There are more than few issues with following this generic guide on bananian. So I've done all the work for you
It's running great for my purposes, which is a basic IVR with text to speech and some interactive features.
I've built an interactive survey box using much the same setup for a customer recently.
If any of this has been useful, and you'd like to donate a little something for the effort gone into getting this working, and distributing this image . then there are details below.
This is entirely optional , I don't think its right to put GPL stuff behind a paywall.
Remember - people who tip are sexy