pari: branch 2.0 r3651 - in /branches/2.0/config: js/astman.js misdn.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Aug 11 14:41:02 CDT 2008


Author: pari
Date: Mon Aug 11 14:41:01 2008
New Revision: 3651

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

replacing the harcoded path with a ASTGUI.scripts.variable



Modified:
    branches/2.0/config/js/astman.js
    branches/2.0/config/misdn.html

Modified: branches/2.0/config/js/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/astman.js?view=diff&rev=3651&r1=3650&r2=3651
==============================================================================
--- branches/2.0/config/js/astman.js (original)
+++ branches/2.0/config/js/astman.js Mon Aug 11 14:41:01 2008
@@ -2415,6 +2415,7 @@
 ASTGUI.scripts['SysInfo'] = 'sh ' + ASTGUI.paths['scripts'] + 'gui_sysinfo';
 ASTGUI.scripts['ListFiles'] = 'sh ' + ASTGUI.paths['scripts'] + 'listfiles';
 ASTGUI.scripts['generateZaptel'] = 'sh ' + ASTGUI.paths['scripts'] + 'editzap.sh';
+ASTGUI.scripts['generatemISDN_init'] = 'sh ' + ASTGUI.paths['scripts'] + 'editmisdn.sh';
 ASTGUI.scripts['dldsoundpack'] = 'sh ' + ASTGUI.paths['scripts'] + 'dldsoundpack';
 
 ASTGUI.apps = {};

Modified: branches/2.0/config/misdn.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/misdn.html?view=diff&rev=3651&r1=3650&r2=3651
==============================================================================
--- branches/2.0/config/misdn.html (original)
+++ branches/2.0/config/misdn.html Mon Aug 11 14:41:01 2008
@@ -292,7 +292,7 @@
 	x.new_action('append', d, "debug" , "0");
 	x.callActions(function(){
 		// call the script that would generate /etc/misdn-init.conf from /etc/asterisk/applymisdn.conf
-		parent.ASTGUI.systemCmd( "sh /var/lib/asterisk/scripts/editmisdn.sh applysettings", function(){ 
+		parent.ASTGUI.systemCmd( ASTGUI.scripts.generatemISDN_init + " applysettings", function(){ 
 			alert("You need to restart your machine for these settings to take effect");
 			window.location.reload();
 			return true; 




More information about the asterisk-gui-commits mailing list