pari: trunk r501 - in /trunk/config: ./ scripts/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Mar 27 14:44:25 MST 2007


Author: pari
Date: Tue Mar 27 16:44:24 2007
New Revision: 501

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=501
Log:
define and manage all paths from one place

Modified:
    trunk/config/backup.html
    trunk/config/cfgbasic.html
    trunk/config/home.html
    trunk/config/incoming.html
    trunk/config/localexts.html
    trunk/config/meetme.html
    trunk/config/menus.html
    trunk/config/numberplan.html
    trunk/config/options.html
    trunk/config/queues.html
    trunk/config/record.html
    trunk/config/scripts/astman.js
    trunk/config/sysinfo.html
    trunk/config/trunks.html

Modified: trunk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/backup.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/backup.html (original)
+++ trunk/config/backup.html Tue Mar 27 16:44:24 2007
@@ -25,7 +25,6 @@
 <link href="stylesheets/rico.css" media="all" rel="Stylesheet" type="text/css" />
 <link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
 <script>
-var bkp_path = "/var/lib/asterisk/gui_configbackups/";
 
 function localajaxinit() {
 	setWindowTitle("Backup");
@@ -34,7 +33,7 @@
 	_nn.onfocus = function(){this.className = 'input9_hilight';}
 	_nn.onblur = function(){this.className = 'input9';}
 
-	parent.astmanEngine.run_tool("sh /etc/asterisk/gui_sysinfo", callback = function() { 
+	parent.astmanEngine.run_tool(asterisk_guiSysInfo, callback = function() { 
 		var opt = { method: 'get', asynchronous: true,
 			onComplete: function(originalRequest){
 				_$('sysinfohtml').innerHTML = originalRequest.responseText;
@@ -43,7 +42,7 @@
 			onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
 		};
 		opt.parameters="";
-		var tmp = new Ajax.Request("./bkps/sysinfo_output.html", opt);
+		var tmp = new Ajax.Request(asterisk_guiSysInfo_output, opt);
 		return true;
 	});
 }
@@ -126,7 +125,7 @@
 
 
 function restore_bkp_step2(filename){
-	parent.astmanEngine.run_tool("tar -xf " + bkp_path + filename +" -C /" , callback=function(){
+	parent.astmanEngine.run_tool("tar -xf " + asterisk_ConfigBkpPath + filename +" -C /" , callback=function(){
 		gui_alert("Configuration restored !!");
 		// give two seconds for extracting tar file before restarting asterisk 
 		window.setTimeout( function(){ parent.reloadConfig();}, 1500);
@@ -135,7 +134,7 @@
 
 function delete_bkp( filename ){
 	if(!confirm("Delete selected Backup Configuration ?")){ return ; }
-	parent.astmanEngine.run_tool("/bin/rm -f "+ bkp_path + filename , callback=function(){
+	parent.astmanEngine.run_tool("/bin/rm -f "+ asterisk_ConfigBkpPath + filename , callback=function(){
 		_$('status').innerHTML = " <I> Delete Request Successfull ! </I>";
 		window.location.href = window.location.href ;
 	});
@@ -174,7 +173,7 @@
 	//var seconds =addzero(today.getSeconds());
 	var bkpfile =  _nn.value +"__" + year + month + day +".tar";
 
-	parent.astmanEngine.run_tool("/bin/tar -cf "+ bkp_path + bkpfile +" /etc/asterisk/", callback=function(){
+	parent.astmanEngine.run_tool("/bin/tar -cf "+ asterisk_ConfigBkpPath + bkpfile +" /etc/asterisk/", callback=function(){
 			window.location.href = window.location.href ;
 		}
 	);

Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Tue Mar 27 16:44:24 2007
@@ -144,12 +144,12 @@
 					return ;
 				}
 				if ( originalRequest.responseText.match("Pong") ) {
-						_$('mainscreen').src = page.titleBar.id + ".html";
+					_$('mainscreen').src = page.titleBar.id + ".html";
 				}
 			}
 		};
 		opt.parameters="action=ping" ;
-		var tmp = new Ajax.Request("../../rawman" , opt);
+		var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 		//$('mainscreen').src = page.titleBar.id + ".html";
 	}
 }
@@ -192,7 +192,7 @@
 	started = 1;
 }
 
-astmanEngine.setURL('../../rawman');
+astmanEngine.setURL(asterisk_rawmanPath );
 astmanEngine.setEventCallback(eventeater.eventcb);
 
 function Logoff() {
@@ -211,12 +211,12 @@
 		}
 	};
 	opt2.parameters ="action=logoff";
-	var tmp2 = new Ajax.Request("../../rawman", opt2);
+	var tmp2 = new Ajax.Request(asterisk_rawmanPath , opt2);
 }
 
 function system_link(){
 	var newwindow_href = location.protocol + '//' + location.hostname + ':8003';
-	window.open(newwindow_href ,'mainwindow','width=1024,height=768,resizable=no, scrollbars=no, toolbar=no, location=no,status=yes, menubar=no')
+	window.open(newwindow_href ,'mainwindow','width=1024,height=768,resizable=yes, scrollbars=no, toolbar=no, location=no,status=yes, menubar=no')
 }
 
 function reloadConfig(){
@@ -230,7 +230,7 @@
 	};
 	var uri = parent.build_action('renamecat', 0, "","", "", ""); 
 	opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 }
 </script>
 <head>

Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Tue Mar 27 16:44:24 2007
@@ -26,6 +26,7 @@
 var demo = new Object;
 var localloggedon = -1;
 var asterisk_guitools = parent.asterisk_guitools;
+var asterisk_rawmanPath = parent.asterisk_rawmanPath;
 
 function updateButtons(){
 	var f = parent.loggedon;
@@ -159,7 +160,7 @@
 	//if everything ok set  asterisk_guitools_inextconf = 1;
 	var opt = { method: 'get', asynchronous: true, onComplete: checkExtconfig };
 	opt.parameters="action=getconfig&filename=extensions.conf" ;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 }
 
 

Modified: trunk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/incoming.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/incoming.html (original)
+++ trunk/config/incoming.html Tue Mar 27 16:44:24 2007
@@ -318,7 +318,7 @@
 	};
 
 	opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 	// 
 }
 
@@ -391,7 +391,7 @@
 		}
 	};
 	opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 }
 
 
