Upgrade Notes 22.05-22.07

Upgrade Notes 22.05-22.07

In this release, we have migrated to the new stable version of Debian Linux 11.

backup

Be sure to make a database backup before starting the upgrade!

Update algorithm

  1. Complete stop of all Webitel services

  2. Database migration from Webitel v22.05 to v22.07

  3. Updating Debian Linux to version 11 and updating Webitel applications to v22.07

  4. Restarting the server and installing rtpengine

  5. Restarting all services after upgrading to Webitel v22.07

Complete stop of all Webitel services

systemctl stop webitel-api webitel-app webitel-uac messages-bot messages-srv \ engine call_center storage flow_manager \ freeswitch ngcp-rtpengine-daemon opensips nginx

Database migration from Webitel v22.05 to v22.07

su postgres cd /tmp wget https://git.webitel.com/projects/WEP/repos/postgres/raw/migration/22.05-22.07.sql psql webitel -f 22.05-22.07.sql exit

Updating Debian Linux to version 11 and updating Webitel applications to v22.07

cp /etc/opensips/opensips.cfg /var/backups/ cp /etc/rtpengine/rtpengine.conf /var/backups/ apt purge ansible libspandsp6 ngcp-rtpengine ngcp-rtpengine-* apt --purge autoremove rm /etc/apt/sources.list.d/ansible.list apt update apt upgrade sed -i 's/buster\/updates/bullseye-security/g;s/buster/bullseye/g' /etc/apt/sources.list sed -i 's/22.05-releases/22.07-releases/g;s/buster-pgdg/bullseye-pgdg/g;s/buster/bullseye/g' /etc/apt/sources.list.d/*.list apt update apt dist-upgrade apt full-upgrade

After the update, it is necessary to restart the server and install rtpengine

shutdown -r now apt --purge autoremove apt-get install -y --no-install-recommends linux-headers-`uname -r` ngcp-rtpengine \ opensips opensips-http-modules opensips-postgres-module \ opensips-presence-modules opensips-rabbitmq-modules opensips-wss-module \ opensips-tls-module opensips-tlsmgm-module opensips-xmlrpc-module systemctl disable ngcp-rtpengine-recording-daemon systemctl stop ngcp-rtpengine-recording-daemon systemctl enable ngcp-rtpengine-daemon cp /var/backups/rtpengine.conf /etc/rtpengine/

In the Webitel services file, it is necessary to compare with the new parameters and update it manually: https://git.webitel.com/projects/WEP/repos/webitel/browse/etc/systemd/system?at=refs%2Ftags%2F22.07

Restarting all services after upgrading to Webitel v22.07

systemctl restart consul systemctl restart rabbitmq-server systemctl restart webitel-api webitel-app webitel-uac messages-bot messages-srv \ flow_manager engine call_center storage freeswitch ngcp-rtpengine-daemon

Update or merge the OpenSIPS configuration file (if it was changed manually) and nginx:

curl https://git.webitel.com/projects/WEP/repos/opensips/raw/opensips.cfg \ -o /etc/opensips/opensips.cfg systemctl restart opensips curl https://git.webitel.com/projects/WEP/repos/nginx/raw/default \ -o /etc/nginx/sites-available/default.orig vimdiff /etc/nginx/sites-enabled/default /etc/nginx/sites-available/default.orig nginx -t systemctl restart nginx