pari: branch asterisknow r2021 - /branches/asterisknow/config/digital.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Dec 19 18:42:39 CST 2007


Author: pari
Date: Wed Dec 19 18:42:38 2007
New Revision: 2021

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2021
Log:
disable using all channels for T1 in PRI mode

Modified:
    branches/asterisknow/config/digital.html

Modified: branches/asterisknow/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/digital.html?view=diff&rev=2021&r1=2020&r2=2021
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Wed Dec 19 18:42:38 2007
@@ -170,6 +170,7 @@
 	var ijkl = function(){
 		ASTGUI.selectbox.clear(w);
 		var f = Number( SPANS[l]['totchans'] ), g=0;
+		if(f == 31){ f = 30;} // always make sure that only a max of 30 ports are available on E1 
 		for(g=1; g <=f; g++){ ASTGUI.selectbox.append(w,g,g); }
 		ASTGUI.selectbox.selectOption(w,SPANS[l]['definedchans']);
 		_$('edit_labelReserved').innerHTML = SPANS[l]['reserved_ch'];
@@ -502,9 +503,18 @@
 	if( _$('editspan_signalling').value.beginsWith('fx') ){
 		_$('editspan_switchtype').disabled =  true;
 		_$('editspan_switchtype').selectedIndex = -1;
+
+		if( _$('edit_DefinedChans').options.length == 24) {
+			_$('edit_DefinedChans').options[23].disabled = false;
+		}
 	}else{
 		_$('editspan_switchtype').disabled =  false;
-	}
+		if( _$('edit_DefinedChans').options.length == 24) { // if is a PRI singalled T1
+			_$('edit_DefinedChans').options[23].disabled = true;
+			if(_$('edit_DefinedChans').selectedIndex == 23 ){ _$('edit_DefinedChans').selectedIndex = 22 ; }
+		}
+	}
+
 	return true;
 }
 




More information about the asterisk-gui-commits mailing list