[Added sip_usage file Tijmen de Mes **20120927103920 Ignore-this: 2db21499cd433cf64aa9d348664bba6f ] addfile ./sip_usage.phtml hunk ./sip_usage.phtml 1 + "CDRTool_Session", + "auth" => "CDRTool_Auth", + "perm" => "CDRTool_Perm")); + +$loginname=$auth->auth["uname"]; + +$perm->check("statistics"); + +require("sip_statistics.php"); +$title = "Platform status/Usage"; + +if (is_readable("/etc/cdrtool/local/header.phtml")) { + include("/etc/cdrtool/local/header.phtml"); +} else { + include("header.phtml"); +} + + +$layout = new pageLayoutLocal(); +$layout->showTopMenu($title); + + +$SIPstatistics=new SIPstatistics(); + +//global $CDRTool; + +if (strlen($CDRTool['filter']['domain'])) { + $allowedDomains=explode(' ',$CDRTool['filter']['domain']); +} + + //$layout= $this->newPageLayout(); + //showTopMenu($title); +?> + +

Platform usage

+ + + +have_perm('admin')) { ?> + + + + + +domains)); +} else { + $domains=array_keys($SIPstatistics->domains); +} + +foreach ($domains as $key) { + if ($key == 'total') continue; + printf (" + + + + ", + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key, + $key + ); +} + +?> + +
Total SIP accounts
+
total_users Traffic Graph +
+
Total RTP media sessions
+
total_sessions Traffic Graph +
+
Total relayed RTP traffic
+
total_traffic Traffic Graph +
+
SIP accounts on %s
+
%s_users Traffic Graph +
+
RTP media sessions for %s
+
%s_sessions Traffic Graph +
+
Relayed RTP traffic for %s
+
%s_traffic Traffic Graph +
+
+ + +