@@ -443,7 +443,7 @@
 		uri += build_action('delete',1,b,"exten","", tmp2_match);
 	}
 	opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 }
 
 

Modified: trunk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/localexts.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/localexts.html (original)
+++ trunk/config/localexts.html Tue Mar 27 16:44:24 2007
@@ -70,7 +70,7 @@
 			}
 		};
 		opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("users.conf") + "&dstfilename=" + encodeURIComponent("users.conf") + "&Action-000000=update&Cat-000000=general&Var-000000=localextenlength&Value-000000=4"; ;
-		var tmp = new Ajax.Request("../../rawman", opt);
+		var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 		return;
 	}
 	parent.loadscreen(this);

Modified: trunk/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/meetme.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/meetme.html (original)
+++ trunk/config/meetme.html Tue Mar 27 16:44:24 2007
@@ -298,7 +298,7 @@
 			} 
 		};
 		opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("meetme.conf") + "&dstfilename=" + encodeURIComponent("meetme.conf") + uri;
-		var tmp = new Ajax.Request("../../rawman", opt);
+		var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 		return true;
 	}
 }
@@ -316,7 +316,7 @@
 				onComplete: function(){ f.stored_config.catbyname.rooms.fields.splice(r ,1); } 
 			};
 			opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("meetme.conf") + "&dstfilename=" + encodeURIComponent("meetme.conf") + uri;
-			var tmp = new Ajax.Request("../../rawman", opt);
+			var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 			break;
 		}
 	}

Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Tue Mar 27 16:44:24 2007
@@ -208,7 +208,7 @@
 		var existing_alias_string = voicemenusdata[deleted_voicmenu].alias_exten + ",1,Goto(" + deleted_voicmenu + "|s|1)"  ;
 		var uri = build_action('delete', 0, specialcontext ,"exten", "", existing_alias_string ); 
 		opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-		var tmp = new Ajax.Request("../../rawman", opt);
+		var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 	}
 	delete voicemenusdata[deleted_voicmenu];
 }
@@ -365,7 +365,7 @@
 
 	uri += build_action('append', 0, _vmv,"exten", action_string ); 
 	opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	tmp = new Ajax.Request('../../rawman', opt);
+	tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 
 }
 
@@ -528,7 +528,7 @@
 
 	opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
 	// send the request
-	tmp = new Ajax.Request('../../rawman', opt);
+	tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 
@@ -626,7 +626,7 @@
 	uri += build_action('update', 0, _vms_v ,"exten",tmp1.join(), _steps.options[a].value);
 	uri += build_action('update', 1, _vms_v ,"exten",tmp2.join(), _steps.options[b].value);
 	opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	tmp = new Ajax.Request('../../rawman', opt);
+	tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 
@@ -659,7 +659,7 @@
 	var uri = "";
 	uri += build_action('delete', 0, _vmenus.value,"exten", "", _steps.value); 
 	opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	tmp = new Ajax.Request('../../rawman', opt);
+	tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 
@@ -1027,7 +1027,7 @@
 		onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
 	};
 	opt.parameters="";
