pari: trunk r1656 - /trunk/config/digital.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Oct 8 17:31:36 CDT 2007


Author: pari
Date: Mon Oct  8 17:31:36 2007
New Revision: 1656

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1656
Log:
some more digital.html (2)

Modified:
    trunk/config/digital.html

Modified: trunk/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/digital.html?view=diff&rev=1656&r1=1655&r2=1656
==============================================================================
--- trunk/config/digital.html (original)
+++ trunk/config/digital.html Mon Oct  8 17:31:36 2007
@@ -73,6 +73,8 @@
 	ASTGUI.selectbox.selectOption( _$('editspan_fac') , SPANS[l]['fac'] );
 	_$('editspan_channels').innerHTML = String(SPANS[l]['usedchans']) + "/" + String(SPANS[l]['totchans']);
 	//_$('editspan_signalling')
+	// _$('editspan_switchtype')
+	// _$('editspan_loadzone')
 
 	_$('edit_span').style.display = "";
 	_$('bg_transparent').style.display = "";
@@ -237,11 +239,20 @@
 			firstpart = "span";
 			secondpart = k;
 			uri += build_action('append', c, context, firstpart, secondpart ); c++;
-			tmp = totalchans + Number(SPANS[k]['totchans']);
 			tmp2 = (totalchans)? ",":"";
-			dchanstring += tmp2 + String(tmp) ;
-			bchanstring += tmp2 + String(totalchans+1) + "-" + String(tmp-1);
-			totalchans = tmp;
+
+			if(SPANS[k]['totchans'] <= 24){
+				tmp = totalchans + Number(SPANS[k]['totchans']);
+				dchanstring += tmp2 + String(tmp) ;
+				bchanstring += tmp2 + String(totalchans+1) + "-" + String(tmp-1);
+				totalchans = tmp;
+			}else{ // take first 15 as b-channels, then a d channel and then take the next 15 as bchannels
+				tmp = totalchans + Number(15);
+				bchanstring += tmp2 + String(totalchans+1) + "-" + String(tmp);
+				dchanstring += tmp2 + String(totalchans+16) ;
+				bchanstring += "," + String(tmp+2) + "-" + String(tmp+16);
+				totalchans = tmp + Number(16);
+			}
 		}}
 	};
 	add_lines();
@@ -252,7 +263,7 @@
 	uri += build_action('append', c, context, 'defaultzone', 'us'); c++;
 
 	makerequest('u', "applyzap.conf", uri , function(t) {
-
+		
 	});
 
 }
@@ -323,6 +334,38 @@
 			</select>
 		</TD>
 	</TR>
+	<TR>	<TD align="right">Switch Type</TD>
+		<TD>	<select id="editspan_switchtype">
+				<option value="national">National ISDN 2 (default)</option>
+				<option value="dms100">Nortel DMS100</option>
+				<option value="4ess">AT&T 4ESS</option>
+				<option value="5ess">Lucent 5ESS</option>
+				<option value="euroisdn">EuroISDN</option>
+				<option value="ni1">Old National ISDN 1</option>
+				<option value="qsig">Q.SIG</option>
+			</select>
+		</TD>
+	</TR>
+
+	<TR>	<TD align="right">LoadZone</TD>
+		<TD>	<select id="editspan_loadzone">
+				<option value="us">us</option>
+				<option value="us-old">us-old</option>
+				<option value="gr">gr</option>
+				<option value="it">it</option>
+				<option value="fr">fr</option>
+				<option value="de">de</option>
+				<option value="uk">uk</option>
+				<option value="fi">fi</option>
+				<option value="jp">jp</option>
+				<option value="sp">sp</option>
+				<option value="hu">hu</option>
+				<option value="lt">lt</option>
+				<option value="pl">pl</option>
+				<option value="pl">pl</option>
+			</select>
+		</TD>
+	</TR>
 	<TR>	<TD colspan=2 align=center height=50 valign=middle>  
 			<input type="button" id="save_a" value="Update" onclick="updateSpanInfo();">&nbsp;&nbsp;
 			<input type="button" id="cancel_a" value="Cancel" onclick="canelSpanInfo();">




More information about the asterisk-gui-commits mailing list