Upgrade to the Latest v22.x on Linux
This guide provides step-by-step instructions for upgrading your current PortSIP PBX v16.x or v22.x installation to the latest v22.x release. The sections include:
1. Upgrading from v16.x to the Latest v22.x
If your current installation is v16.x and you wish to upgrade to the latest v22.x, please follow Prerequisites for Upgrading from v16.x.
2. Upgrading within v22.x
If your current installation is already v22.x and you wish to upgrade to the latest version within the v22.x series, please follow Prerequisites for Upgrading within v22.x.
Back-Up
Please follow the article Backup and Restore: An Essential Guide to back up the PBX and SBC.
Rest assured, if all steps are followed correctly, your PBX data will remain intact throughout the upgrade process.
Prerequisites for Upgrading from v16.x
If your current installation is running a version lower than v16.4.4, please first follow the Upgrading to the Latest v16.x Release guide to complete the upgrade to v16.4.4.
Once your PBX is upgraded to the latest v16.x, follow the steps below to remove the v16.x installation before upgrading.
After you upgraded the PortSIP PBX from v16.x to v22.x, the old PortSIP Softphone app can't be used with v22.x, you must use the new PortSIP ONE app with the PortSIP PBX v22.x and higher.
All commands must be executed in the /opt/portsip
directory.
Remove the current PBX installation
1: Stop PBX docker instances
Perform the following commands to stop the PBX Docker instance:
2: Delete the PBX docker instances
Perform the following command to delete the PBX Docker instance:
3: Delete the PBX docker images
Perform the following command to list the PBX Docker images:
You will get a similar result, as shown in the screenshot below.
You can use the following command to delete Docker images by specifying the first 4 digits of the IMAGE ID for PBX and Postgresql. In this case, the IMAGE IDs are 03b8 for PBX and d569 for Postgresql:
4: Delete the scripts
Use the below commands to delete the current scripts.
Remove the current SBC installation
If you installed PortSIP SBC 10.x with PortSIP PBX v16.x, you will also need to upgrade to v11.x for compatibility with PortSIP PBX v22.x.
Please follow the steps below to remove the current installation.
1: Stop SBC docker instances
Perform the following commands to stop the SBC Docker instance:
2: Delete the SBC docker instances
Perform the following command to delete the SBC Docker instance:
3: Delete the SBC docker images
Perform the following command to list the SBC Docker images:
You will get a similar result, as shown in the screenshot below.
You can use the following command to delete Docker images by specifying the first 4 digits of the IMAGE ID for SBC. In this case, the IMAGE ID is 9f51 for SBC:
4: Delete the scripts
Use the below commands to delete the current scripts.
You are now ready to upgrade to the latest version of PortSIP PBX v22.x.
Important: Upgrading from v16.x to v22.x
If you are upgrading from v16.x to v22.x, please follow these steps after your upgrade is complete.
Re-generate User QR Codes:
Go to Call Manager > Users and click the Send All Welcome Email button. The PBX will then re-generate QR codes for all users, allowing the PortSIP ONE app to sign in successfully.
Reconfigure Microsoft 365 Integration: If you have configured Microsoft 365 integration on v16.x, follow the Microsoft 365 Integration Guide to configure it again:
Remove all previously configured callback URIs in Microsoft 365.
Add the two new callback URIs as described in the guide.
Must log in to the PBX web portal as a tenant administrator for each tenant and navigate to Advanced > Contacts. Select any contact, make an edit, and click OK. This action will prompt the PBX to generate an XML phone book for your IP phones, allowing them to download it successfully.
Since SMTP server configurations have changed in v22.0, your previous settings will now be recognized as a generic email provider. Please review your configuration and update it if necessary.
Prerequisites for Upgrading within v22.x
All commands must be executed in the /opt/portsip
directory.
If you are currently running PortSIP PBX v22.x and wish to upgrade to the latest version, please follow the steps below.
Remove the current PBX installation
1: Stop PBX docker instances
Perform the following commands as root to stop the current PBX Docker instance:
2: Delete the PBX docker instances
Perform the following command to delete the PBX Docker instance:
3: Delete the PBX docker images
Perform the following command to list the PBX Docker images:
You will get a similar result, as shown in the screenshot below.
You can use the following command to delete Docker images by specifying the first 4 digits of the IMAGE ID for PBX and Postgresql. In this case, the IMAGE IDs are 527b for PBX and d0ad for Postgresql:
4: Delete the scripts
Remove the current SBC installation
If you installed the PortSIP SBC 11.x with the PortSIP PBX 22.x, please follow the below steps to remove it.
1: Stop SBC docker instances
Perform the following commands as root to stop the current SBC Docker instance:
2: Delete the SBC docker instances
Perform the following command to delete the SBC Docker instance:
3: Delete the SBC docker images
Perform the following command to list the SBC Docker images:
You will get a similar result, as shown in the screenshot below.
You can use the following command to delete Docker images by specifying the first 4 digits of the IMAGE ID for SBC. In this case, the IMAGE ID is b6cc for SBC:
4: Delete the scripts
Remove the separated IM service installation
If your IM service is installed on a separate server, please follow the below steps to remove it. Otherwise, please ignore this section.
First, use SSH to connect to the separate IM server to perform the below commands.
The IM service is hosted within the PBX Docker instance and image, so it will appear as PBX in the following steps.
1: Stop IM docker instances
Perform the following commands as root to stop the current IM Docker instance:
2: Delete the IM docker instances
Perform the following command to delete the IM Docker instance:
3: Delete the IM docker images
Perform the following command to list the IM Docker images:
You will get a similar result, as shown in the screenshot below.
You can use the following command to delete Docker images by specifying the first 4 digits of the IMAGE ID for PBX and Postgresql. In this case, the IMAGE IDs are 03b5 for PBX and d0ad for Postgresql:
4: Delete the scripts
Upgrade to the Latest PortSIP PBX v22.x
Having completed the above steps to remove the existing PortSIP PBX installation (while retaining the PBX data), you can now proceed with the upgrade by following the same steps as for a fresh installation. The process is identical to installing a new PBX docker instance, and the installer will automatically handle the data upgrade process.
Last updated