-	var tmp = new Ajax.Request("./bkps/sysinfo_output.html", opt);
+	var tmp = new Ajax.Request(asterisk_guiSysInfo_output , opt);
 	});
 }
 

Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Tue Mar 27 16:44:24 2007
@@ -146,7 +146,7 @@
 	_$('userscontent').style.display = "none";
 	_$('bg_transparent').style.display = "none";
 	_$('status_message').style.display = "";
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 function saverule(){
@@ -383,7 +383,7 @@
 	_$('userscontent').style.display = "none";
 	_$('bg_transparent').style.display = "none";
 	_$('status_message').style.display = "";
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 
@@ -600,7 +600,7 @@
 		onFailure: function(t) { gui_alert("Config Error: " + t.status + ": " + t.statusText); }
 	};
 	opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 

Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Tue Mar 27 16:44:24 2007
@@ -79,7 +79,7 @@
 		}
 	};
 	opt.parameters ="action=updateconfig&srcfilename=manager.conf&dstfilename=manager.conf&Action-000000=update&Cat-000000=general&Var-000000=httptimeout&Value-000000="+ encodeURIComponent(_httptimeout.value);
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 	return;
 }
 
@@ -109,7 +109,7 @@
 		}
 	};
 	opt.parameters ="action=updateconfig&srcfilename=http.conf&dstfilename=http.conf&Action-000000=update&Cat-000000=general&Var-000000=bindport&Value-000000="+ encodeURIComponent(_bindport.value) + "&Action-000001=update&Cat-000001=general&Var-000001=bindaddr&Value-000001=" + encodeURIComponent( _bindaddr.value );
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 
@@ -133,7 +133,7 @@
 		onFailure: function(t) { gui_alert("Config Error: " + t.status + ": " + t.statusText); }
 	};
 	opt2.parameters ="action=logoff";
-	var tmp2 = new Ajax.Request("../../rawman", opt2);
+	var tmp2 = new Ajax.Request(asterisk_rawmanPath, opt2);
 }
 
 function changepassword(){
@@ -157,7 +157,7 @@
 		onFailure: function(t) { gui_alert("Config Error: " + t.status + ": " + t.statusText); }
 	};
 	opt.parameters ="action=updateconfig&srcfilename=manager.conf&dstfilename=manager.conf&Action-000000=update&Cat-000000=" + current_username + "&Var-000000=secret&Value-000000="+ encodeURIComponent( _newpass.value );
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 	return;
 }
 

Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Tue Mar 27 16:44:24 2007
@@ -73,7 +73,7 @@
 	};
 	uri0 = build_action('update', 0, specialcontext ,'exten', b+',1,Queue(${EXTEN})', a+',1,Queue(${EXTEN})' ); 
 	opt0.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
-	tmp0 = new Ajax.Request('../../rawman', opt0);
+	tmp0 = new Ajax.Request(asterisk_rawmanPath, opt0);
 }
 
 function add_extension(a){
@@ -92,7 +92,7 @@
 	};
 	uri0 = build_action('append', 0, specialcontext ,'exten', a+',1,Queue(${EXTEN})'); 
 	opt0.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
-	tmp0 = new Ajax.Request('../../rawman', opt0);
+	tmp0 = new Ajax.Request(asterisk_rawmanPath, opt0);
 }
 
 function delete_extension(a){
@@ -110,7 +110,7 @@
 	};
 	uri0 = build_action('delete', 0, specialcontext ,'exten', '',a+',1,Queue(${EXTEN})'); 
 	opt0.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
-	tmp0 = new Ajax.Request('../../rawman', opt0);
+	tmp0 = new Ajax.Request(asterisk_rawmanPath, opt0);
 }
 
 function save_queue(){
@@ -260,7 +260,7 @@
 	}
 
 	opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("queues.conf") + "&dstfilename=" + encodeURIComponent("queues.conf") + uri;
-	tmp = new Ajax.Request('../../rawman', opt);
+	tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 

Modified: trunk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/record.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/record.html (original)
+++ trunk/config/record.html Tue Mar 27 16:44:24 2007
@@ -28,7 +28,6 @@
 <script>
 var focus_fields = new Array('newvmenu_name','newvmenu_ext');
 var callbacks = {};
-var record_path = '/var/lib/asterisk/sounds/record/';
 
 function localajaxinit(){
 	showdiv_statusmessage();
@@ -129,7 +128,7 @@
 			onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
 		};
 		opt.parameters="";
-		var tmp = new Ajax.Request("./bkps/sysinfo_output.html", opt);
+		var tmp = new Ajax.Request(asterisk_guiSysInfo_output, opt);
 	});
 }
 
@@ -142,7 +141,7 @@
 		onFailure: function(t) { gui_alert("Config Error: " + t.status + ": " + t.statusText); }
 	};
 	opt.parameters ="action=originate&channel=Local/"+extension + "&context="+asterisk_guitools+"&exten=play_file&priority=1&Variable=var1%3d"+ encodeURIComponent( filename );
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 function record_existing(filename){
@@ -186,14 +185,14 @@
 			gui_alert("Config Error: " + t.status + ": " + t.statusText);
 		}
 	};
