Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024

Original comment by [email protected] on 9 Apr 2014 at 7:02

  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

from asterisk-cdr-viewer.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
[deleted comment]

from asterisk-cdr-viewer.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 27, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.