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.
通过上面二步结果是实现了新路径的变更。

3、将原来的旧的录音档文件转移到新的目录下来,同时设定对应的权限就可以正常在列表中调听。

相关的网站技术参考引用:
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/

猜你喜欢

转载自mcseer2018.iteye.com/blog/2412015
今日推荐