I am trying to find a way to change the storage location for recorded calls. The currently record on my root partition to /var/spool/asterisk/monitor and then by year, month and date. I would like to direct them to record in a special directory on my home partition since it has a lot more room. Does anyone know if this can be done?
I already tried changing the line in /etc/asterisk/asterisk.conf
astspooldir => /var/spool/asterisk
to
astspooldir => /home/justin/asterisk-recordings (I made that directory prior to this)
Quick follow up to this. Now the option to listen to or download my recordings in my user portal doesnāt show up. Do I need to change something to tell the user panel to look in this other directory?
Actually I read what james wrote is completely wrong and I also misread it because of a newline break on the forums. The path is actually just going to be: ā/home/asterisk-recordingsā that is it. No monitor, no var, no spool.
Iām thinking about just leaving it as it is and see if it starts working. In the past I have had problems with stuff showing up in the monitor column in the user panel. Then the next day they would be there. Hoping thatās my problem.
If that file doesnāt exist then you wouldnāt see anything, like the page wouldnāt load. Just running āfindā at the root level directory doesnāt work, especially if you are in /home or some other place. Use a better command for finding files, a faster command!
dbug($recordingfile)
if (!file_exists($recordingfile)) {
$recordingfile = āā;
Assuming maybe I need to place it on line 235 below $recordingfile="; ?
Ran āamportal a dbugā and refrshed the page. It broke.
==> /var/log/asterisk/freepbx_dbug <==
2014-Aug-06 16:16:28 /var/www/html/admin/modules/cxpanel/brand.php:3
[WARNING]: file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory
==> /var/log/httpd/error_log <==
[Wed Aug 06 16:16:28 2014] [error] [client 192.168.1.106] PHP Parse error: syntax error, unexpected T_IF in /var/www/html/recordings/modules/callmonitor.module on line 235