Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
This article contains step-by-step instructions for updating MikoPBX to a newer version.
Before updating, be sure to back up your PBX settings using the backup module.
In some sections of the interface (e.g., Extensions), the current version of MikoPBX is displayed in the lower right corner.
In the PBX web interface, go to Maintenance → PBX update.
If there are newer versions of the PBX available, they will be displayed in the Online updates available table, with the version number in the first field and the list of changes in the second.
We recommend performing updates sequentially without skipping releases.
There are two update options: online update and update using a downloaded img file.
Be cautious! If the system is installed on the same disk where call recordings are stored, there may be difficulties with the update. See forum
A warning window will appear. Click Upgrade.
The PBX will download and apply the updates, and then reboot.
Please note that this method can also be used to roll back to a previous version.
The img file will start downloading. Wait for the download to complete.
Then click Apply the update, and in the warning window, click Upgrade.
The updates will be applied, and the PBX will reboot upon completion.
Below is an example of a PBX installed on a VirtualBOX virtual machine, updated from version 2023.1.223 to version 2023.2.206. Download the iso image of the required PBX version from the repository.
The console will display the line "The system loaded in Recovery mode".
Select Install / Repair (or press the number 8 on the keyboard) and press Enter.
You need the command "Update to version ****.*.**". Press the number 2 on the keyboard, then press Enter. The update installation will begin. When it is complete, the PBX will reboot.
After the PBX reboots, the message "The system loaded in Recovery mode" will no longer appear, indicating that the PBX has booted from the hard disk and not from the virtual optical drive. The installed update version will be displayed in green at the top.
To update the MikoPBX container to the latest version, you can follow these steps in the command line. These steps include stopping the current container, downloading the new version of the image, and running the container with the updated image.
First, you need to properly stop the running container. After stopping the container, you can safely remove it
To launch a new container using the latest image version with the same settings as before, use the following commands:
First, you need to properly stop the running container. After stopping the container, you can safely remove it
The next step is to download the latest MikoPBX image:
An example of the docker-compose.yml
file that can be used to update your MikoPBX container through Docker Compose:
Save the contents to a file named docker-compose.yml
, make the necessary adjustments, and run the command:
Data: Since data is stored in Docker volumes (mikopbx_cf
and mikopbx_storage
), it remains untouched during the update, preserving settings and user data.
Environment Variables: Ensure that all necessary environment variables are correctly passed.
Safety: Always create backups of your data before updating.
These steps will help ensure a smooth and safe update of your MikoPBX container.
Updates are downloaded to the PBX and applied immediately. To update this way, click the button for the desired version.
To update using this method, click the button for the desired version.
Then click the button and select the downloaded img file.
In VirtualBOX, open the settings of the virtual machine where the PBX is installed. Go to the Storage section. Select the virtual optical drive. Click the icon in the Attributes group, and click Choose Disk File. Select the downloaded PBX iso image. Start the machine.
Содержит 3 вкладки: просмотр логов, информация о системе, захват сетевых пакетов.
Раздел позволяет просмотреть файлы логов для детального анализа работы АТС
Для начала работы - выберите файл
Установите лимит строк для выборки
Установите офсет - значение сдвига в выборке
Установите фильтр по вхождению строки в выборку
Доступны следующие возможности:
Допустим необходимо проанализировать прохождение исходящего звонка на номер 74952293042
Выберите файл для анализа asterisk/verbose.
В качестве фильтра установите номер телефона 74952293042.
В поле лимит укажите значение с запасом, к примеру 2000, иначе могут быть выданы не все записи лога.
В последней строке выборке следует найти идентификатор:
В данном примере ID = C-0000000f.
Повторяем запрос лога, но уже с фильтром C-0000000f.
Будет получен весь лог прохождения dialplan.
Полученные данные можно отправить специалисту технической поддержки.
Вкладка отображает следующую информацию:
Сетевые настройки
Нагрузка на CPU
Потребляемая оперативная память
Настройки iptables
Данный раздел позволяет произвести детальный анализ ошибок в работе АТС.
Вы можете запустить сбор сетевых пакетов, проходящих через сетевой интерфейс.
Для запуска процесса нажмите кнопку Старт.
Воспроизведите вашу проблему: совершите звонок или иное действие, приводящее к сбою / ошибке.
Нажмите кнопку Остановить и скачать.
Сетевые пакеты будут автоматически сохранены в архив MikoPBXLogs_log-tcpdump-XXXXXXXXXX. Также они должны автоматически сохраниться в папку Загрузки вашего браузера.
Если в папке Загрузки архив найти не удалось , можете подключиться к АТС через WinSCP и скачать его из директории /storage/usbdisk1/mikopbx/tmp - файл log-tcpdump-XXXXXXXXXX.zip
Подсказка
Вы можете скачать все накопленные на АТС системные логи. Для этого нажмите кнопку Скачать все системные логи.
Системные логи будут автоматически сохранены в архив MikoPBXLogs_log-sys-XXXXXXXXXX.zip. Логи автоматически должны сохраниться в папку Загрузки вашего браузера. Так же данный архив с логами можно получить из каталога /storage/usbdisk1/mikopbx/tmp, подключившись к АТС при помощи WinSCP. Файл - log-sys-XXXXXXXXXX.zip
Будьте внимательны! При большом объеме звонков или прочей сетевой «нагрузки» на АТС логи могут занять довольно много места на диске.
Другие способы снятия лога:
С помощью SSH-клиента
С помощью утилиты Wireshark
С помощью приложения tcpdump
The system shutdown/reboot menu can be found in MikoPBX by clicking on "Reboot" in the "Maintenance" section
When you open the page, a list of active calls to the PBX will be displayed. The start date of the call is displayed, from whom and to whom the call
Restart the PBX - the command starts restarting the station.
Turn off PBX - completes all processes and disconnects the station.
As long as there are active calls, the reboot and shutdown will not be available via the web interface.
You can restart the station via the console menu. To do this, select the section "[3] Reboot the system"
If you want to restart the station: press "[1] Reboot MikoPBX"
If you want to turn off the station: press "[2] Shutdown"
The system will reboot.
In case of an emergency restart of the PBX (for example, power outage), it may be necessary to check the disk for errors.
In the PBX console menu, enter the command "[9] Console(Shell)" and press Enter
System launch the Miko PBX console
Enter the command reboot
Press Enter.
The system will reboot with a disk check.
1. Cкачать полученную выборку в виде файла
2. Обновить выборку
3. Автоматическое обновление выборки
Можете, воспользовавшись поиском в WinSCP, в поле имени искомого файла ввести "log-tcpdump*", а в каталоге поиска ввести просто "/storage"