test
This commit is contained in:
parent
1e6f7fc090
commit
1d986f1b85
|
|
@ -615,6 +615,17 @@ $text['label-network_addr']['uk'] = "";
|
|||
$text['label-network_addr']['de-at'] = "Netzwerk Adresse";
|
||||
$text['label-network_addr']['he'] = "כתובת רשת";
|
||||
|
||||
$text['label-mos_score']['en-us'] = "MOS Score";
|
||||
$text['label-mos_score']['es-cl'] = "";
|
||||
$text['label-mos_score']['pt-pt'] = "";
|
||||
$text['label-mos_score']['fr-fr'] = "";
|
||||
$text['label-mos_score']['pt-br'] = "";
|
||||
$text['label-mos_score']['pl'] = "";
|
||||
$text['label-mos_score']['sv-se'] = "";
|
||||
$text['label-mos_score']['uk'] = "";
|
||||
$text['label-mos_score']['de-at'] = "";
|
||||
$text['label-mos_score']['he'] = "";
|
||||
|
||||
$text['label-name']['en-us'] = "Name";
|
||||
$text['label-name']['es-cl'] = "Nombre";
|
||||
$text['label-name']['pt-pt'] = "Nome";
|
||||
|
|
|
|||
|
|
@ -74,8 +74,36 @@ else {
|
|||
$bridge_uuid = check_str($_REQUEST["network_addr"]);
|
||||
$order_by = check_str($_REQUEST["order_by"]);
|
||||
$order = check_str($_REQUEST["order"]);
|
||||
if (strlen(check_str($_REQUEST["mos_comparison"])) > 0) {
|
||||
switch(check_str($_REQUEST["mos_comparison"])) {
|
||||
case 'less':
|
||||
$mos_comparison = "<";
|
||||
break;
|
||||
case 'greater':
|
||||
$mos_comparison = ">";
|
||||
break;
|
||||
case 'lessorequal':
|
||||
$mos_comparison = "<=";
|
||||
break;
|
||||
case 'greaterorequal':
|
||||
$mos_comparison = ">=";
|
||||
break;
|
||||
case 'equal':
|
||||
$mos_comparison = "<";
|
||||
break;
|
||||
case 'notequal':
|
||||
$mos_comparison = "<>";
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$mos_comparison = '';
|
||||
}
|
||||
//$mos_comparison = check_str($_REQUEST["mos_comparison"]);
|
||||
$mos_score = check_str($_REQUEST["mos_score"]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//build the sql where string
|
||||
if ($missed == true) {
|
||||
$sql_where_ands[] = "billsec = '0'";
|
||||
|
|
@ -126,6 +154,7 @@ else {
|
|||
if (strlen($write_codec) > 0) { $sql_where_ands[] = "write_codec like '%".$write_codec."%'"; }
|
||||
if (strlen($remote_media_ip) > 0) { $sql_where_ands[] = "remote_media_ip like '%".$remote_media_ip."%'"; }
|
||||
if (strlen($network_addr) > 0) { $sql_where_ands[] = "network_addr like '%".$network_addr."%'"; }
|
||||
if (strlen($mos_comparison) > 0 && strlen($mos_score) > 0 ) { $sql_where_ands[] = "rtp_audio_in_mos " . $mos_comparison . " ".$mos_score.""; }
|
||||
|
||||
//if not admin or superadmin, only show own calls
|
||||
if (!permission_exists('xml_cdr_domain')) {
|
||||
|
|
@ -201,6 +230,9 @@ else {
|
|||
$param .= "&remote_media_ip=".$remote_media_ip;
|
||||
$param .= "&network_addr=".$network_addr;
|
||||
$param .= "&bridge_uuid=".$bridge_uuid;
|
||||
$param .= "&mos_comparison=".$mos_comparison;
|
||||
$param .= "&mos_score=".$mos_score;
|
||||
|
||||
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
|
||||
$param .= "&showall=" . $_GET['showall'];
|
||||
}
|
||||
|
|
@ -297,6 +329,7 @@ else {
|
|||
else {
|
||||
$sql .= " limit ".$rows_per_page." offset ".$offset." ";
|
||||
}
|
||||
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ echo " if ($('#caller_id_number').is(':visible')) { $('#caller_id_number').foc
|
|||
echo " }";
|
||||
echo " }";
|
||||
echo "</script>";
|
||||
|
||||
|
||||
echo "<form method='post' action='xml_cdr.php'>\n";
|
||||
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
|
|
@ -203,6 +203,20 @@ echo " <td class='vncell'>".$text['label-network_addr']."</td>";
|
|||
echo " <td class='vtable'><input type='text' class='formfld' name='network_addr' value='$network_addr'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td class='vncell'>".$text['label-mos_score']."</td>";
|
||||
echo " <td class='vtable'>";
|
||||
echo " <select name='mos_comparison' class='formfld'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
echo " <option value='less'><</option>\n";
|
||||
echo " <option value='greater'>></option>\n";
|
||||
echo " <option value='lessorequal'><=</option>\n";
|
||||
echo " <option value='greaterorequal'>>=</option>\n";
|
||||
echo " <option value='equal'>=</option>\n";
|
||||
echo " <option value='notequal'><></option>\n";
|
||||
echo " </select>\n";
|
||||
echo " <input type='text' class='formfld' name='mos_score' value='$mos_score'></td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td colspan='2' align='right'><br><input type='submit' name='submit' class='btn' value='".$text['button-search']."'></td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
|
|
|||
|
|
@ -43,6 +43,11 @@ else {
|
|||
require_once "resources/header.php";
|
||||
|
||||
//page title and description
|
||||
|
||||
echo "<!-- // javascript calendar and color picker (source: http://rightjs.org) -->";
|
||||
echo " <script language=\"JavaScript\" type='text/javascript' src='/resources/rightjs/right.js'></script>";
|
||||
echo " <script language=\"JavaScript\" type='text/javascript' src='/resources/rightjs/right-calendar-src.js'></script>";
|
||||
echo " <script language=\"JavaScript\" type='text/javascript' src='/resources/rightjs/right-colorpicker-src.js'></script>";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' align='left' valign='top' nowrap='nowrap'><b>".$text['label-call-statistics']."</b></td>\n";
|
||||
|
|
@ -65,6 +70,26 @@ else {
|
|||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
#CJB
|
||||
/* echo "<form method='get' action=''>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncell' valign='top' nowrap='nowrap' width='30%'>\n";
|
||||
echo " ".$text['label-start_range']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' width='50%' align='left' style='white-space: nowrap;'>\n";
|
||||
echo " <input type='text' class='formfld' style='min-width: 115px; width: 115px;' name='start_stamp_begin' data-calendar=\"{format: '%Y-%m-%d %H:%M', listYears: true, hideOnPick: false, fxName: null, showButtons: true}\" placeholder='".$text['label-from']."' value='$start_stamp_begin'>\n";
|
||||
echo " <input type='text' class='formfld' style='min-width: 115px; width: 115px;' name='start_stamp_end' data-calendar=\"{format: '%Y-%m-%d %H:%M', listYears: true, hideOnPick: false, fxName: null, showButtons: true}\" placeholder='".$text['label-to']."' value='$start_stamp_end'>\n";
|
||||
echo " </td>\n";
|
||||
echo "<td style='padding-top: 8px;' align='right'>";
|
||||
echo "<input type='button' class='btn' value='".$text['button-reset']."' onclick=\"document.location.href='xml_cdr.php';\">\n";
|
||||
echo "<input type='submit' class='btn' name='submit' value='".$text['button-search']."'>\n";
|
||||
echo "</td>";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</form>";
|
||||
*/
|
||||
#CJB
|
||||
|
||||
//set the style
|
||||
$c = 0;
|
||||
|
|
|
|||
|
|
@ -141,9 +141,15 @@ else {
|
|||
//$call_seconds_1st_hour = get_call_seconds_between(3600, 0);
|
||||
//if (strlen($call_seconds_1st_hour) == 0) { $call_seconds_1st_hour = 0; }
|
||||
|
||||
//round down to the nearest hour
|
||||
$time = time() - time() % 3600;
|
||||
|
||||
// if (strlen(check_str($_GET['start_stamp_begin'])) > 0 && strlen(check_str($_GET['start_stamp_end'])) > 0 ) {
|
||||
// $start_date = new DateTime(check_str($_GET['start_stamp_begin']));
|
||||
// $end_date = new DateTime(check_str($_GET['start_stamp_end']));
|
||||
// $time = $start_date->getTimestamp();
|
||||
// } else {
|
||||
//round down to the nearest hour
|
||||
$time = time() - time() % 3600;
|
||||
// }
|
||||
|
||||
//call info hour by hour
|
||||
for ($i = 0; $i <= 23; $i++) {
|
||||
$start_epoch = $time - 3600*$i;
|
||||
|
|
|
|||
Loading…
Reference in New Issue