pari: branch asterisknow r1905 - /branches/asterisknow/config/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Dec 5 12:55:15 CST 2007


Author: pari
Date: Wed Dec  5 12:55:14 2007
New Revision: 1905

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1905
Log:
make digital.html also write the analog ports into zaptel.conf, before zapscan used to do this.

Modified:
    branches/asterisknow/config/cfgbasic.html
    branches/asterisknow/config/digital.html

Modified: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=1905&r1=1904&r2=1905
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Wed Dec  5 12:55:14 2007
@@ -28,6 +28,9 @@
 <script>
 var FXO_PORTS_DETECTED = []; // so that we donot have to parse ztscan output each time where we want this list
 var FXS_PORTS_DETECTED = []; // so that we donot have to parse ztscan output each time where we want this list
+// note that the above FXO_PORTS_DETECTED, FXS_PORTS_DETECTED are the actual analog FXS, FXO ports
+// and NOT the channels on a digital span with FXS or FXO signalling
+
 var eventeater = new Object;
 var loggedon = -1;
 var accordion;

Modified: branches/asterisknow/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/digital.html?view=diff&rev=1905&r1=1904&r2=1905
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Wed Dec  5 12:55:14 2007
@@ -604,8 +604,15 @@
 			if(dchanstring.strip()){
 				uri += build_action('append', c, context, 'dchan', dchanstring); c++;
 			}
+
+			// write back any actual analog ports
+			uri += build_action('append', c, context, 'fxoks', parent.FXO_PORTS_DETECTED.join(',')); c++;
+			uri += build_action('append', c, context, 'fxsks', parent.FXS_PORTS_DETECTED.join(',')); c++;
+
 			uri += build_action('append', c, context, 'loadzone', _$('loadZone').value); c++;
 			uri += build_action('append', c, context, 'defaultzone', 'us'); c++;
+
+
 		}();
 		makerequest('u', "applyzap.conf", uri , function(t) { applySettings.updateUsersConf(); });
 	}




More information about the asterisk-gui-commits mailing list