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.
If you upgraded the PBX to v16.1.0, then you must also upgrade the SBC to v10.0.6, and update the PBX access token as the guide.
- 1.We suggest backing up your PBX data. The data file path is usually
- 3.Double-click the installer to install it and the upgrade will be performed automatically.
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
Perform the following commands as root to stop the current PBX Docker instance:
cd /opt/portsip && /bin/sh pbx_ctl.sh stop
Perform the following command to delete the PBX Docker instance:
/bin/sh pbx_ctl.sh rm
Perform the following command to list the PBX Docker images:
docker image list
You will get the result shown in the below screenshot.
You can use the following command to delete Docker images using the first 4 digits of the IMAGE ID for PBX and Postgresql.
docker image rm 03b8 d569
curl https://raw.githubusercontent.com/portsip/portsip-pbx-sh/master/v16.x/new/install_docker.sh \
curl https://raw.githubusercontent.com/portsip/portsip-pbx-sh/master/v16.x/new/pbx_ctl.sh \
Execute the below command to install the
Docker-Composeenvironment. 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.
The below command is used to create and run the PBX on a server whose IP is
22.214.171.124. If running the PBX in a LAN without the public IP, just replace the IP
126.96.36.199with the PBX server's LAN private IP.
/bin/sh pbx_ctl.sh \
run -p /var/lib/portsip \
-a 188.8.131.52 \
Your PBX has now been successfully upgraded to the latest version.