bkruse: branch asterisknow r1747 - /branches/asterisknow/config/misdn.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Oct 25 15:56:02 CDT 2007


Author: bkruse
Date: Thu Oct 25 15:56:01 2007
New Revision: 1747

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1747
Log:
more changes for misdn

Modified:
    branches/asterisknow/config/misdn.html

Modified: branches/asterisknow/config/misdn.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/misdn.html?view=diff&rev=1747&r1=1746&r2=1747
==============================================================================
--- branches/asterisknow/config/misdn.html (original)
+++ branches/asterisknow/config/misdn.html Thu Oct 25 15:56:01 2007
@@ -304,7 +304,6 @@
 							for(var i in k){ if(k.hasOwnProperty(i)){
 								if(!SPANS[k[i]]) { SPANS[k[i]] = {}; }
 								SPANS[k[i]]['portset'] = parse_fields[x];
-								console.log("setting portset crap"+SPANS[k[i]]['portset']);
 							}}
 						}
 					}
@@ -313,7 +312,7 @@
 			}}
 			loadConfigFiles.checkHardwareChanges();
 		};
-		config2json("misdn-init.conf", 0, digitalparse);
+		config2json("misdn-init.conf", 1, digitalparse);
 	},
 
 	checkHardwareChanges: function(){
@@ -422,11 +421,19 @@
 			var c = 0, context = 'general' ;
 			uri = build_action('delcat', c, context,"", ""); c++;
 			uri += build_action('newcat', c , context, "", ""); c++;
-			var totalchans = 0, firstpart , secondpart, tmp, tmp2 , tmp3;
-			for( var k in SPANS ){ if( SPANS.hasOwnProperty(k) ){{
-				uri += build_action('append', c, context, SPANS[k]['portset'], k); c++;
-			}}}
-
+			var type = new Array(); 
+			var parse_fields = ['te_ptp', 'te_ptmp', 'te_capi_ptp', 'te_capi_ptmp', 'nt_ptp', 'nt_ptmp']; 
+			/* here are the field names, now if SPANS[1]['portset'] is te_ptp, then we want
+			to have at LEAST te_ptp=1 now if spans2 is te_ptp, then we cannot do:
+			te_ptp=1
+			te_ptp=2
+			we have to do
+			te_ptp=1,2
+			*/
+			for( var k in SPANS ){ if( SPANS.hasOwnProperty(k) ){
+				type.push(SPANS[k]['portset']);
+			}}
+			uri += build_action('append', c, context, SPANS[k]['portset'], k); c++;
 			for(var i=1; i<=CARDS; i++) {uri += build_action('append', c, context, "card", i+",0x4"); c++;}
 			uri += build_action('append', c, context, 'bridging', _$('bridging').value); c++;
 			uri += build_action('append', c, context, 'echocancel', _$('echocancel').value); c++;




More information about the asterisk-gui-commits mailing list