-	opt.parameters ="action=originate&channel=Local/"+newvmenu_ext + "&context="+asterisk_guitools+"&exten=record_vmenu&priority=1&Variable=var1%3d"+ encodeURIComponent( record_path + filename_torecord );
-
-	var tmp = new Ajax.Request("../../rawman", opt);
+	opt.parameters ="action=originate&channel=Local/"+newvmenu_ext + "&context="+asterisk_guitools+"&exten=record_vmenu&priority=1&Variable=var1%3d"+ encodeURIComponent( asterisk_menusRecord_path + filename_torecord );
+
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 function delete_sounds(filename){
 	if(!confirm("Delete selected file ?")){ return ; }
-	parent.astmanEngine.run_tool("/bin/rm -f "+ record_path + filename , callback=function(){
+	parent.astmanEngine.run_tool("/bin/rm -f "+ asterisk_menusRecord_path + filename , callback=function(){
 		_$('status').innerHTML = " <I> Delete Request Successfull ! </I>";
 		window.location.href = window.location.href ;
 	});

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Tue Mar 27 16:44:24 2007
@@ -25,6 +25,12 @@
 var asterisk_guitoolsversion = "0.7";
 var asterisk_guiversion = "$Revision$";
 var asterisk_guifbt = 3000; // Feedback msg time
+var asterisk_ConfigBkpPath = "/var/lib/asterisk/gui_configbackups/" ;
+var asterisk_menusRecord_path = "/var/lib/asterisk/sounds/record/";
+var asterisk_guiSysInfo = "sh /etc/asterisk/gui_sysinfo" ;
+var asterisk_guiSysInfo_output = ""./sysinfo_output.html";
+var asterisk_rawmanPath = "../../rawman" ;
+
 var sortbynames = false;
 var dragdata = new Object;
 var asterisk_guiTDPrefix = "DID_";
@@ -133,7 +139,7 @@
 		onSuccess: function(originalRequest) {  var f = toJSON(originalRequest.responseText, b) ;  c(f) ; },
 		onFailure: function(t) { gui_alert("Config Error: " + t.status + ": " + t.statusText); },
 		parameters: "action=getconfig&filename="+a };
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath , opt);
 }
 
 function toJSON(z, p){

Modified: trunk/config/sysinfo.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/sysinfo.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/sysinfo.html (original)
+++ trunk/config/sysinfo.html Tue Mar 27 16:44:24 2007
@@ -35,7 +35,7 @@
 	var _ld = _$('log_day').value; 
 	if(  _ld < 10 ){ var space = "  "; }else{ var space = " ";  }
 	var tmp_command = "/bin/grep /var/log/asterisk/messages -e '" + _$('log_month').value + space + _ld 
-						+ " ' > /var/lib/asterisk/static-http/config/bkps/today_log.html" ;
+						+ " ' > /var/lib/asterisk/static-http/config/today_log.html" ;
 	parent.astmanEngine.run_tool( tmp_command , onSuccess = function() { _$('status_message').style.display='none'; load_todayslog(); } );
 }
 
@@ -56,7 +56,7 @@
 		}
 	};
 	opt.parameters="";
-	var tmp = new Ajax.Request("./bkps/today_log.html", opt);
+	var tmp = new Ajax.Request("./today_log.html", opt);
 	return true;
 }
 
@@ -92,7 +92,7 @@
 }
 
 function update_sysinfo(){
-	parent.astmanEngine.run_tool("sh /etc/asterisk/gui_sysinfo", onSuccess = function() {
+	parent.astmanEngine.run_tool(asterisk_guiSysInfo , onSuccess = function() {
 			_$('status_message').style.display='none';
 			getsysinfohtml();
 		}
@@ -127,7 +127,7 @@
 		}
 	};
 	opt.parameters="";
-	var tmp = new Ajax.Request("./bkps/sysinfo_output.html", opt);
+	var tmp = new Ajax.Request(asterisk_guiSysInfo_output , opt);
 	return true;
 }
 

Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?view=diff&rev=501&r1=500&r2=501
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Tue Mar 27 16:44:24 2007
@@ -57,7 +57,7 @@
 		}
 	};
 	opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 function update_didcontext(old_trunk, new_trunk){
@@ -74,7 +74,7 @@
 		}
 	};
 	opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 
@@ -90,7 +90,7 @@
 		}
 	};
 	opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
-	var tmp = new Ajax.Request("../../rawman", opt);
+	var tmp = new Ajax.Request(asterisk_rawmanPath, opt);
 }
 
 providercallbacks.postselect = function() {



More information about the asterisk-gui-commits mailing list