For an initial installation of the sip:provider CE, it is mandatory that your production environment meets the following criteria:
Hardware Requirements
Supported Operating Systems
Internet Connection
Only Debian Squeeze (6.0) 64-bit is currently supported as a host system for the sip:provider CE. |
It is HIGHLY recommended that you use a dedicated server (either a physical or a virtual one) for sip:provider CE, because the installation process will wipe out existing MySQL databases and modify several system configurations. |
You need to install Debian Squeeze (6.0) 64-bit on the server. A basic installation without any additional task selection (like Desktop System, Web Server etc.) is sufficient.
Sipwise recommends using the Netinstall ISO (md5sum) as installation medium. |
If you use other kinds of installation media (e.g. provided by your hosting provider), prepare for some issues that might come up during installation. For example, you might be forced to manually resolve package dependencies in order to install the sip:provider CE. Therefore, it is HIGHLY RECOMMENDED to use a clean Debian installation to simplify the installation process. |
If you plan to install the sip:provider CE on Virtual Hosting Providers like Dreamhost with their provided Debian installer, you might need to manually prepare the system for the NGCP installation, otherwise the installer will fail installing certain package versions required to function properly.
Using Dreamhost Virtual Private Server
A Dreamhost virtual server uses apt-pinning and installs specific versions of MySQL and apache, so you need to clean this up beforehand.
apt-get remove --purge mysql-common ndn-apache22 mv /etc/apt/preferences /etc/apt/preferences.bak apt-get update apt-get dist-upgrade
Be aware that this step will break your web-based system administration provided by Dreamhost. Only do it if you are certain that you won’t need it. |
The sip:provider CE is based on the Sipwise NGCP, so download and install the Sipwise NGCP installer package:
PKG=ngcp-installer-latest.deb wget http://deb.sipwise.com/spce/${PKG} dpkg -i ${PKG}
Run the installer as root user:
ngcp-installer
The installer will ask you to confirm that you want to start the installation. Read the given information carefully, and if you agree, proceed with y.
The installation process will take several minutes, depending on your network connection and server performance. If everything goes well, the installer will (depending on the language you use), show something like this:
Installation finished. Thanks for choosing NGCP sip:provider Community Edition.
During the installation, you can watch the background processing by executing the following command on a separate console:
tail -f /tmp/ngcp-installer.log
For quick test deployments, pre-installed virtualization images are provided. These images are intended to be used for quick test, not recommended for production use.
You can download a VirtualBox image from here (checksums: sha1, md5). Once you have downloaded the file you can import it to VirtualBox via its import utility.
The format of the image is ova. If you have VirtualBox 3.x running, which is not compatible with ova format, you need to extract the file with any tar compatible software and import the ovf file which is inside the archive.
On Linux, you can do it like this:
tar xvf sip_provider_CE_2.4.1_virtualbox.ova
On Windows, right-click on the ova file, choose Open with and select WinZIP or WinRAR or any other application able to extract tar archives. Extract the files to any place and import the resulting ovf file in VirtualBox.
Considerations when using this virtual machine:
You can download a VMware image from here (checksums: sha1, md5). Once you have downloaded the file just extract the zip file and copy its content to your virtual machines folder.
Considerations when using this virtual machine:
After the installation went through successfully, you are ready to adapt the system parameters to your needs to make the system work properly.
The only parameter you need to change at this moment is the listening address for your SIP services. To do this, modify the parameter networking→eaddress in /etc/ngcp-config/config.yml, which by default is set to 127.0.0.1:
vim /etc/ngcp-config/config.yml
Look for the following section on top of the file:
networking: eaddress: 127.0.0.1 [...]
Change this parameter to the IP address configured during install time of the Debian operating system. If you haven’t fully configured your network interfaces, do this by adapting also the file /etc/network/interfaces:
vim /etc/network/interfaces
Add or adapt your interface configuration accordingly. For example, if you just want to use the system in your internal network 192.168.0.0/24, it could look something like this:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 1.2.3.4 netmask 255.255.255.0 gateway 1.2.3.1 dns-nameservers 8.8.8.8 dns-search yourdomain.com
/etc/init.d/networking restart
It is HIGHLY recommended that you use a public IP for the system. If you use a private IP, all your subscribers and gateways must be in the same private network. The sip:provider CE handles gateways and subscribers behind NAT, but the sip:provider CE itself cannot be behind NAT. |
In order to apply the changes you made to /etc/ngcp-config/config.yml, you need to execute the following command to re-generate your configuration files and to automatically restart the services:
ngcpcfg apply
At this point, your system is ready to serve. |
During installation, the system user cdrexport is created. This jailed system account is supposed to be used to export CDR files via sftp/scp. Set a password for this user by executing the following command:
passwd cdrexport
The installer has set up a MySQL database on your server. You need to set a password for the MySQL root user to protect it from unauthorized access by executing this command:
mysqladmin password <your mysql root password>
For the Administrative Web Panel located at https://<your-server-ip>:1443/, a default user administrator with password administrator has been created. Connect to the panel (accept the SSL certificate for now) using this credentials and change the password of this user by going to System Administration→Administrators and clicking edit.
The NGCP installer will install mailx (which has Exim4 as MTA as a default dependency) on the system, however the MTA is not configured by the installer. If you want to use the Voicemail-to-Email feature of the Voicebox, you need to configure your MTA properly. If you are fine to use the default MTA Exim4, execute the following command:
dpkg-reconfigure exim4-config
Depending on your mail setup in your environment (whether to use a smarthost or not), configure Exim accordingly. In the most simple setup, apply the following options when prompted for it:
internet site; mail is sent and received directly using SMTP
ce.yourdomain.com
127.0.0.1
ce.yourdomain.com
No
mbox format in /var/mail/
No
You are free to install and configure any other MTA (e.g. postfix) on the system, if you are more comfortable with that. |
To test and use your installation, you need to follow these steps now:
Please read the next chapter for instructions on how to do this.
The system upgrade from sip:provider CE v2.2 to v2.4 will perform a couple of fundamental tasks:
For upgrading the sip:provider CE from v2.2 to the latest v2.4 release, execute the following commands:
apt-get update apt-get install ngcp-upgrade-2.4-ce
Run the upgrade script as root like this:
ngcp-upgrade
The upgrade script will ask you to confirm that you want to start. Read the given information carefully, and if you agree, proceed with y.
The upgrade process will take several minutes, depending on your network connection and server performance. If everything goes well, it will finally ask you to reboot your system. Confirm to let the system reboot (it will boot with an updated kernel).
Once up again, double-check your config file /etc/ngcp-config/config.yml (sections will be rearranged now and will contain more parameters) and your domain/subscriber/peer configuration and test the setup. You can find a backup of some important configuration files of your existing 2.2 installation under /var/backup/ngcp-2.4/ in case you need to roll back something at any time.