freepbx CDR report - auto refresh

Discussion in 'General' started by ericng, May 30, 2009.

  1. ericng

    Joined:
    May 14, 2008
    Messages:
    78
    Likes Received:
    0
    We like the freepbx CDR report display as it give detailed information on the incoming/outgoing calls. However, it needs to be manually refresh in order to get the latest display. Has anyone done a auto-refresh with this report as I intend to show it on a screen?

    If someone has come across any other realtime display of call log programs, hope can provide some lights here.


    Thanks


    Eric
     
  2. alang

    Joined:
    Mar 19, 2008
    Messages:
    47
    Likes Received:
    0
    If you like to make the page /admin/reports.php to auto-refresh, it's simple.

    Edit the file /var/www/html/admin/views/freepbx.php, insert line 63-68 as the following.

    Code:
    57 <?php } ?>
    58   <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
    59   
    62   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    63   <?php
    64   if (($_SERVER['PHP_SELF'] == '/admin/reports.php'))
    65   {
    66      echo "<meta http-equiv=\"refresh\" content=\"5\" >";
    67   }
    68   ?>
    69 <?php
    70   // check if in the amp configuration the user has set that
    71   // he wants to use an alternative style-sheet.
    72   // on Xorcom's TS1, it's used when the system is in rescue mode.
    73   if (isset($amp_conf["ALTERNATIVE_CSS"]))
    74   {
    75     if (($amp_conf["ALTERNATIVE_CSS"] == "1") ||
    76       ($amp_conf["ALTERNATIVE_CSS"] == "yes") ||
    77       ($amp_conf["ALTERNATIVE_CSS"] == "true"))
    78       echo "\t<link href=\"common/mainstyle-alternative.css\" rel=\"stylesheet\" type=\"t        ext/css\" />";
    79   }
    
     

Share This Page