В данном релизе осуществлен переход на новую стабильную версию In this release, we have migrated to the new stable version of Debian Linux 11.
Warning |
---|
|
Выполните резервное копирование базы данных до начала обновления! |
Алгоритм обновления
...
Be sure to make a database backup before starting the upgrade! |
Update algorithm
- Complete stop of all Webitel services
- Database migration from Webitel v22.05 на to v22.07
- Обновление Updating Debian Linux до версии 11 и обновление приложений Webitel до to version 11 and updating Webitel applications to v22.07
- Перезагрузка сервера и установка rtpengine
- Перезапуск всех сервисов после обновленния до Restarting the server and installing rtpengine
- Restarting all services after upgrading to Webitel v22.07
Полная остановка всех сервисов webitelComplete stop of all Webitel services
Code Block |
---|
|
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
Code Block |
---|
|
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 до версии 11 и обновление приложений Webitel до to version 11 and updating Webitel applications to v22.07
Code Block |
---|
|
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
Code Block |
---|
|
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/ |
В файле сервисов webitel необходимо сравнить с новыми параметрами и обновить руками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
Code Block |
---|
|
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 |
Обновите либо сведите конфигурационный файл OpenSIPS (если он был изменен вручную) и Update or merge the OpenSIPS configuration file (if it was changed manually) and nginx:
Code Block |
---|
|
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 |
...