MikoPBX 2023.1.223
PBX Update Mechanism
We have fundamentally redesigned the approach to updating through the img file. This update method was triggered in the following cases:
Online update
Update using a local img file
Previously, the update was performed according to the following algorithm:
Uploading the img file to the PBX
Termination of active processes
Unmounting the disks
Writing the update file to the disk (dd)
Often, issues arose during the 3rd step. The system refused to unmount the disk, even if it was no longer utilizing its resources. As a result, problems occurred, and data could be lost.
In release 2022.3.15, a mechanism for creating a preliminary "snapshot" of the system partitions was added, allowing the system to be restored from a backup.
In release 2023.1.223, we changed the algorithm as follows:
Uploading the img file to the PBX
Restarting the PBX
Snapshot of the system disk
Writing the update file to the disk (BEFORE connecting the disks)
In addition, we implemented a mechanism to save a backup copy of the PBX's settings database to the storage disk. When modifications to the settings are made, a backup of the database will be created in the following path: /storage/usbdisk1/mikopbx/backup/db
The directory will store the last 5 versions:
This should increase fault tolerance and expand the system recovery capabilities in case of failures.
Firewall
We upgraded fail2ban to version 1.0.2.
The mechanism for blocking IP addresses has been reworked.
In earlier releases, if there were password guessing attempts, access from the IP address was blocked to all PBX ports.
In release 2023.1.223, the mechanism was reworked. If password guessing occurs on port 5060, access will only be blocked to 5060+RTP range. Access to the web interface will remain open.
This can be useful when the PBX is in the cloud. We avoid blocking access to the station when an incorrect password is unintentionally entered. It will still be possible to access the web interface and remove the block.
The iptables
rules have been reworked using -m multiport
, which makes the output of iptables -L -n
more understandable.
Customization
We have expanded the possibilities of customizing queues. An example of a queue dialplan:
Now it is possible to define a context through customization of system files:
In this context, you can perform arbitrary actions before the call is directed to the queue. Play a media file, set additional channel variables, send an email to the responsible person.
Call Recording
Several bugs related to call recording and call resumption have been fixed.
Now, in the employee's profile, there is an option to disable call recording:
All dialogs involving internal and mobile numbers of the employee will NOT be recorded. This can be useful for directors and other company executives.
An option to disable recording of all internal calls has been added. To do this, you should uncheck the flag in the "System" - "General Settings" - "Call Recording" - "Record Internal Calls".
Non-Working Time
The new interface for displaying the list of non-working time is more informative and compact:
Previously, to describe non-working time from 18:00 to 8:00, it was necessary to create two rules: 00:00 - 08:00 and 18:00 - 23:59. Now it is possible to specify a single rule 18:00 - 08:00:
This allows reducing the number of rules and organizing the schedule more efficiently.
We were often asked to provide the ability to configure different working schedules for different company departments. Now it is possible.
In the non-working time rule card, there is an option "Apply only to specific inbound routes". Now the rule can be linked to specific inbound routes. This option allows creating more flexible rules that will apply to specific company departments.
Example:
In this example, the rule will only apply to one company number.
Call Analysis
A button has been added to the call history log to navigate to the call log:
Such logs can be passed to technical support for analysis of PBX behavior.
Extended filtering options have been added to the call log:
You can enter several substrings separated by the "&" symbol, and the log containing all listed substrings will be displayed.
Modules for connecting to Homer have been added to the Asterisk build. The modules can be configured through customization of system files.
Docker
A lot of work has been done on bug fixing. This version is considered stable. Tested on Ubuntu, Debian, with the main requirement being Linux 5 version.
New Instructions
Conclusion
Only the most important changes have been listed. The full list can be found in the release description.
We strive to make MikoPBX stable, easy to configure, and maintain. We hope it becomes a reliable tool for your company.
Last updated