SIP-Server for Banana Pi

Run miniSIPServer on Banana Pi

http://myvoipapp.com

Index

1. Description

Banana Pi is a credit-card-sized single-board computer whose CPU is ARM. It is very suitable for micro-server deployment scenarios. miniSIPServer V14 (or abover) can support this device.

In this document, we will not discuss how to install and configure Raspberry Pi itself. Please refer to its official “quick start” document for more details. We are focus on how to install and run miniSIPServer on Raspberry Pi.

2. Hardwares

There are lots of hardwares can be used to build Raspberry Pi system. We use following hardwares. You can refer to it according to your own requirements:

(1) Banana Pi

(2) Kingston Secure Digital Class 10 Value card(SD10V/8GB).

3. Install

First, please make sure that both your Banana Pi and network are ok now.

3.1 Install libraries

miniSIPServer need some libraries. We can get and install them from Raspberry Pi official software library by using following “apt-get” command:

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install gcc 
sudo apt-get install g++ 
sudo apt-get install libqt4-dev 
sudo apt-get install libqtcore4 
sudo apt-get install libqtgui4 
sudo apt-get install libqt4-network 
sudo apt-get install libqt4-xml 
sudo apt-get install libssl-dev 
sudo apt-get install libmysqlclient18 
sudo apt-get install libmysqlclient-dev 
sudo apt-get install python-dev 
sudo apt-get install libsrtp0-dev

3.2 Download miniSIPServer

Please visit our website to download miniSIPServer. Please pay attention that you MUST download miniSIPServer for Raspberry Pi.

It is assumed to install “20 clients” version whose file name is “mss_pi_u20.deb”.

3.3 Install miniSIPServer

In “mss_v26_pi_u20.deb” directory, please run following command to install miniSIPServer:

sudo dpkg --install mss_v26_pi_u20.deb

If success, you can find all miniSIPServer’s files at directory “/opt/sipserver/”.

If you start LXDE desktop, you will find miniSIPServer linker at “Internet” category. Please click that linker to run miniSIPServer with graphic interface. Please refer to following figure. You can see it is almost same with miniSIPServer for Windows and Debian/Ubuntu.

4. Run

As you know, if you start LXDE desktop, you only need click miniSIPServer linker to start and configure it.

If LXDE desktop is not started, we need run miniSIPServer command line version. Please use following command.

    /opt/sipserver/msscli&

miniSIPServer command line version will open TCP 8080 port to start Web management system (no password by default), so you can use IE/FireFox/Chrome to visit and configure miniSIPServer.

5. Autostart

  • Using remote desktop login as root
  • Open and edit the rc.local locate in  /etc
  • Add /opt/sipserver/msscli&

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/opt/sipserver/msscli&
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

exit 0
  • Now reboot the Banana Pi and sip-server will start with every boot

6. Uninstall

How to uninstall miniSIPServer?

Linux system (including Pi)

You just need to run following command in your teminal window:

sudo apt-get remove minisipserver   

It is same with windows system that your own configuration files will not be deleted automatically by default. In linux system, miniSIPServer is installed at “/opt/sipserver” directory by default, and you can find “config” sub-directory there too. You can decide to delete or keep it by yourself.

Photos