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 Wheezy (v7) 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 Wheezy (v7) 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 latest Netinstall ISO 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 latest 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
You can find the previous versions of Sipwise NGCP installer package here. |
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.
Vagrant is an open-source software for creating and configuring virtual development environments. Sipwise provides a so called Vagrant base box for your service, to easily get direct access to your own sip:provider CE Virtual Machine without any hassles.
The following software must be installed to use Vagrant boxes: |
Get your copy of sip:provider CE by running:
vagrant init spce-mr3.3.2 http://deb.sipwise.com/spce/images/sip_provider_CE_mr3.3.2_vagrant.box vagrant up
As soon as the machine is up and ready you should have your local copy of sip:provider CE with the following benefits:
Use the following command to access the terminal:
vagrant ssh
or login to Administrator web-interface at https://127.0.0.1:1443/login/admin (with default user administrator and password administrator).
There are two ways to access VM resources, through NAT or Bridge interface:
a.b.c.d is IP address of VM machine received from DHCP; x.y.z.p is IP address of your host machine |
Table 1. Vagrant based VirtualBox VM interfaces:
Description | Host-only address | LAN address | Notes |
---|---|---|---|
SSH | ssh://127.0.0.1:2222 | ssh://a.b.c.d:22 or ssh://x.y.z.p:2222 | Also available via "vagrant ssh" |
Administrator interface | https://a.b.c.d:1443/login/admin or https://x.y.z.p:1443/login/admin | ||
New Customer self care interface | new self-care interface based on powerful ngcp-panel framework | ||
Old Customer self care interface | will be removed in upcoming releases | ||
Provisioning interfaces | |||
SIP interface | not available | sip://a.b.c.d:5060 | Both TCP and UDP are available. |
VM ports smaller then 1024 mapped to ports 22<vm_port> through NAT, otherwise root on host machine requires to map them. It means SSH port 22 mapped to port 2222, WEB port 443 → 22443. |
VM IP address (a.b.c.d), as well as SIP credentials will be printed to terminal during "vagrant up" stage, e.g.:
[20_add_sip_account] Adding SIP credentials... [20_add_sip_account] - removing domain 192.168.1.103 with subscribers [20_add_sip_account] - adding domain 192.168.1.103 [20_add_sip_account] - adding subscriber 43991002@192.168.1.103 (pass: 43991002) [20_add_sip_account] - adding subscriber 43991003@192.168.1.103 (pass: 43991003) [20_add_sip_account] - adding subscriber 43991004@192.168.1.103 (pass: 43991004) [20_add_sip_account] - adding subscriber 43991005@192.168.1.103 (pass: 43991005) [20_add_sip_account] - adding subscriber 43991006@192.168.1.103 (pass: 43991006) [20_add_sip_account] - adding subscriber 43991007@192.168.1.103 (pass: 43991007) [20_add_sip_account] - adding subscriber 43991008@192.168.1.103 (pass: 43991008) [20_add_sip_account] - adding subscriber 43991009@192.168.1.103 (pass: 43991009) [20_add_sip_account] You can USE your VM right NOW: https://192.168.1.103:1443/login/admin
To turn off your sip:provider CE virtual machine, just type:
vagrant halt
To completely remove sip:provider CE virtual machine, use:
vagrant destroy vagrant box remove spce-mr3.3.2
Further documentation for Vagrant is available at the official Vagrant website.
Vagrant usage tips:
vagrant ssh-config
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_mr3.3.2_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: