rbrindley: branch 2.0 r4824 - /branches/2.0/config/js/hardware_dahdi.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jun 2 13:41:57 CDT 2009


Author: rbrindley
Date: Tue Jun  2 13:41:54 2009
New Revision: 4824

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4824
Log:

- the gui now configures bri spans with hardhdlc instead of dchan


Modified:
    branches/2.0/config/js/hardware_dahdi.js

Modified: branches/2.0/config/js/hardware_dahdi.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/hardware_dahdi.js?view=diff&rev=4824&r1=4823&r2=4824
==============================================================================
--- branches/2.0/config/js/hardware_dahdi.js (original)
+++ branches/2.0/config/js/hardware_dahdi.js Tue Jun  2 13:41:54 2009
@@ -965,7 +965,7 @@
 	// navigate through the SPANS object and save it to the applyzap.conf, 
 	// then call a script which will generate zaptel.conf from it and asks the user to restart his machine
 		parent.ASTGUI.dialog.waitWhile('Saving Changes ...');
-		var fxx={}, bchanstring = '', dchanstring = '', context = 'general';
+		var fxx={}, bchanstring = '', dchanstring = '', hardhdlc = '', context = 'general';
 		var totalchans = 0, firstpart , secondpart, tmp2 , tmp3;
 
 		var x = new listOfActions(); x.filename('applyzap.conf');
@@ -995,9 +995,12 @@
 				}else{
 					fxx[ qqq ] = ppp;
 				}
-			}else{
+			}else if (SPANS[k]['signalling'].beginsWith('pri')) {
 				bchanstring += tmp2 + ppp;
 				dchanstring += tmp3 + SPANS[k]['reserved_ch'];
+			} else {
+				bchanstring += tmp2 + ppp;
+				hardhdlc += tmp3 + SPANS[k]['reserved_ch'];
 			}
 			SPANS[k]['dahdichanstring'] = ppp;
 		}}}
@@ -1006,6 +1009,7 @@
 
 		if(bchanstring.strip()){ x.new_action('append', context, 'bchan', bchanstring); }
 		if(dchanstring.strip()){ x.new_action('append', context, 'dchan', dchanstring); }
+		if(hardhdlc.strip()){ x.new_action('append', context, 'hardhdlc', hardhdlc); }
 
 		// write back any actual analog ports
 		parent.sessionData.PORTS_SIGNALLING.ls = []; // reset previous signalling data




More information about the asterisk-gui-commits mailing list