If each time you try to open monitor recordings on Elastix you receive the message 404 File not found!, this is a simple solution for the issue (worked for elastix-2.5.0-1):
Go to
1 |
/var/www/html/modules/monitoring |
and edit index.php
On line 384 insert the line:
1 |
$namefile=str_replace(" ","+",$namefile); |
so it will look like that:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
... if (is_null($record) || !preg_match('/^[[:digit:]]+\.[[:digit:]]+$/', $record)) { // Missing or invalid uniqueid Header('HTTP/1.1 404 Not Found'); die("<b>404 "._tr("no_file")." </b>"); } // Check record is valid and points to an actual file $namefile=str_replace(" ","+",$namefile); $filebyUid = $pMonitoring->getAudioByUniqueId($record, $namefile); if (is_null($filebyUid) || count($filebyUid) <= 0) { // Uniqueid does not point to a record with specified file Header('HTTP/1.1 404 Not Found'); die("<b>404 "._tr("no_file")." </b>"); } ... |
save it.