610 lines
22 KiB
PHP
Executable File
610 lines
22 KiB
PHP
Executable File
<?php
|
||
/*********************************************************
|
||
程序说明:
|
||
功能说明:E1参数配置
|
||
|
||
调用关系:调用: header.inc
|
||
被调用:
|
||
|
||
变量说明:
|
||
|
||
返回值:无
|
||
|
||
作者:
|
||
|
||
修改注释:
|
||
NO.1
|
||
姓名:
|
||
时间:
|
||
修改说明:
|
||
*********************************************************/
|
||
require("../../inc/header.inc");
|
||
$DEBUG = 0;
|
||
?>
|
||
<script LANGUAGE="JavaScript">
|
||
function openSet(){
|
||
URL="./e1Edit.php";
|
||
var msgWindow = open(URL, 'newWin', 'toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,status=yes,width=400,height=350');
|
||
msgWindow.focus();
|
||
}
|
||
</script>
|
||
<?
|
||
$sysTypeNo_0 = "111";
|
||
if($thisOmcType==10){
|
||
$sysTypeNo_1 = "251";
|
||
}else{
|
||
$sysTypeNo_1 = "322";
|
||
}
|
||
|
||
$db_0 = "OBJ_".$sysTypeNo_0;
|
||
$db_1 = "OBJ_".$sysTypeNo_1;
|
||
|
||
$tb_0 = "param_0";
|
||
$tb_1 = "param_1";
|
||
$tb_2 = "param_99";
|
||
|
||
$temTb = ${tb_.$sNum};
|
||
$subSysNo = floor($pNum/8);
|
||
if($DEBUG)echo "<br>subSysNo=$subSysNo";
|
||
$portNo = $pNum%8;
|
||
if($DEBUG)echo "<br>portNo=$portNo";
|
||
|
||
$tgTypeArr=array(
|
||
array('num' => '0', 'remark' => 'PSTN', 'color' => '#FF0000'),
|
||
array('num' => '1', 'remark' => 'HPLMN', 'color' => '#0000FF'),
|
||
array('num' => '2', 'remark' => 'VPLMN', 'color' => '#0000FF'),
|
||
array('num' => '3', 'remark' => 'SUB', 'color' => '#0000FF'),
|
||
array('num' => '4', 'remark' => 'IP', 'color' => '#0000FF'),
|
||
array('num' => '5', 'remark' => 'Intercept', 'color' => '#0000FF')
|
||
);
|
||
$netTypeArr=array(
|
||
array('num' => '0', 'remark' => 'International', 'color' => '#FF0000'),
|
||
array('num' => '1', 'remark' => 'Inter-S', 'color' => '#0000FF'),
|
||
array('num' => '2', 'remark' => 'National ', 'color' => '#0000FF'),
|
||
array('num' => '3', 'remark' => 'Na-S', 'color' => '#0000FF'),
|
||
array('num' => '4', 'remark' => '--', 'color' => '#0000FF')
|
||
);
|
||
$cirTypeArr=array(
|
||
array('num' => '0', 'remark' => 'Clockwise', 'color' => '#FF0000'),
|
||
array('num' => '1', 'remark' => 'Anti-C', 'color' => '#0000FF'),
|
||
array('num' => '2', 'remark' => 'Odd', 'color' => '#0000FF'),
|
||
array('num' => '3', 'remark' => 'Even', 'color' => '#0000FF'),
|
||
array('num' => '4', 'remark' => '--', 'color' => '#0000FF')
|
||
);
|
||
|
||
$tgLocationArr=array(
|
||
array('num' => '0', 'remark' => 'MSC-0', 'color' => '#FF0000'),
|
||
array('num' => '1', 'remark' => 'MSC-1', 'color' => '#0000FF'),
|
||
array('num' => '2', 'remark' => 'Both', 'color' => '#FF0000'),
|
||
array('num' => '3', 'remark' => 'Spare', 'color' => '#0000FF')
|
||
);
|
||
|
||
//Attributes of TG
|
||
$oidTg = "2.1.4";
|
||
$pTg = explode(".",$oidTg);
|
||
$i = 0;
|
||
$wTg = '';
|
||
while(isset($pTg[$i]))
|
||
{
|
||
$lNum = $i+1;
|
||
if($DEBUG) echo "<br>pTg[$i]=$pTg[$i]";
|
||
$wTg = $wTg." AND level_$lNum = $pTg[$i] ";
|
||
$i++;
|
||
}
|
||
|
||
|
||
if($set || $add)
|
||
{
|
||
if($DEBUG)echo "<br>dpc=$dpc";
|
||
$dpc = omc_keep_length($dpc,0,6);
|
||
$field_1 = "00".$dpc;
|
||
if($DEBUG)echo "<br>field_1=$field_1";
|
||
|
||
$hTgType = omc_keep_length(DecBin($tgType),0,3);
|
||
|
||
if($add){
|
||
$tgFlag = 1;
|
||
}
|
||
$field_2 = $lpFlag.$atFlag.$hTgType.$voFlag.$cdrFlag.$tgFlag;
|
||
$field_2 = omc_keep_length(DecHex(BinDec($field_2)),0,2);
|
||
if($DEBUG)echo "<br>field_2=$field_2";
|
||
|
||
$field_3 = omc_keep_length(DecHex($netType),0,2);
|
||
if($DEBUG)echo "<br>field_3=$field_3";
|
||
|
||
|
||
if($DEBUG)echo "<br>cirType=$cirType";
|
||
$hCirType = omc_keep_length(DecBin($cirType),0,2);
|
||
|
||
if($DEBUG)echo "<br>tgLct=$tgLct";
|
||
$htgLct = omc_keep_length(DecBin($tgLct),0,2);
|
||
|
||
if($DEBUG)echo "<br>backFlag=$backFlag";
|
||
$field_4 = $htgLct.$mptyFlag."00".$backFlag.$hCirType;
|
||
$field_4 = omc_keep_length(DecHex(BinDec($field_4)),0,2);
|
||
if($DEBUG)echo "<br>field_4=$field_4";
|
||
|
||
if($DEBUG)echo "<br>tgNum=$tgNum";
|
||
$field_5 = omc_keep_length(DecHex($tgNum),0,2);
|
||
if($DEBUG)echo "<br>field_5=$field_5";
|
||
|
||
if($DEBUG)echo "<br>tandemFlag=$tandemFlag";
|
||
$field_6 = omc_keep_length(DecHex($tandemFlag),0,2);
|
||
if($DEBUG)echo "<br>field_6=$field_6";
|
||
|
||
if($DEBUG)echo "<br>incomingCallType=$incomingCallType";
|
||
$field_7 = omc_keep_length(DecHex($incomingCallType),0,2);
|
||
if($DEBUG)echo "<br>field_7=$field_7";
|
||
|
||
$field_10=omc_keep_length(dechex(bindec($radioChannelControl.'00'.$halfRateSpeechV1.$halfRateSpeechV3.$fullRateSpeechV1.$fullRateSpeechV2.$fullRateSpeechV3)),0,2);
|
||
|
||
$field_11=omc_keep_length(dechex($sendST_digitFlag),0,2);
|
||
|
||
$field_12=omc_keep_length(dechex($ISUP_type),0,2);
|
||
|
||
$initValue = $field_1.$field_2.$field_3.$field_4.$field_5.$field_6.$field_7.$field_10.$field_11.$field_12;
|
||
$initValue = strtoupper($initValue);
|
||
if($DEBUG)echo "<br>initValue=$initValue";
|
||
|
||
$uTgSql = " UPDATE $tb_2 set initValue = '$initValue' WHERE subSysNo = '99' AND instanceNo = '$tNum' ".$wTg;
|
||
if($DEBUG)echo "<br>uTgSql=$uTgSql";
|
||
$uTgRes = @mysqli_query($pubConn,$uTgSql);
|
||
echo mysqli_error($pubConn);
|
||
|
||
echo "<script LANGUAGE=\"JavaScript\">";
|
||
echo "window.opener.location.href='./tgConf.php?scroll_x=$scroll_x&scroll_y=$scroll_y';";
|
||
echo "\n window.close();";
|
||
echo "\n </script>";
|
||
}
|
||
|
||
$tgSql = " SELECT instanceNo,initValue,editValue,readValue FROM $tb_2 WHERE subSysNo = '99' AND instanceNo = '$tNum' ".$wTg;
|
||
if($DEBUG) echo "<br>tgSql=$tgSql";
|
||
$tgRes = @mysqli_query($pubConn,$tgSql);
|
||
$tgRow = @mysqli_fetch_array($tgRes);
|
||
echo mysqli_error($pubConn);
|
||
|
||
$instanceNo = $tgRow[instanceNo];
|
||
$initValue = $tgRow[initValue];
|
||
if($DEBUG)echo "<br>initValue=$initValue";
|
||
$dpc = substr($initValue,2,6);
|
||
if($DEBUG)echo "<br>dpc=$dpc";
|
||
|
||
$hex_4 = substr($initValue,8,2);
|
||
if($DEBUG)echo "<br>hex_4=$hex_4";
|
||
$bin_4 = omc_keep_length(DecBin(HexDec($hex_4)),0,8);
|
||
if($DEBUG)echo "<br>bin_4=$bin_4";
|
||
|
||
$tgFlag = substr($bin_4,7,1);
|
||
if($DEBUG)echo "<br>tgFlag=$tgFlag";
|
||
|
||
$cdrFlag = substr($bin_4,6,1);
|
||
if($DEBUG)echo "<br>cdrFlag=$cdrFlag";
|
||
|
||
$voFlag = substr($bin_4,5,1);
|
||
if($DEBUG)echo "<br>voFlag=$voFlag";
|
||
|
||
$tgType = BinDec(substr($bin_4,2,3));
|
||
if($DEBUG)echo "<br>tgType=$tgType";
|
||
|
||
$atFlag = substr($bin_4,1,1);
|
||
if($DEBUG)echo "<br>atFlag=$atFlag";
|
||
|
||
$lpFlag = substr($bin_4,0,1);
|
||
|
||
$netType = HexDec(substr($initValue,10,2));
|
||
if($DEBUG)echo "<br>netType=$netType";
|
||
|
||
$hex_6 = substr($initValue,12,2);
|
||
if($DEBUG)echo "<br>hex_6=$hex_6";
|
||
$bin_6 = omc_keep_length(DecBin(HexDec($hex_6)),0,8);
|
||
if($DEBUG)echo "<br>bin_6=$bin_6";
|
||
|
||
$cirType = BinDec(substr($bin_6,6,2));
|
||
if($DEBUG)echo "<br>cirType=$cirType";
|
||
|
||
$backFlag = substr($bin_6,5,1);
|
||
if($DEBUG)echo "<br>backFlag=$backFlag";
|
||
|
||
$tgLct = BinDec(substr($bin_6,0,2));
|
||
if($DEBUG)echo "<br>tgArr[$instanceNo][11]={$tgArr[$instanceNo][11]}";
|
||
|
||
$mptyFlag = BinDec(substr($bin_6,2,1));
|
||
if($DEBUG)echo "<br>mptyFlag=$mptyFlag";
|
||
|
||
$hex_8 = substr($initValue,16,2);
|
||
if($DEBUG)echo "<br>hex_8=$hex_8";
|
||
$tandemFlag = hexdec($hex_8);
|
||
if($DEBUG)echo "<br>tandemFlag=$tandemFlag";
|
||
|
||
$tgNum = HexDec(substr($initValue,14,2));
|
||
if($DEBUG)echo "<br>tgNum=$tgNum";
|
||
|
||
$incomingCallType=HexDec(substr($initValue,18,2));
|
||
if($DEBUG)echo "<br>incomingCallType=$incomingCallType";
|
||
|
||
$hex_10=substr($initValue,20,2);
|
||
if($DEBUG)echo "<br>hex_10=$hex_10";
|
||
$bin_10=omc_keep_length(DecBin(HexDec($hex_10)),0,8);
|
||
if($DEBUG)echo "<br>bin_10=$bin_10";
|
||
|
||
$radioChannelControl=substr($bin_10,0,1);
|
||
if($DEBUG)echo "<br>radioChannelControl=$radioChannelControl";
|
||
|
||
$halfRateSpeechV1=substr($bin_10,3,1);
|
||
if($DEBUG)echo "<br>halfRateSpeechV1=$halfRateSpeechV1";
|
||
|
||
$halfRateSpeechV3=substr($bin_10,4,1);
|
||
if($DEBUG)echo "<br>halfRateSpeechV3=$halfRateSpeechV3";
|
||
|
||
$fullRateSpeechV1=substr($bin_10,5,1);
|
||
if($DEBUG)echo "<br>fullRateSpeechV1=$fullRateSpeechV1";
|
||
|
||
$fullRateSpeechV2=substr($bin_10,6,1);
|
||
if($DEBUG)echo "<br>fullRateSpeechV2=$fullRateSpeechV2";
|
||
|
||
$fullRateSpeechV3=substr($bin_10,7,1);
|
||
if($DEBUG)echo "<br>fullRateSpeechV3=$fullRateSpeechV3";
|
||
|
||
|
||
$sendST_digitFlag=HexDec(substr($initValue,22,2));
|
||
if($DEBUG)echo "<br>sendST_digitFlag=$sendST_digitFlag";
|
||
|
||
$ISUP_type=HexDec(substr($initValue,24,2));
|
||
if($DEBUG)echo "<br>ISUP_type=$ISUP_type";
|
||
|
||
|
||
//$hiddenValue=substr($initValue,20,6);
|
||
//if($DEBUG)echo "<br>hiddenValue=$hiddenValue";
|
||
|
||
|
||
echo "<form method=\"POST\" name=\"confForm\" action=\"$PHP_SELF\">";
|
||
echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\" width=\"100%\">";
|
||
|
||
if($oType){
|
||
$tgFlagSql = " SELECT instanceNo,initValue,editValue,readValue FROM $tb_2 WHERE subSysNo = '99' ".$wTg." ORDER BY instanceNo ";
|
||
if($DEBUG)echo "<br>tgFlagSql=$tgFlagSql";
|
||
$tgFlagRes = @mysqli_query($pubConn,$tgFlagSql);
|
||
$tgFlagRow = @mysqli_fetch_array($tgFlagRes);
|
||
echo mysqli_error($pubConn);
|
||
do
|
||
{
|
||
$instanceNo = $tgFlagRow[instanceNo];
|
||
$initValue = $tgFlagRow[initValue];
|
||
if($DEBUG)echo "<br>initValue=$initValue";
|
||
|
||
$hex_4 = substr($initValue,8,2);
|
||
if($DEBUG)echo "<br>hex_4=$hex_4";
|
||
$bin_4 = omc_keep_length(DecBin(HexDec($hex_4)),0,8);
|
||
if($DEBUG)echo "<br>bin_4=$bin_4";
|
||
|
||
$tgFlag = $tgFlagArr[$instanceNo][0] = substr($bin_4,7,1);
|
||
//echo "<br>tgFlag=$tgFlag";
|
||
}while($tgFlagRow = @mysqli_fetch_array($tgFlagRes));
|
||
|
||
|
||
echo "<tr>";
|
||
echo "<td colspan=\"4\"><b>Add trunk group</b></td>";
|
||
echo "</tr>";
|
||
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Trunk group#</nobr></td>";
|
||
echo "<td colspan=\"2\">";
|
||
echo "<select style=\"font-family: Verdana; font-size: 8pt\" size=\"1\" name=\"tNum\" id=\"tNum\">";
|
||
for($i=0;$i<256;$i++)
|
||
{
|
||
if(!$tgFlagArr[$i][0])
|
||
echo "<option value=\"$i\">$i</option>";
|
||
}
|
||
echo "</select>";
|
||
echo "</td>";
|
||
echo "</tr>";
|
||
|
||
|
||
}else{
|
||
echo "<tr>";
|
||
echo "<td colspan=\"4\"><b>Trunk group $tNum</b></td>";
|
||
echo "</tr>";
|
||
}
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>TG flag</nobr></td>";
|
||
if($tgFlag){
|
||
echo "<td width=\"30\" colspan=\"2\"><nobr><input type=\"radio\" value=\"1\" name=\"tgFlag\" checked>Yes";
|
||
echo "<input type=\"radio\" name=\"tgFlag\" value=\"0\">No </nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\" colspan=\"2\"><nobr><input type=\"radio\" value=\"1\" name=\"tgFlag\">Yes";
|
||
echo "<input type=\"radio\" name=\"tgFlag\" value=\"0\" checked>No </nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle title=\"\"><nobr>Category</nobr></td>";
|
||
echo "<td colspan=\"2\">";
|
||
echo "<select style=\"font-family: Verdana; font-size: 8pt\" size=\"1\" name=\"tgType\" id=\"tgType\">";
|
||
for($i=0;$i<6;$i++)
|
||
{
|
||
if($tgType == $i)
|
||
echo "<option value=\"$i\" selected>{$tgTypeArr[$i][remark]}</option>";
|
||
else
|
||
echo "<option value=\"$i\">{$tgTypeArr[$i][remark]}</option>";
|
||
}
|
||
echo "</select>";
|
||
echo "</td>";
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle title=\"\"><nobr>DPC</nobr></td>";
|
||
echo "<td colspan=\"2\"><input type=\"text\" name=\"dpc\" size=\"6\" value=\"$dpc\" maxLength=\"6\"></td>";
|
||
echo "</tr>";
|
||
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>CDR</nobr></td>";
|
||
if($cdrFlag){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"cdrFlag\" checked>On ";
|
||
echo "<input type=\"radio\" name=\"cdrFlag\" value=\"0\">Off</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"cdrFlag\">On ";
|
||
echo "<input type=\"radio\" name=\"cdrFlag\" value=\"0\" checked>Off</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Announcement</nobr></td>";
|
||
if($voFlag){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"voFlag\" checked>On ";
|
||
echo "<input type=\"radio\" name=\"voFlag\" value=\"0\">Off</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"voFlag\">On ";
|
||
echo "<input type=\"radio\" name=\"voFlag\" value=\"0\" checked>Off</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Alternative TG flag</nobr></td>";
|
||
if($atFlag){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"atFlag\" checked>Yes";
|
||
echo "<input type=\"radio\" name=\"atFlag\" value=\"0\">No </nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"atFlag\">Yes";
|
||
echo "<input type=\"radio\" name=\"atFlag\" value=\"0\" checked>No </nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Alternative TG</nobr></td>";
|
||
echo "<td colspan=\"2\"><input type=\"text\" name=\"tgNum\" size=\"3\" value=\"$tgNum\" maxLength=\"3\"></td>";
|
||
echo "</tr>";
|
||
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Incoming loopback</nobr></td>";
|
||
if($lpFlag){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"lpFlag\" checked>Yes";
|
||
echo "<input type=\"radio\" name=\"lpFlag\" value=\"0\">No </nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"lpFlag\">Yes";
|
||
echo "<input type=\"radio\" name=\"lpFlag\" value=\"0\" checked>No </nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Network indicator</nobr></td>";
|
||
echo "<td colspan=\"2\">";
|
||
echo "<select style=\"font-family: Verdana; font-size: 8pt\" size=\"1\" name=\"netType\" id=\"netType\">";
|
||
for($i=0;$i<4;$i++)
|
||
{
|
||
if($netType == $i)
|
||
echo "<option value=\"$i\" selected>{$netTypeArr[$i][remark]}</option>";
|
||
else
|
||
echo "<option value=\"$i\">{$netTypeArr[$i][remark]}</option>";
|
||
}
|
||
echo "</select>";
|
||
echo "</td>";
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Circuit selection</nobr></td>";
|
||
echo "<td colspan=\"2\">";
|
||
echo "<select style=\"font-family: Verdana; font-size: 8pt\" size=\"1\" name=\"cirType\" id=\"cirType\">";
|
||
for($i=0;$i<4;$i++)
|
||
{
|
||
if($cirType == $i)
|
||
echo "<option value=\"$i\" selected>{$cirTypeArr[$i][remark]}</option>";
|
||
else
|
||
echo "<option value=\"$i\">{$cirTypeArr[$i][remark]}</option>";
|
||
}
|
||
echo "</select>";
|
||
echo "</td>";
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Collision back off</nobr></td>";
|
||
if($backFlag){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"backFlag\" checked>On ";
|
||
echo "<input type=\"radio\" name=\"backFlag\" value=\"0\">Off</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"backFlag\">On ";
|
||
echo "<input type=\"radio\" name=\"backFlag\" value=\"0\" checked>Off</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Location</nobr></td>";
|
||
echo "<td colspan=\"2\">";
|
||
echo "<select style=\"font-family: Verdana; font-size: 8pt\" size=\"1\" name=\"tgLct\" id=\"tgLct\">";
|
||
for($i=0;$i<4;$i++)
|
||
{
|
||
if($tgLct == $i)
|
||
echo "<option value=\"$i\" selected>{$tgLocationArr[$i][remark]}</option>";
|
||
else
|
||
echo "<option value=\"$i\">{$tgLocationArr[$i][remark]}</option>";
|
||
}
|
||
echo "</select>";
|
||
echo "</td>";
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>MPTY enable</nobr></td>";
|
||
if($mptyFlag){
|
||
echo "<td width=\"30\" colspan=\"2\"><nobr><input type=\"radio\" value=\"1\" name=\"mptyFlag\" checked>Yes";
|
||
echo "<input type=\"radio\" name=\"mptyFlag\" value=\"0\">No </nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\" colspan=\"2\"><nobr><input type=\"radio\" value=\"1\" name=\"mptyFlag\">Yes";
|
||
echo "<input type=\"radio\" name=\"mptyFlag\" value=\"0\" checked>No </nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Tandem restriction</nobr></td>";
|
||
if($tandemFlag){
|
||
echo "<td width=\"30\" colspan=\"2\"><nobr><input type=\"radio\" value=\"1\" name=\"tandemFlag\" checked>Yes";
|
||
echo "<input type=\"radio\" name=\"tandemFlag\" value=\"0\">No </nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\" colspan=\"2\"><nobr><input type=\"radio\" value=\"1\" name=\"tandemFlag\">Yes";
|
||
echo "<input type=\"radio\" name=\"tandemFlag\" value=\"0\" checked>No </nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Incoming call type</nobr></td>";
|
||
if($incomingCallType){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"incomingCallType\" checked>In ";
|
||
echo "<input type=\"radio\" name=\"incomingCallType\" value=\"0\">Normal</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"incomingCallType\">In ";
|
||
echo "<input type=\"radio\" name=\"incomingCallType\" value=\"0\" checked>Normal</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Radio Channel Control</nobr></td>";
|
||
|
||
if($radioChannelControl){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"radioChannelControl\" checked>Control By Operator ";
|
||
echo "<input type=\"radio\" name=\"radioChannelControl\" value=\"0\">Control By MS</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"radioChannelControl\">Control By Operator ";
|
||
echo "<input type=\"radio\" name=\"radioChannelControl\" value=\"0\" checked>Control By MS</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Full Rate speech V3</nobr></td>";
|
||
if($fullRateSpeechV3){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"fullRateSpeechV3\" checked>Enable ";
|
||
echo "<input type=\"radio\" name=\"fullRateSpeechV3\" value=\"0\">Disable</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"fullRateSpeechV3\">Enable ";
|
||
echo "<input type=\"radio\" name=\"fullRateSpeechV3\" value=\"0\" checked>Disable</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Full Rate speech V2</nobr></td>";
|
||
if($fullRateSpeechV2){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"fullRateSpeechV2\" checked>Enable ";
|
||
echo "<input type=\"radio\" name=\"fullRateSpeechV2\" value=\"0\">Disable</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"fullRateSpeechV2\">Enable ";
|
||
echo "<input type=\"radio\" name=\"fullRateSpeechV2\" value=\"0\" checked>Disable</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Full Rate speech V1</nobr></td>";
|
||
if($fullRateSpeechV1){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"fullRateSpeechV1\" checked>Enable ";
|
||
echo "<input type=\"radio\" name=\"fullRateSpeechV1\" value=\"0\">Disable</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"fullRateSpeechV1\">Enable ";
|
||
echo "<input type=\"radio\" name=\"fullRateSpeechV1\" value=\"0\" checked>Disable</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Half Rate speech V3</nobr></td>";
|
||
if($halfRateSpeechV3){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"halfRateSpeechV3\" checked>Enable ";
|
||
echo "<input type=\"radio\" name=\"halfRateSpeechV3\" value=\"0\">Disable</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"halfRateSpeechV3\">Enable ";
|
||
echo "<input type=\"radio\" name=\"halfRateSpeechV3\" value=\"0\" checked>Disable</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Half Rate speech V1</nobr></td>";
|
||
if($halfRateSpeechV1){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"halfRateSpeechV1\" checked>Enable ";
|
||
echo "<input type=\"radio\" name=\"halfRateSpeechV1\" value=\"0\">Disable</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"halfRateSpeechV1\">Enable ";
|
||
echo "<input type=\"radio\" name=\"halfRateSpeechV1\" value=\"0\" checked>Disable</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>Send ST digit flag</nobr></td>";
|
||
if($sendST_digitFlag){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"sendST_digitFlag\" checked>Enable ";
|
||
echo "<input type=\"radio\" name=\"sendST_digitFlag\" value=\"0\">Disable</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"sendST_digitFlag\">Enable ";
|
||
echo "<input type=\"radio\" name=\"sendST_digitFlag\" value=\"0\" checked>Disable</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "<tr>";
|
||
echo "<td width=\"60\" valign=middle><nobr>ISUP_type</nobr></td>";
|
||
if($ISUP_type){
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"ISUP_type\" checked>ANSI ";
|
||
echo "<input type=\"radio\" name=\"ISUP_type\" value=\"0\">ITU</nobr></td>";
|
||
}else{
|
||
echo "<td width=\"30\"><nobr><input type=\"radio\" value=\"1\" name=\"ISUP_type\">ANSI ";
|
||
echo "<input type=\"radio\" name=\"ISUP_type\" value=\"0\" checked>ITU</nobr></td>";
|
||
}
|
||
echo "</tr>";
|
||
|
||
echo "</table>";
|
||
//echo "<br><u><b>Remark:</b></u>";
|
||
echo "<br>";
|
||
if($oType){
|
||
echo "<input type=\"submit\" name=\"add\" value = \"Add\" class=\"button\">";
|
||
echo " ";
|
||
}else{
|
||
echo "<input type=\"submit\" name=\"set\" value = \"Set\" class=\"button\">";
|
||
echo " ";
|
||
echo "<input type=\"hidden\" name=\"tNum\" value =\"$tNum\">";
|
||
}
|
||
echo "<input type=\"reset\" name=\"Reset\" value =\"Reset\" class=\"button\">";
|
||
echo "<input type=\"hidden\" name=\"scroll_x\" value =\"$scroll_x\">";
|
||
echo "<input type=\"hidden\" name=\"scroll_y\" value =\"$scroll_y\">";
|
||
|
||
//echo "<input type=\"hidden\" name=\"hiddenValue\" value =\"$hiddenValue\">";
|
||
|
||
echo "</form>";
|
||
?>
|
||
<B>Remarks:</B><br><br>
|
||
TG number: Trunk group number, ranging from 0 to 255 (for new trunk group)<br><br>
|
||
TG flag: Y=TG enable, N=TG disable<br><br>
|
||
Category: PSTN=to PSTN, IP=to VMS and VPS, HPLMN=to HPLMN, VPLMN=to VPLMN, SUB=to BSC<br><br>
|
||
DPC: Destination point code of this trunk group<br><br>
|
||
CDR: CDR on or off option for this trunk group<br><br>
|
||
Announcement (Voice): Voice announcement enable or disable for this trunk group<br><br>
|
||
Alternative TG flag (ALT flag): Alternative trunk group enable or disable option<br><br>
|
||
Alternative TG (ALT TG): Alternative trunk group for backup purpose<br><br>
|
||
Loop back: Incoming call loop back enable or disable, used for MSC loop back<br><br>
|
||
Network indicator (NI): Specify network type: International, International spare (Inter-s), National, National spare (Na-s)<br><br>
|
||
Circuit selection (Circuit): Preferred circuit selection mode, include clockwise, anti-clockwise, odd and even<br><br>
|
||
Collision back off (Back off): Back off on or off when simultaneously select the same channel with the opposite side<br><br>
|
||
Location: For normal trunk group, select Both. For a trunk group to a VPS, configure this trunk group as MSC0 or MSC1<br><br>
|
||
MPTY enable (MPTY): Multi-party call flag, Yes=enable, No=disable. For all trunk groups to BSC, select Yes<br><br>
|
||
Tandem restriction:<br>
|
||
Y: Tandem disabled. Not support transit call from PSTN to PSTN via this trunk group<br>
|
||
N: Tandem enabled. Support transit call from PSTN to PSTN via this trunk group
|
||
|
||
|
||
</body>
|
||
</html>
|