pari: branch asterisknow r523 - in /branches/asterisknow: ./ config/
config/s...
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Mar 28 22:19:38 MST 2007
Author: pari
Date: Thu Mar 29 00:19:38 2007
New Revision: 523
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=523
Log:
Merged revisions 501 via svnmerge from
https://origsvn.digium.com/svn/asterisk-gui/trunk
........
r501 | pari | 2007-03-27 16:44:24 -0500 (Tue, 27 Mar 2007) | 1 line
define and manage all paths from one place
........
Modified:
branches/asterisknow/ (props changed)
branches/asterisknow/config/backup.html
branches/asterisknow/config/cfgbasic.html
branches/asterisknow/config/home.html
branches/asterisknow/config/incoming.html
branches/asterisknow/config/localexts.html
branches/asterisknow/config/meetme.html
branches/asterisknow/config/menus.html
branches/asterisknow/config/numberplan.html
branches/asterisknow/config/options.html
branches/asterisknow/config/queues.html
branches/asterisknow/config/record.html
branches/asterisknow/config/scripts/astman.js
branches/asterisknow/config/sysinfo.html
branches/asterisknow/config/trunks.html
Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Thu Mar 29 00:19:38 2007
@@ -1,1 +1,1 @@
-/trunk:1-448
+/trunk:1-448,501
Modified: branches/asterisknow/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/backup.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/backup.html (original)
+++ branches/asterisknow/config/backup.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Thu Mar 29 00:19:38 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,7 +211,7 @@
}
};
opt2.parameters ="action=logoff";
- var tmp2 = new Ajax.Request("../../rawman", opt2);
+ var tmp2 = new Ajax.Request(asterisk_rawmanPath , opt2);
}
function system_link(){
@@ -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>
@@ -293,4 +293,4 @@
</td>
</tr>
</table>
-</body>
+</body>
Modified: branches/asterisknow/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/home.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/home.html (original)
+++ branches/asterisknow/config/home.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/incoming.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/incoming.html (original)
+++ branches/asterisknow/config/incoming.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/localexts.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/localexts.html (original)
+++ branches/asterisknow/config/localexts.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/meetme.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/meetme.html (original)
+++ branches/asterisknow/config/meetme.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/menus.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/menus.html (original)
+++ branches/asterisknow/config/menus.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/numberplan.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/numberplan.html (original)
+++ branches/asterisknow/config/numberplan.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/options.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/options.html (original)
+++ branches/asterisknow/config/options.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/queues.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/queues.html (original)
+++ branches/asterisknow/config/queues.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/record.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/record.html (original)
+++ branches/asterisknow/config/record.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/scripts/astman.js?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/scripts/astman.js (original)
+++ branches/asterisknow/config/scripts/astman.js Thu Mar 29 00:19:38 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: branches/asterisknow/config/sysinfo.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/sysinfo.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/sysinfo.html (original)
+++ branches/asterisknow/config/sysinfo.html Thu Mar 29 00:19:38 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: branches/asterisknow/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/trunks.html?view=diff&rev=523&r1=522&r2=523
==============================================================================
--- branches/asterisknow/config/trunks.html (original)
+++ branches/asterisknow/config/trunks.html Thu Mar 29 00:19:38 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