在 Elastix 2.0 會出現 404 file not found
請編輯 /var/www/html/modules/monitoring/index.php找到這幾行
更新 2.30版
if (!file_exists($path) || !is_file($path)) {
Header('HTTP/1.1 404 Not Found');
die("404 4 "._tr("no_file")." ");
}
替換成
if (!file_exists($path) || !is_file($path)) {
// modified by alang
// check the format mp3
$mp3file = str_replace(".wav",".mp3",$file);
$mp3path = $path_record.$mp3file;
if (!is_file($mp3path)) {
die("404 40 ".$arrLang["no_file"]." ");
}else{
$file = $mp3file;
$path = $mp3path;
}
}
PS.如果在Elastix / monitoring 顯示 404 40
則要手動修改/var/www/html/modules/monitoring/configs/default.conf.php
#$arrConfModule['records_dir'] = '/var/spool/asterisk/monitor/';
改為你所指定的錄音檔存放路徑.
沒有留言:
張貼留言