Install PortSIP PBX

Upgrading

This guide applies only to fresh installations of the latest PortSIP PBX v22.x.

If you are upgrading from an earlier version, such as v16.x, v22.1.x, or v22.2.x to the latest v22.x release, please follow the appropriate upgrade guide below:

Minimal Hardware Requirements

  • CPU: 2 cores

  • Memory: 4 GB

  • Disk: 50 GB

With this configuration, the PBX can support up to 1,000 online users and handle 300~500 simultaneous calls.

Note The Data Flow service must be installed on a separate server. Please refer to the Install Data Flow Service guide for detailed installation instructions.

Supported OS

  • Ubuntu 22.04, 24.04

  • Debian 12

Preparing the Server for Installation

Tasks that MUST be completed before installing PortSIP PBX

  • Ensure the server date-time is synced correctly.

  • Use the sudo to perform the installation is recommended.

  • Ensure the Linux OS maximum open file limit has been adjusted to a large number, such as 65535, 100000.

  • If the server on which PBX will be installed is located on a LAN, assign a static private IP address to the PBX server; if it's on a public network, assign a static public IP address and a static private IP to the PBX server.

  • Install all available updates and service packs before installing PortSIP PBX.

  • Do not install PostgreSQL on your PortSIP PBX Server.

  • Ensure that all power-saving options for your system and network adapters are disabled (by setting the system to High-Performance mode).

  • Do not install TeamViewer, VPN, or other similar software on the host machine.

  • The PortSIP PBX must not be installed on a host that is a DNS or DHCP server.

  • The following ports must be permitted by your firewall.

    • UDP: 5060, 5066, 25000-34999, 45000–65000

    • TCP: 5061, 5063, 5065, 5067, 8882, 8883, 8887, 8888, 10443. Please also ensure the above ports have not been used by other applications.

Installing PortSIP PBX

Step 1: Download Installation Scripts

Perform the commands below to download the installation scripts and initialize the environment:

Step 2: Set up Docker Environment

Execute the below command to install the Docker-Compose environment. If you get the prompt likes*** cloud.cfg (Y/I/N/O/D/Z) [default=N] ?, enter the Y and then press the Enter button.

Step 3: Create and Run PBX Docker Instance

The following command is used to create and run the PBX on a server with the public IP address 66.175.221.120.

If you are running the PBX on a local area network (LAN) without a public IP address, simply replace 66.175.221.120 with the PBX server’s private LAN IP address.

In the above command, we can specify the following parameters.

  • -p: Specifies the path for storing PBX data.

  • -a: Specifies the PBX server's IP address.

  • -i: Specifies the PBX Docker image version.

  • -f: Specifies the path for storing the recording files, it's optional.

The -f parameter is optional and allows you to specify a separate path for storing recording files. If this parameter is not specified, the recording files will be stored in the path defined by the -p parameter.

For example, if you mount a device or an external NAS device to /pbx/recordings and want to store the recording files there, you can create and run the PBX Docker instance using the following command:

After successfully installing the PortSIP PBX, you can access the PBX web portal by visiting: https://66.175.221.120:8887

The default system administrator username and password are both admin.

Step 4: Configure the PortSIP PBX

Once the PortSIP PBX is successfully installed, you can access the web portal by opening your browser and navigating to https://66.175.221.120:8887. If your browser displays an SSL certificate warning, you can safely ignore it and continue. You will then be directed to the login page, as shown in the screenshot below.

Click on "Sign in as the administrator or dealer" to navigate to the administrator login page, as shown in the screenshot below. Enter admin as both the username and password to log in to the web portal.

After successfully logging into the PBX Web Portal with a new installation, the PBX will launch a setup wizard automatically to guide you through completing the mandatory settings.

1. Network Environment

  • Private IPv4 Address You must enter the server's private IPv4 address. If the server does not have a private IP, use the public IP address instead.

  • Public IPv4 Address If the PBX server has a static public IP address, enter it in the Public IPv4 field. If the server does not have a static public IP, leave this field blank.

These IP addresses must be accessible to your SIP clients, as the IP entered here will function as the SIP server IP address for the PBX. This is crucial when a SIP client or IP phone registers to PortSIP PBX, and should be configured as the Outbound Proxy Server.

  • Cloud Deployment: If the PBX is deployed in the cloud, both Private IPv4 and Public IPv4 addresses must be entered.

  • LAN Deployment: If the PBX is on a local network (LAN), only the Private IPv4 address is required.

