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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Oct 25 13:10:22 CDT 2007


Author: bkruse
Date: Thu Oct 25 13:10:22 2007
New Revision: 1736

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1736
Log:
I am seriously owning this b410p stuff
that is all.

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=1736&r1=1735&r2=1736
==============================================================================
--- branches/asterisknow/config/misdn.html (original)
+++ branches/asterisknow/config/misdn.html Thu Oct 25 13:10:22 2007
@@ -237,7 +237,6 @@
 
 		var makeSymLink = function() {
 			parent.astmanEngine.run_tool("/bin/touch /etc/asterisk/misdn-init.conf", function(t) { // touch misdn-init.conf so we can write to it
-				parent.astmanEngine.run_tool(asterisk_guiMisdn + " scan", function(t) { return true});
 				var h= 0;
 				var uri = build_action('newcat', h, 'general', '', '', ''); h++;
 				uri += build_action('append', h, 'general', '#include "../misdn-init.conf" ;', '', '');
@@ -245,10 +244,11 @@
 			})
 		}
 		var digitalparse = function(n){
+		parent.astmanEngine.run_tool(asterisk_guiMisdn + " scan", function(t) { return true});
 		if( n == "ERROR: CONFIG FILE NOT FOUND"){
 			gui_feedback("First time running mISDN scan detected!");
+			makeSymLink();
 		}
-			makeSymLink();
 		//	loadConfigFile.loadMisdnConf();
 			/* We are setting up mISDN for the first time. */
 			var CARDS = 0;
@@ -295,14 +295,18 @@
 						gui_feedback("No Cards/Spans found !!");
 						return false;
 					}
-					if(n[l]['te_ptmp'] && n[l]['te_ptmp'] != "") {
-						var spans = n[l]['te_ptmp'].split(",")
-						tot_spans = spans.length
-						;
-					}
-					for(var z = 1; z <= spans.length; z++) {
+					for(var z = 1; z <= CARDS; z++) {
 						SPANS[z] = {};
 						/* set spans from read files here. */
+					}
+					var parse_fields = ['te_ptp', 'te_ptmp', 'te_capi_ptp', 'te_capi_ptmp', 'nt_ptp', 'nt_ptmp']; 
+					for(var x=0; x < parse_fields.length; x++) {
+						if(n[l][parse_fields[x]]) {
+							var k = n[l][parse_fields[x]].split(",")
+							for(var i in k) {
+								SPANS[i]['portset'] = parse_fields[x];
+							}
+						}
 					}
 					continue;
 				}
@@ -523,7 +527,7 @@
 			<option value="te_ptp">TE-Mode, PTP</option>
 			<option value="te_ptmp">TE-Mode, PTMP</option>
 			<option value="te_capi_ptp">TE-Mode(Capi), PTP</option>
-			<option value="te_capi_pmtp">TE-Mode(Capi), PTMP</option>
+			<option value="te_capi_ptmp">TE-Mode(Capi), PTMP</option>
 			<option value="nt_ptp">NT-Mode, PTP</option>
 			<option value="nt_ptmp">NT-Mode, PMTP</option>
 			</select>




More information about the asterisk-gui-commits mailing list