freepbx CDR report - auto refresh

ericng

Joined
May 14, 2008
Messages
78
Likes
0
Points
0
#1
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
 

alang

Joined
Mar 19, 2008
Messages
47
Likes
0
Points
0
#2
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   }
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,565
Latest member
omarmenichetti
Top