pari: branch asterisknow r2015 - /branches/asterisknow/config/trunks.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Dec 19 16:11:41 CST 2007
Author: pari
Date: Wed Dec 19 16:11:41 2007
New Revision: 2015
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2015
Log:
Service Providers page now shows any BRI trunks created
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=2015&r1=2014&r2=2015
==============================================================================
--- branches/asterisknow/config/trunks.html (original)
+++ branches/asterisknow/config/trunks.html Wed Dec 19 16:11:41 2007
@@ -43,6 +43,28 @@
var PORTS_toCALIBRATE = {} ;
var AUDIO_LEVELS = [];
var PRITRUNKS = [];
+var MISDNTRUNKS = [];
+
+function load_mISDNtrunks(){
+ var parseMisdnConf = function(n){
+ try{
+ if( n == "ERROR: CONFIG FILE NOT FOUND"){ } // misdn.conf not found
+ for( var l in n ){
+ if( n.hasOwnProperty(l) && l.beginsWith('trunk_m') && n[l]['hasmisdn'] =='yes' ){
+ var y = ( n[l]['trunkname'] ) ? n[l]['trunkname'] : l ;
+ MISDNTRUNKS.push( y );
+ }
+ };
+ }catch(err){
+
+ }finally{
+ parent.astmanEngine.config2list("extensions.conf", _$('hiddenglobals'), new Array, globalvars);
+ }
+ };
+ config2json("misdn.conf", 1, parseMisdnConf);
+}
+
+
function add_didcontext(trunk){
var didcontext = asterisk_guiTDPrefix + trunk ;
@@ -104,7 +126,7 @@
providercallbacks.loaded = function() {
var p = _$('provider');
- parent.astmanEngine.config2list("extensions.conf", _$('hiddenglobals'), new Array, globalvars);
+ load_mISDNtrunks();
}
callbacks.format = function(t) {
@@ -733,7 +755,28 @@
});
- if( _devices.options.length == 0 && PRITRUNKS.length == 0){
+ MISDNTRUNKS.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 = "BRI";
+
+ var newCell3 = newRow.insertCell(3);
+ newCell3 .style.width = 90;
+ newCell3.innerHTML = '';
+
+ });
+
+ if( _devices.options.length == 0 && PRITRUNKS.length == 0 && MISDNTRUNKS.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