Comments (6)
Hi,
asterisk-cr-viewer currently support only one root directory as recording
location.
if you use /var/spool/asterisk/monitor/Year/mounth/Day/uniq.wav try to use code
by Dein аdmin[AT]sаdmin.ru. You can found it in include/function.inc
Original comment by [email protected]
on 23 Mar 2014 at 7:09
from asterisk-cdr-viewer.
Hello, thanks for answer. I open Dein Code. But i now see only "SOME ERROR,
dirlist is empty" error message. :(
if (!function_exists('get_dir_list')) {
function get_dir_list($dir){
global $dirlist;
$dirlist=array();
if (!function_exists('find_dirs_recursive')) {
function find_dirs_recursive($sdir) {
global $dirlist;
foreach(glob($sdir) as $filename) {
echo $filename;
if(is_dir($filename)) {
$dirlist[]=$filename;
find_dirs_recursive($filename."/*");
};//endif
};//endforeach
}; //endfunc
};//endif exists
find_dirs_recursive($dir."/*");
};//endfunc
}
//*************** Main function ************
if (!function_exists('find_record_by_uniqid')) {
function find_record_by_uniqid($path,$uniqid){
//echo $path;
global $dirlist;
if (sizeof($dirlist) == 0 ){
get_dir_list($path);
};//endif size==0
if (sizeof($dirlist) == 0 ) {return "SOME ERROR, dirlist is empty";};
$found = "NOTHING FOUND";
foreach ($dirlist as $curdir) {
$res=glob($curdir."/*".$uniqid.".*");
if ($res) {$found=$res[0]; break;};
};//endforeach
$res=str_replace($path,"",$found); //cut $path from full filename
return $res; //to be compartable with func. formatFiles($row)
};//endfunc
}
$recorded_file = find_record_by_uniqid($system_monitor_dir,$row['uniqueid']);
Original comment by [email protected]
on 24 Mar 2014 at 11:58
from asterisk-cdr-viewer.
Unfortunately I use only uniqid based file names. I have no system to check /
reproduce this issue.
Original comment by [email protected]
on 6 Apr 2014 at 5:26
from asterisk-cdr-viewer.
Original comment by [email protected]
on 9 Apr 2014 at 7:02
- Added labels: Priority-Low
- Removed labels: Priority-Medium
from asterisk-cdr-viewer.
[deleted comment]
from asterisk-cdr-viewer.
I have got the sane error only if apache (httpd) have no permissions to read
$system_monitor_dir, check it please.
By the way, try to disable SELinux if enabled
Original comment by [email protected]
on 29 Apr 2014 at 11:55
from asterisk-cdr-viewer.
Related Issues (20)
- Time interval does not affects HOT 2
- Unknown column 'calldate' in 'where clause' ) HOT 2
- Using with Postgres HOT 2
- Development HOT 1
- Use Mysql for CallRates data? HOT 1
- New rate_type 30s+s and 30s+6s HOT 5
- Quick date ranges HOT 2
- CEL Records and Specifying Database
- Error in index.php HOT 2
- Error in your SQL syntax when Source and Destination Channel is used. HOT 2
- Local Transfer \ Question
- Playing files via the web interface
- Support for Cyrillic (Unicode) HOT 1
- PHP Notice Undifined Index HOT 4
- download.php critical secure bug ! HOT 1
- HTTP Auth required, please configure WEB server ! HOT 2
- Division by zero in index.php HOT 2
- Username matching
- Class 'PDO' not found HOT 1
- PHP Notice: Undefined index: ............
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asterisk-cdr-viewer.