2. SSL Certificate

To enable TLS transport for SIP and secure HTTPS access to the Web Portal and REST API, a trusted SSL certificate must be uploaded during this step.

  • Domain Setup: You will need a web domain. For example, you can purchase a domain from providers like GoDaddy and point it to your PBX’s IP address.

  • SSL Certificate: A trusted SSL certificate is necessary to avoid browser warnings. Recommended certificate providers include DigiCert, GeoTrust, GoDaddy, and others.

    • If you do not have a domain or SSL certificate, you can use your PBX’s IP address as the Web Domain and proceed with the default certificate. However, please note that PortSIP PBX uses a self-signed certificate by default, which will trigger browsers to block the connection and display a security warning.

  • Certificate Providers: To purchase an SSL certificate, follow the guide: Preparing TLS Certificates for TLS/HTTPS/WebRTC.

You will have two certificate files if you complete the steps in the guide:

  • portsip.key

  • portsip.pem

Configuring the Certificates

In this guide, we assume the use of the domain uc.portsip.cc for the PBX web domain.

  1. In the Web Domain field, enter uc.portsip.cc.

  2. Open the portsip.pem file in a text editor (such as Windows Notepad), and copy the entire contents into the Certificate File field.

  3. Similarly, open the portsip.key file, and copy its entire contents into the Private Key File field.

3. Transport Protocol

You can configure the transport layer protocol for SIP signalling by clicking the Add button. The default transport ports are as follows:

  • UDP: 5060

  • TCP: 5063

  • TLS: 5061

You are free to change these default ports to any preferred value, but ensure that the new port is not already in use by other applications.

Step 5: Install the Instant Messaging (IM) Service

Starting with PortSIP PBX v22.0, an integrated Instant Messaging (IM) service is available, providing modern collaboration features such as one-to-one messaging and group chat.

The IM service requires a separate installation step. In certain deployments, especially in high-concurrency or large-scale environments, you may choose to deploy the IM service on a dedicated server to achieve optimal performance and scalability.

Please follow the guide Install IM Service to install and configure the PortSIP IM service for the PBX.

Step 6: Install the Data Flow Service

Starting with PortSIP PBX v22.3.0, PortSIP introduces the Data Flow service, which provides advanced data analytics and real-time metrics.

The Data Flow service is built on ClickHouse, a high-performance, column-oriented database designed for analytics workloads. Due to its resource-intensive nature, this service must be installed on a dedicated, high-performance server and is deployed as a separate service from the core PBX.

Please follow the guide Install Data Flow Service to install and configure the Data Flow service for the PBX.

Note Installing the Data Flow service is optional. If it is not installed, call processing will not be affected; however, data analytics, wallboards, and certain metrics features will be unavailable

Step 7: Reboot to Apply the Certificate

Once Step 5/6 is completed, if you uploaded a trusted SSL certificate in Step 2: SSL Certificate instead of using the default self-signed certificate, you need to restart the PBX to apply the changes. Use the following commands to reboot the PBX:

Now that the PortSIP PBX is successfully installed, you can use https://uc.portsip.cc:8887 to access the PortSIP PBX web portal.

Managing PortSIP PBX Docker Instance

After successfully installing the PortSIP PBX, you can use the following commands to manage the PortSIP PBX Docker instance.

Show the PBX Docker Instance Status

Start the PBX Docker Instance

Stop the PBX Docker Instance

Restart the PBX Docker Instance

Delete the PBX Docker Instance

This command will not delete the data of the PBX.

Managing PortSIP IM Service Docker Instance

First, you will need to at the /opt/portsip folder, then you can use the following commands to manage the PortSIP IM Service Docker instance.

Show the IM Service Docker Instance Status

Start the IM Service Docker Instance

Stop the IM Service Docker Instance

Restart the IM Service Docker Instance

Delete the IM Service Docker Instance

This command will not delete the data of the PBX.

Managing PortSIP Data Flow Service Docker Instance

First, you will need to be at the /opt/portsip folder, then you can use the following commands to manage the PortSIP Data Flow Service Docker instance.

Show the Data Flow Service Docker Instance Status

Start the Data Flow Service Docker Instance

Stop the Data Flow Service Docker Instance

Restart the Data Flow Service Docker Instance

Delete the Data Flow Service Docker Instance

This command will not delete the data of the PBX.

Last updated