pari: branch asterisknow r2013 - /branches/asterisknow/config/trunks.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Dec 19 15:48:49 CST 2007


Author: pari
Date: Wed Dec 19 15:48:48 2007
New Revision: 2013

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2013
Log:
Show list of PRI trunks in service providers

Modified:
    branches/asterisknow/config/trunks.html

Modified: branches/asterisknow/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/trunks.html?view=diff&rev=2013&r1=2012&r2=2013
==============================================================================
--- branches/asterisknow/config/trunks.html (original)
+++ branches/asterisknow/config/trunks.html Wed Dec 19 15:48:48 2007
@@ -42,6 +42,7 @@
 
 var PORTS_toCALIBRATE = {} ;
 var AUDIO_LEVELS = [];
+var PRITRUNKS = [];
 
 function add_didcontext(trunk){
 	var didcontext = asterisk_guiTDPrefix + trunk ;
@@ -118,6 +119,13 @@
 		}
 	}
 
+	if(t.name.beginsWith('span_') && t.fieldbyname['signalling'].beginsWith('pri') ){
+		PRITRUNKS.push(t.name);
+		return null;
+	}
+
+	if( t.name.beginsWith('span_') ){ return null; }
+
 	if( InArray(dids_array, t.name) ){ 
 		// 
 		if(t.fieldbyname['zapchan']){ 
@@ -126,6 +134,7 @@
 		} 
 		return t.fieldbyname['trunkname']; 
 	}
+
 	return null;
 }
 
@@ -702,8 +711,29 @@
 		_spt.deleteRow(i);
 	}
 	var _devices = _$('devices');
- 
-	if( _devices.length == "0" ){
+
+	PRITRUNKS.each(function(item){	// item
+		var sno = _spt.rows.length + 1;
+		var newRow = _spt.insertRow(-1);
+
+		var newCell0 = newRow.insertCell(0);
+		newCell0 .innerHTML = sno ;
+		newCell0 .style.width = 40;
+
+		var newCell1 = newRow.insertCell(1);
+		newCell1 .innerHTML = item ;
+		newCell1 .style.width = 200;
+	
+		var newCell2 = newRow.insertCell(2);
+		newCell2.innerHTML =  "PRI";
+
+		var newCell3 = newRow.insertCell(3);
+		newCell3 .style.width = 90;
+		newCell3.innerHTML =  '';
+
+	});
+
+	if( _devices.options.length == 0 && PRITRUNKS.length == 0){
 		_$('table_one').style.display="none";
 		var newRow = _spt.insertRow(-1);
 		var newCell0 = newRow.insertCell(0);




More information about the asterisk-gui-commits mailing list