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):
Εάν κάθε φορά που ανοίγετε monitor recordings σε Elastix, σας δίνει το μήνυμα 404 File not found!, αυτή είναι μια απλή λύση για το πρόβλημα (δούλεψε σε elastix-2.5.0-1):
Πηγαίνετε στο:
1
|
/var/www/html/modules/monitoring
|
Επεξεργασία του index.php
Στη γραμμή 384 βάζετε τη γραμμή:
1
|
$namefile=str_replace(” “,“+”,$namefile);
|
Ώστε θα μοιάζει:
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>”);
}
...
|
αποθήκευση.