Save audio files on a network drive

By default MiaRec stores recorded calls on a local disk inside directory C:\Program Files\MiaRec Business\Data\Recordings.

This article explains how to store calls on a network (UNC) path, like \\some-server\recordings.

MiaRec is running as a service application. Windows OS applies some limitations to service applications: by default UNC paths are not accessible from a service.

In order to access UNC paths from a service, you need to have the Windows Domain Controller on on a nework.

Both MiaRec and Storage servers should be members of the same domain.

Configuration of network storage server

MiaRec server should have sufficient access rights to the Storage server.

You need to share some folder on the Storage server and grant write pemissions to MiaRec server on that folder.

Step 1. Create a folder on Storage server, for example C:\Recordings and open properties of it.

Select 'Share this folder' and enter desired name into 'Share name' input box (or use a default one).

See below screenshot as an example.

Share this folder

Step 2. Click on Permission button.

You will see a new dialog "Rermissions for Recordings":

Permissions for ...

Step 3. You need to add the computer, where MiaRec is running, to the permissions list and grant full access rights to that computer.

Click on Add button (see step 2) and new dialog "Select Users, Computers, or Groups" will be opened:

Select Users...

Step 4. Click on Object Types button and make sure that Computers entry is checked:

Object Types

Step 5. Click OK and go back to "Select Users, Computers, or Groups" dialog. Type MiaRec computer's name into corresponding field:

Enter Object Name...

In our example MiaRec is installed on a computer name with NETBIOS name WIN2K3-SERVER.

Click OK inside that dialog and you will return to "Permissions for Recordings" dialog.

Step 6. Grant "Full Control" permissions to the newly added computer:

Grant Permissions

Configuration of the Storage server is completed.

Configuration of MiaRec server

Open MiaRec.ini file (by default located in C:\Program Files\MiaRec Business\Bin).

Find there following line:

FileNameFormat=C:\Program Files\MiaRec Business\Data\Recordings\%{setup-time#%Y%m%d}\%{setup-time#%Y%m%d%H%M%S}.mp3

And replace it with UNC path, for example:

FileNameFormat = \\my-storage-server\Recordings\%{setup-time#%Y%m%d}\%{setup-time#%Y%m%d%H%M%S}.mp3

In our example, my-stogate-server is a NETBIOS name of the Storage server.

\\my-storage-server\Recordings is UNC path to the folder, which was shared in previous steps.

Save MiaRec.ini file and restart MiaRec service.

Now MiaRec should save calls on a network path.

Note: If your recording filters have "filename" line, then you need to edit them also:


filter1 action = record
filter1 condition = caller-ip = '' OR callee-ip = ''
filter1 filename = \\my-storage-server\Recordings1\%{setup-time#%Y%m%d%H%M%S}.mp3

filter2 action = record
filter2 condition = caller-ip = '' OR callee-ip = ''
filter2 filename = \\my-storage-server\Recordings2\%{setup-time#%Y%m%d%H%M%S}.mp3

default_action = ignore