In some cases, it is necessary to save call recordings on a network drive. This example shows how to connect a shared Windows folder to MikoPBX.
Note: If the network folder becomes unavailable, it may cause disruptions in PBX operation.
Create a directory for the script:
Create the script file:
Insert the script content:
Press "CTRL+D" twice to finish creating the file.
Grant execution permissions:
In the script variables "HOST, USER, PASS", specify the connection parameters to the shared folder.
Add the script to cron for automatic connection of the shared folder.
Go to the System → Customizing System Files section.
Add the following rule to the end of the /var/spool/cron/crontabs/root file:
Test the PBX operation to ensure that call recordings are being saved to the network drive.
Some virtual machines allow you to increase the disk size
Be sure to back up your data before you work!
To execute the following commands, you will need to .
The data storage disk is usually mounted in the "/storage/usbdisk1" directory. From the example above, it can be seen that 4.5G of 4.9G is currently available.
Before starting work, you should unmount the disk. To do this, run the script:
Make sure that the data storage disk is no longer mounted:
First, delete the existing partition. This operation does NOT delete data on the disk, just edits the partition table.
Launching the Section Editor:
The system will prompt you to enter a command, enter "d" and press Enter:
Система запросит выбрать раздел к удалению, он один, вводим номер раздела «1» и жмем Enter:
Сохраняем таблицу разделов, вводим команду «w» и жмем Enter:
Launching the Section Editor:
The system will prompt you to enter a command, enter "n" and press Enter:
Next, specify the command "p", the section will be primary, press Enter:
Enter the number of the created section "1", press Enter:
Next, the system will ask you to enter the numbers of the first and last sector "First sector" / "Last sector", wait for Enter, do not enter anything and agree with the "default" values.
The size of the partition must match the size of the disk.
Run the verification command:
Example of the result of the team's work:
Run the command:
Example of command output:
When booting, the system will automatically mount a disk for data storage:
When a new is added to the PBX, a SIP account with a numeric internal number is created on the PBX. In some cases, for security reasons, it is necessary to change the name for authorization of this employee.
When configuring SIP Clients, you can often see two key parameters:
Username - usually equal to the account ID, in the case of MikoPBX equal to the internal number
Auth name - username for authorization. In the case of MikoPBX is equal to the internal number
To change the authorization name:
Open the employee's account for editing
Go to "Advanced Settings" → "Advanced SIP Settings"
Add the following lines:
Instead of MIKO204, specify a name for authorization, it is advisable to use both letters and numbers