Found the file. It is located at:
/var/www/html/recordings/modules/callmonitor.module
I placed the code on line 233, this is what it looks like
$monitor_base = $amp_conf['MIXMON_DIR'] ? $amp_conf['MIXMON_DIR'] : $amp_conf['ASTSPOOLDIR'] . '/monitor'; $recordingfile = "$monitor_base/$fyear/$fmonth/$fday/" . $value['recordingfile'];
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