espiceland: branch 2.0 r5145 - /branches/2.0/config/js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Jan 19 10:47:28 CST 2011


Author: espiceland
Date: Wed Jan 19 10:47:26 2011
New Revision: 5145

URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5145
Log:
During initial checking, also update trunks for which group = anything other than 1[,2,3]... This shouldn't really affect anything, since the group = null bug which was fixed in r5141 only applied to VoIP trunks, but it's a good thing to be checking.

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

Modified: branches/2.0/config/js/index.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=5145&r1=5144&r2=5145
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Wed Jan 19 10:47:26 2011
@@ -569,7 +569,7 @@
 		
 		trunklist.each(function(trunk){
 			var ded_group = parent.pbx.trunks.getDedicatedGroup(parent.pbx.trunks.getName(trunk));
-			if(!ded_group){
+			if(!(/^[\d\,]+$/.test(ded_group))){
 				var new_ded_group = parent.pbx.trunks.makeDedicatedGroup();
 				parent.sessionData.pbxinfo.trunks[type][trunk]['group'] = new_ded_group;
 				var x = new listOfSynActions('users.conf');




More information about the asterisk-gui-commits mailing list