diff --git a/media_trace.phtml b/media_trace.phtml
index 5ea82a9..1f134f8 100644
--- a/media_trace.phtml
+++ b/media_trace.phtml
@@ -1,35 +1,37 @@
-
+ "CDRTool_Session",
- "auth" => "CDRTool_Auth",
- "perm" => "CDRTool_Perm")
- );
+page_open(
+ array(
+ "sess" => "CDRTool_Session",
+ "auth" => "CDRTool_Auth",
+ "perm" => "CDRTool_Perm"
+ )
+);
-$title=sprintf("CDRTool media trace for session %s",$callid);
+$title = sprintf("CDRTool media trace for session %s", $callid);
include("header.phtml");
$cdr_source = $_REQUEST['cdr_source'];
if (in_array($cdr_source,$CDRTool['dataSourcesAllowed'])) {
$proxyIP = $_REQUEST['proxyIP'];
$callid = $_REQUEST['callid'];
$fromtag = $_REQUEST['fromtag'];
$totag = $_REQUEST['totag'];
-
+
require("cdr_generic.php");
-
+
$mediaTrace = new Media_trace($cdr_source);
- $mediaTrace->show($proxyIP,$callid,$fromtag,$totag);
+ $mediaTrace->show($proxyIP, $callid, $fromtag, $totag);
} else {
- printf ("Error: Invalid datasource '%s' for user '%s'" ,$cdr_source,$auth->auth["uname"]);
+ printf("Error: Invalid datasource '%s' for user '%s'", $cdr_source, $auth->auth["uname"]);
}
print "