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

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Aug 7 15:23:08 CDT 2008


Author: pari
Date: Thu Aug  7 15:23:08 2008
New Revision: 3638

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

 more fixes to pbx.js for Asterisk 1.6.0/trunk compatibility



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=3638&r1=3637&r2=3638
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Thu Aug  7 15:23:08 2008
@@ -49,7 +49,7 @@
 			return;
 		}
 
-		if( ecnf.hasOwnProperty('general') && ecnf.general.hasOwnProperty('clearglobalvars') && ecnf.general.getProperty('clearglobalvars') != 'yes' ){
+		if( ecnf.hasOwnProperty('general') && ecnf.general.hasOwnProperty('clearglobalvars') && ecnf.general..clearglobalvars != 'yes' ){
 			var u = new listOfSynActions('extensions.conf');
 			u.new_action('update', 'general', 'clearglobalvars', 'yes');
 			u.callActions();
@@ -917,7 +917,7 @@
 			v.new_action('newcat', ct + ASTGUI.contexts.TrunkDefaultSuffix , '', ''); // add context
 			v.new_action('append', ct , 'include', ct + ASTGUI.contexts.TrunkDefaultSuffix );
 
-			v.new_action('update', 'globals', trunk, 'IAX2/' + trunk);
+			v.new_action('append', 'globals', trunk, 'IAX2/' + trunk);
 			var h = v.callActions();
 			if( h.contains('Response: Success') ){
 				cbf();
@@ -978,7 +978,7 @@
 			v.new_action('newcat', ct + ASTGUI.contexts.TrunkDefaultSuffix , '', ''); // add context
 			v.new_action('append', ct , 'include', ct + ASTGUI.contexts.TrunkDefaultSuffix );
 
-			v.new_action('update', 'globals', trunk, 'SIP/' + trunk);
+			v.new_action('append', 'globals', trunk, 'SIP/' + trunk);
 			var h = v.callActions();
 
 			if( h.contains('Response: Success') ){ 




More information about the asterisk-gui-commits mailing list