pari: trunk r1693 - /trunk/config/digital.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Oct 16 17:02:57 CDT 2007


Author: pari
Date: Tue Oct 16 17:02:57 2007
New Revision: 1693

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1693
Log:
add fx*** channel list to zaptel.conf

Modified:
    trunk/config/digital.html

Modified: trunk/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/digital.html?view=diff&rev=1693&r1=1692&r2=1693
==============================================================================
--- trunk/config/digital.html (original)
+++ trunk/config/digital.html Tue Oct 16 17:02:57 2007
@@ -420,7 +420,8 @@
 	// then call a script which will generate zaptel.conf from it and asks the user to restart his machine
 		var uri = '';
 		var add_lines = function(){
-			var c = 0, bchanstring = '', dchanstring = '', context = 'general' ;
+			var fxx={};
+			var c = 0, bchanstring = '', dchanstring = '', context = 'general';
 			uri = build_action('delcat', c, context,"", ""); c++;
 			uri += build_action('newcat', c , context, "", ""); c++;
 			var totalchans = 0, firstpart , secondpart, tmp, tmp2 , tmp3;
@@ -438,6 +439,7 @@
 					tmp = totalchans + Number(SPANS[k]['totchans']);
 					tmp3 = String(totalchans+1) + "-" + String(tmp);
 					totalchans = tmp;
+					fxx[SPANS[k]['signalling']] = (fxx[SPANS[k]['signalling']])? fxx[SPANS[k]['signalling']] + "," + tmp3: tmp3 ;
 				}else{
 					if(SPANS[k]['totchans'] <= 24){
 						tmp = totalchans + Number(SPANS[k]['totchans']);
@@ -457,6 +459,9 @@
 				SPANS[k]['zapchanstring'] = tmp3;
 			}}}
 
+			for( var e in fxx ){ if(fxx.hasOwnProperty(e)){
+				uri += build_action('append', c, context, e, fxx[e]); c++;
+			}}
 			uri += build_action('append', c, context, 'bchan', bchanstring); c++;
 			uri += build_action('append', c, context, 'dchan', dchanstring); c++;
 			uri += build_action('append', c, context, 'loadzone', _$('loadZone').value); c++;




More information about the asterisk-gui-commits mailing list