indicator = {$indicator[0]}
";
for($i = 0; $i < 4; $i++)
{
$flag = getBitValue($indicator[0],"0.$i");
if ($flag == 0)
$spc_index[$i] = $i;
else
$spc_index[$i] = $i+4;
}
for($i = 0; $i < 4; $i ++)
{
$levelWhere = getLevelWhere($spcTree_array[$spc_index[$i]][3]);
$getsql = "select initValue from $mtp3_sqlTable where $levelWhere";
$result = mysqli_query($pubConn,$getsql);
$row[$i] = mysqli_fetch_array($result);
$row[$i] = hexdec($row[$i][0]);
if($DEBUG)echo "getsql = $getsql
";
if($DEBUG)echo "spc_$i=$row[$i]
";
}
}
echo "" ;
echo "| Signaling point code | ";
echo "";
for($i=0; $i<4; $i++)
echo "| {$spcTree_array[$i][0]} : {$spcTree_array[$spc_index[$i]][1]} : $row[$i] | ";
echo "
| ";
echo "
";
{//gtt
echo "";
echo "| $strE164Number | ";
$sysId = "223_99_99";
$oidStr = "2.1.9";
$instanceNo=0;
echo "| ";
$doingOtherUlr="$PHP_SELF?doingOtherFlag=1&setEirGtt=1";
showParameter($sysId,$oidStr,2,1,$instanceNo,$doingOtherUlr);
echo " | ";
echo "";
showParameter($sysId,$oidStr,1,1);
echo " | ";
echo " |
";
}//end gtt
/*
{//license
echo "" ;
echo "| License control | ";
echo " ";
$sysIdd = '380_99_99';
$oidStrr = "2.2.4";
//showParameter($sysIdd,$oidStrr,1,1,0,'','','Update');
showParameter($sysIdd,$oidStrr,1,1,0,'','','Update');
echo " | ";
echo "
";
}//end license
*/
//==================white list numbers===================
{
//===========get the default value==
$database="OBJ_380";
$sql="select initValue from paramConf where level_1=2 and level_2=1 and level_3=2 ";
$result=@mysqli_query($pubConn,$sql);
$rows=@mysqli_fetch_array($result);
$white_list_number_default_value=$rows[initValue];
//====set every record to the default value============
/*
$updSql = "UPDATE param_99 SET initValue = '$white_list_number_default_value'
WHERE level_1=2 and level_2=1 and level_3=2
";
mysqli_query($pubConn,$updSql);
echo mysqli_error($pubConn);
*/
//===================================================
//===================get the count of white list numbers========================
$database="OBJ_380";
$sql="select instanceNo,initValue from param_99 where level_1=2 and level_2=1 and level_3=2 ";
$result=@mysqli_query($pubConn,$sql);
$rows=@mysqli_fetch_array($result);
$white_list_number_count=0;
do{
$initValue_tmp=$rows[initValue];
if(strcmp($initValue_tmp,$white_list_number_default_value)!=0)
{
$white_list_number_instanceNo[$white_list_number_count]=$rows[instanceNo];
$start_type[$white_list_number_count]=getBitValue($rows[initValue],'0.0-2.7');
$end_type[$white_list_number_count]=getBitValue($rows[initValue],'8.0-10.7');
$start_final[$white_list_number_count]=getBitValue($rows[initValue],'3.0-3.7');
$end_final[$white_list_number_count]=getBitValue($rows[initValue],'11.0-11.7');
$start_serial[$white_list_number_count]=getBitValue($rows[initValue],'4.0-6.7');
$end_serial[$white_list_number_count]=getBitValue($rows[initValue],'12.0-14.7');
$start_software[$white_list_number_count]=getBitValue($rows[initValue],'7.0-7.7');
$end_software[$white_list_number_count]=getBitValue($rows[initValue],'15.0-15.7');
$white_list_number_count++;
}
}while($rows=mysqli_fetch_array($result));
//====================get the unused instanceNo of local prefix====
$database="OBJ_380";
$sql="select instanceNo,initValue from param_99 where level_1=2 and level_2=1 and level_3=2 ";
$result=@mysqli_query($pubConn,$sql);
$rows=@mysqli_fetch_array($result);
do{
$initValue_tmp=$rows[initValue];
if(strcmp($initValue_tmp,$white_list_number_default_value)==0)
{
$unused_white_list_number_instanceNo=$rows[instanceNo];
break;
}
}while($rows=mysqli_fetch_array($result));
//=======show the white list number
echo "";
echo "| White List Number        ";
echo "+";
echo " | ";
echo "";
echo "";
echo " | ";
}
echo "
";
?>
";
?>