HOWTO Using Recording to RAM Feature With USB Device

From Bicom Systems Wiki

RAM disk recording is created to increase the performance of the system so that the recording will be saved on the RAM first and after that process is done, sound files will be moved to a Hard drive. In our case we will move it to a USB stick or External HDD that is connected to the PBX machine over USB port.

We recommend to use at least a USB 2.0 device because it has better performance than a USB 1.x .

To configure the system follow next steps:

  • Open your PBXware Web GUI and go to 'Settings->Servers' . Click on 'Edit' button. Find the 'Use RAM disk' option and set it to 'Yes' . You can choose how much 'RAM disk size' you want to use by selecting 16MB, 32MB, 64MB, 128MB, 256MB or 512MB. After you configure this, click on 'Save' and restart PBXware by clicking on 'Restart' button on the right side.
  • Next step is to connect your USB stick to the PBX machine. Execute
 'cat /proc/partitions' 

to find out ID of the USB stick. In most cases the USB stick is 'sdb' or 'hdb' and it contains additional number showing partition(s) on it.

  • Now we need to mount that USB stick to our recording location with this command:
 mount -o gid=555,uid=555 /dev/sdb /opt/pbxware/pw/var/spool/asterisk/monitor/