Upgrading PortSIP PBX to New Versions

This guide is for upgrading your current PortSIP PBX v16.x installation to the latest version. Please follow the steps below to upgrade.
Please ensure that your current PortSIP PBX installation is version 16.x.

Open firewall Rule for Port 10443

From version 10.0.1, the PortSIP SBC changed the WebRTC client port to 10443; therefore, you must create a new firewall rule for port 10443 on TCP.

Upgrading SBC

Please follow this article to upgrade the PortSIP SBC.

Upgrading PBX

1 Upgrading for Windows

  1. 1.
    We suggest backing up your PBX data. The data file path is usually c:\programdata\portsip.
  2. 2.
    Download the latest installer from the PortSIP website.
  3. 3.
    Double-click the installer to install it and the upgrade will be performed automatically.

2 Upgrading for Linux

We recommend backing up your PBX data. The data file path is usually /var/lib/portsip. You can also back up the entire VM server or take a snapshot of the VM server.
All commands must be executed in the /opt/portsip directory.

2.1 Stop PBX Docker Instance

Perform the following commands as root to stop the current PBX docker instance.
cd /opt/portsip && /bin/sh pbx_ctl.sh stop

2.2 Delete the PBX Docker Instance

Perform the following command to delete the PBX docker instance.
/bin/sh pbx_ctl.sh rm

2.3 List the PBX Docker Images

Perform the following command to list the PBX docker images.
docker image list
You will get the result like the below screenshot.

2.4 Delete the PBX Docker Images

You can use the following command to delete docker images using the first 4 digits of the IMAGE ID.
docker image rm 03b8 d569

2.5 Delete the PBX Scripts

rm install_pbx_docker.sh
rm pbx_ctl.sh

2.6 Download the Latest Installation Scripts

curl https://raw.githubusercontent.com/portsip/portsip-pbx-sh/master/v16.x/install_pbx_docker.sh \
-o install_pbx_docker.sh
curl https://raw.githubusercontent.com/portsip/portsip-pbx-sh/master/v16.x/pbx_ctl.sh \
-o pbx_ctl.sh

2.7 Setup the 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.
/bin/sh install_pbx_docker.sh

2.8 Create and Run the PortSIP PBX Docker Container Instance

The below command is used to create and run the PBX on a server whose IP is66.175.221.120. If running the PBX in a LAN without the public IP, just replace the IP 66.175.221.120 with the PBX server's LAN private IP.
/bin/sh pbx_ctl.sh \
run -p /var/lib/portsip \
-a 66.175.221.120 \
-i portsip/pbx:16
Your PBX has now been successfully upgraded to the latest version.