pari: branch asterisknow r2103 - /branches/asterisknow/config/cfgbasic.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jan 8 16:09:54 CST 2008


Author: pari
Date: Tue Jan  8 16:09:54 2008
New Revision: 2103

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2103
Log:
issue reload over Manager, instead of updateconfig hack

Modified:
    branches/asterisknow/config/cfgbasic.html

Modified: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=2103&r1=2102&r2=2103
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Tue Jan  8 16:09:54 2008
@@ -343,10 +343,10 @@
 function reloadConfig(){
 	_$('reloadconfig').style.display = 'none'; 
 	window.setTimeout( function(){ _$('reloadconfig').style.display=""; }, asterisk_guifbt );
-
-	var uri = parent.build_action('renamecat', 0, "","", "", "");
-	var r = "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	makerequest("","",r, function(t){ gui_feedback("Restarted Asterisk !!",'blue'); } );
+	//gui_feedback("Running ztcfg ");
+	//astmanEngine.run_tool('ztcfg', function(t) { // run ztcfg
+		astmanEngine.cliCommand('reload', function(t){ gui_feedback("Restarted Asterisk !!",'blue'); }); // then reload asterisk
+	//});
 }
 
 




More information about the asterisk-gui-commits mailing list