pari: branch 2.0 r3771 - /branches/2.0/config/js/pbx.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Sep 5 14:14:06 CDT 2008


Author: pari
Date: Fri Sep  5 14:14:05 2008
New Revision: 3771

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3771
Log:

Fix for AA50-2261 --> Add 'linenumber' in users.conf during upgrades



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

Modified: branches/2.0/config/js/pbx.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/pbx.js?view=diff&rev=3771&r1=3770&r2=3771
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Fri Sep  5 14:14:05 2008
@@ -2362,7 +2362,17 @@
 				})();
 			})();
 		}
-	
+
+		(function(){ // add linenumber=1 for any users that does not have it set (to support new resphoneprov )
+			for ( usr in USERS_CONF ){
+				if( !USERS_CONF.hasOwnProperty(usr) || usr == 'general' ) continue;
+				if( USERS_CONF[usr].hasOwnProperty('hasexten') && USERS_CONF[usr].hasexten == 'no' ) continue; // skip any trunks
+				if( !USERS_CONF[usr].hasOwnProperty('linenumber')){
+					SU.new_action('append', usr , 'linenumber', '1');
+				}
+			}
+		})();
+
 		sa.callActions( function(){
 			SU.callActions( function(){
 				var u = ASTGUI.updateaValue({ file: ASTGUI.globals.configfile, context: 'general', variable: 'config_upgraded', value: 'yes' }) ;




More information about the asterisk-gui-commits mailing list