How to Change Elastix Default Recording Location

How to Change Elastix Default Recording Location

A、打开路径变更选项:

This method is used to only change recording location , after changing this you can not download recordings from PBX--> Call Recording .

First Go to -->Security-->Advance Settings And Click on Enable direct access (Non-embedded) to
FreePB and Turn it to ON

Go to PBX-->Unembedded FreePBX

Now open https://PBXIP/admin/config.php

Goto Settings-->Advance Setting

Change the 2 switch
Display Readonly Settings and Override Readonly Settings to TRUE

Save it and refresh it if its not visible reboot PBX and verify if settings saved

Now new settings called "Override Call Recording Location " will be visible

change here new location for voice recordings

make sure you give appropriate permission to new recording location ( I given persion 777 to newly created folder as i coun;t figure out how which permission needs to store recording )

OR create new nfs share on external network OR mount external NAS directory

Check hot to mount nfs share

http://vishal-linux.blogspot.com.au/2014/10/mount-windows-share-using-nfs-in-centos.html?q=mount

Note : don't mount recording on network as its create constant traffic on network , its better to create some script to move recording from PBX

-----------------------------------------------------------------------------------------
B、配置新的录间路径

1. Create a monitor folder with owner:group asterisk:asterisk permission 777.
    the Asterisk script will look for the folder monitor.
    i.e: I want my recordings on: /recordings/monitor
    #cd /recordings
    #mkdir monitor

chmod 777 monitor

#cd /recordings
chown -h asterisk:asterisk monitor

    Settings
    Advanced Setings
    Override Call Recording Location: /recordings/monitor

    Edit file: paloSantoMonitoring.class.php
    from:
    define (‘DEFAULT_ASTERISK_RECORDING_BASEDIR’, ‘/var/spool/asterisk/monitor’);
    to:
    define (‘DEFAULT_ASTERISK_RECORDING_BASEDIR’, ‘/recordings/monitor’);

path: vi /var/www/html/modules/monitoring/libs/paloSantoMonitoring.class.php

After those 3 steps the recording are being storage on /recordings/monitor and the web portal have the recording.
The result of the above two steps is to achieve Changes to the new path.

3. Transfer the original old recording files to the new directory, and set the corresponding permissions at the same time, you can listen to them normally in the list.

Related website technical references:
https://community.freepbx.org/t/change-call-recording-location/23509
https://community.asterisk.org/t/asterisk-13-channel-recording-path- always-use-default/73006
https://www.elastix.org/community/forums/general.180/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326073304&siteId=291194637