APRS.fi Call Sign Lookup
When I needed to install Asterisk on the RPi2 I searched google and found this “how to”:
Never wanting to reinvent the wheel and noting that this install provides many useful options, I followed the recipe there. For my archive I have copied the instruction set below.
The configurations that bridge this PBX with my AllStar Link system will follow in the next post.
Ron – KA7U
March 3, 2016
To install Asterisk on a Rapsberry Pi with a Debian based system.
apt-get -y install libv4l-dev ffmpeg libx264-130
cd /usr/src wget http://www.libsdl.org/release/SDL2-2.0.4.tar.gz tar xvf SDL2-2.0.4.tar.gz rm -f SDL2-2.0.4.tar.gz cd SDL2-2.0.4 ./configure make make install
cd /usr/src wget http://www.pjsip.org/release/2.4.5/pjproject-2.4.5.tar.bz2 tar xvf pjproject-2.4.5.tar.bz2 rm -f pjproject-2.4.5.tar.bz2 cd pjproject-2.4.5 ./configure --enable-shared make dep make make install
cd /usr/src/ wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz tar xvf jansson-2.7.tar.gz rm -f jansson-2.7.tar.gz cd jansson-2.7 ./configure make make install make check
apt-get -y install libtiff5-dev echo /usr/local/lib/ >> /etc/ld.so.conf
cd /usr/src wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6.tar.gz tar xvf spandsp-0.0.6.tar.gz rm -f spandsp-0.0.6.tar.gz cd spandsp-0.0.6 ./configure make make install ldconfig
apt-get -y install subversion libspeexdsp-dev libmyodbc unixodbc-dev libmysqlclient-dev libnewt-dev libncurses5-dev uuid-dev libxml2-dev libsqlite3-dev libssl-dev portaudio19-dev
cd /usr/src wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz tar xvf asterisk-13-current.tar.gz rm -f asterisk-13-current.tar.gz cd asterisk-13.7.0 ./configure ./contrib/scripts/get_mp3_source.sh make menuselect make make install make config make samples
apt-get -y autoclean apt-get -y autoremove
After a few attempts to configure a Raspberry PI 2 to be an AllStar Link node, I finally settled on using the ARCH version that is discussed here:
There is a group reflector that supports the users of this version of the AllStar Link system and it is found here:
KB4FXC and WA3DSP seem to be the active developers of this ARCH Linux AllStar Link system for the Raspberry PI 2. They have modified the app_rpt.so module to correct certain issues that seem common to other Raspberry PI and ARM processor implimentations of the software.
If you decided to install the AllStar Link software on a Raspberry PI 2 or BBB, and having successfully installed it, then if you are interested in some of my configurations read on.
The ARCH image is minimal as it is delivered. Everything you need for the service is there and then some, but if you want something else, well then it might be a problem because if you update the repositories you will bring in dependencies that are not compatible and will break the software. For example I wanted the terminal shell called “Screen”. If you use Screen you know why, if you don’t well then it might not matter, but the example of how I installed it will be useful to you for other things you might want to add. There are archived repositories available for ARCH and you can find the appropriate versions of software to match with the ARCH image you are using.
http://fraggod.net/static/mirror/packages/archlinuxarm/armv7h/ This link should take you to the program archives that contain useful programs for the RPi2_VER1.0_ALLSTAR.zip image, if that is the one you have installed. If not, you will need to ask on the reflector for the correct archive… Next you need to try to determine which program version will work with the dependencies already installed on your system. I guessed by checking version and date info on gcc.
[root@AllStar-KA7U ~]# gcc –version
gcc (GCC) 4.9.2 20141224 (prerelease)
Then a scan of the gcc versions available in the archive led me to believe the install package dated around Nov-Dec of 2014. Then scanning the Screen versions I found one that was created in that time frame and took a chance that it was good in the system. I found this one: screen-4.2.1-3-armv7h.pkg.tar.xz 12-Nov-2014 03:37 , and so it would be installed using:
pacman -U http://fraggod.net/static/mirror/packages/archlinuxarm/armv7h/screen-4.2.1-3-armv7h.pkg.tar.xz
and that worked just fine.
Once the AllStar Link system is installed and configured with the first boot and login, I wanted to configure a telephone system to work with it. The AllStar Link system is an Asterisk PBX and functions for that purpose, but newer versions of Asterisk (ver.13 at this time) offer better security and NAT traversal without port forwarding, as well as voice mail and all the other modern features of telephone systems, so I decided to setup another Raspberry Pi2 running Asterisk ver.13 and use a SIP bridge to connect them. This configuration is involved and will be covered in another post.
Ron – KA7U
March 3, 2016