pari: branch aadk r506 - in /branches/aadk: ./ config/
config/scripts/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Mar 27 21:16:28 MST 2007
Author: pari
Date: Tue Mar 27 23:16:26 2007
New Revision: 506
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=506
Log:
merging changes in 501
Modified:
branches/aadk/ (props changed)
branches/aadk/config/backup.html
branches/aadk/config/cfgbasic.html
branches/aadk/config/home.html
branches/aadk/config/incoming.html
branches/aadk/config/localexts.html
branches/aadk/config/meetme.html
branches/aadk/config/menus.html
branches/aadk/config/numberplan.html
branches/aadk/config/options.html
branches/aadk/config/queues.html
branches/aadk/config/record.html
branches/aadk/config/scripts/astman.js
branches/aadk/config/sysinfo.html
branches/aadk/config/trunks.html
Propchange: branches/aadk/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Tue Mar 27 23:16:26 2007
@@ -1,1 +1,1 @@
-/trunk:1-430,433-448
+/trunk:1-430,433-448,501
Modified: branches/aadk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/backup.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/backup.html (original)
+++ branches/aadk/config/backup.html Tue Mar 27 23:16:26 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/sounds/backups/";
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 /bin/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;
@@ -48,7 +47,7 @@
onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
};
opt.parameters="";
- var tmp = new Ajax.Request("./sysinfo_output.html", opt);
+ var tmp = new Ajax.Request(asterisk_guiSysInfo_output, opt);
return true;
});
}
@@ -131,7 +130,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);
@@ -140,7 +139,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 ;
});
@@ -179,7 +178,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 ;
}
);
@@ -245,4 +244,4 @@
<div id="sysinfohtml" style="display:none"></div>
<div id="bg_transparent" STYLE="display:none; position: absolute; left: 0; top: 24; width:100%; height:100%; background-color:#EFEFEF; -moz-opacity:.50;opacity:.50; border-width: 1px; border-color: #EFEFEF; border-style: solid; z-index:4">
</div>
-</body>
+</body>
Modified: branches/aadk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/cfgbasic.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/cfgbasic.html (original)
+++ branches/aadk/config/cfgbasic.html Tue Mar 27 23:16:26 2007
@@ -147,12 +147,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";
}
}
@@ -195,7 +195,7 @@
started = 1;
}
-astmanEngine.setURL('../../rawman');
+astmanEngine.setURL(asterisk_rawmanPath );
astmanEngine.setEventCallback(eventeater.eventcb);
function Logoff() {
@@ -214,12 +214,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(){
@@ -233,7 +233,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: branches/aadk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/home.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/home.html (original)
+++ branches/aadk/config/home.html Tue Mar 27 23:16:26 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;
@@ -162,7 +163,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/aadk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/incoming.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/incoming.html (original)
+++ branches/aadk/config/incoming.html Tue Mar 27 23:16:26 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/aadk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/localexts.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/localexts.html (original)
+++ branches/aadk/config/localexts.html Tue Mar 27 23:16:26 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/aadk/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/meetme.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/meetme.html (original)
+++ branches/aadk/config/meetme.html Tue Mar 27 23:16:26 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/aadk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/menus.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/menus.html (original)
+++ branches/aadk/config/menus.html Tue Mar 27 23:16:26 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);
}
@@ -958,7 +958,7 @@
}
extencallbacks.loaded = function() {
- parent.astmanEngine.run_tool("sh /bin/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;
@@ -1027,7 +1027,7 @@
onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
};
opt.parameters="";
- var tmp = new Ajax.Request("./sysinfo_output.html", opt);
+ var tmp = new Ajax.Request(asterisk_guiSysInfo_output , opt);
});
}
Modified: branches/aadk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/numberplan.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/numberplan.html (original)
+++ branches/aadk/config/numberplan.html Tue Mar 27 23:16:26 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/aadk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/options.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/options.html (original)
+++ branches/aadk/config/options.html Tue Mar 27 23:16:26 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/aadk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/queues.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/queues.html (original)
+++ branches/aadk/config/queues.html Tue Mar 27 23:16:26 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/aadk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/record.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/record.html (original)
+++ branches/aadk/config/record.html Tue Mar 27 23:16:26 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();
@@ -119,7 +118,7 @@
}
callbacks.loaded = function(){
- parent.astmanEngine.run_tool("sh /bin/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;
@@ -134,7 +133,7 @@
onFailure: function(t) { alert("Config Error: " + t.status + ": " + t.statusText); }
};
opt.parameters="";
- var tmp = new Ajax.Request("./sysinfo_output.html", opt);
+ var tmp = new Ajax.Request(asterisk_guiSysInfo_output, opt);
});
}
@@ -147,7 +146,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){
@@ -191,14 +190,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 ;
});
@@ -285,4 +284,4 @@
<div id="sysinfohtml" style="display:none"></div>
<div id="bg_transparent" STYLE="display:none; position: absolute; left: 0; top: 24; width:100%; height:100%; background-color:#EFEFEF; -moz-opacity:.50;opacity:.50; border-width: 1px; border-color: #EFEFEF; border-style: solid; z-index:4">
</div>
-</body>
+</body>
Modified: branches/aadk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/scripts/astman.js?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/scripts/astman.js (original)
+++ branches/aadk/config/scripts/astman.js Tue Mar 27 23:16:26 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/sounds/backups/" ;
+var asterisk_menusRecord_path = "/var/lib/asterisk/sounds/record/";
+var asterisk_guiSysInfo = "sh /bin/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){
@@ -1857,4 +1863,4 @@
}
}
-astmanEngine = new Astman();
+astmanEngine = new Astman();
Modified: branches/aadk/config/sysinfo.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/sysinfo.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/sysinfo.html (original)
+++ branches/aadk/config/sysinfo.html Tue Mar 27 23:16:26 2007
@@ -62,7 +62,7 @@
}
function update_sysinfo(){
- parent.astmanEngine.run_tool("sh /bin/gui_sysinfo", onSuccess = function() {
+ parent.astmanEngine.run_tool(asterisk_guiSysInfo , onSuccess = function() {
_$('status_message').style.display='none';
getsysinfohtml();
}
@@ -102,7 +102,7 @@
}
};
opt.parameters="";
- var tmp = new Ajax.Request("./sysinfo_output.html", opt);
+ var tmp = new Ajax.Request(asterisk_guiSysInfo_output , opt);
return true;
}
Modified: branches/aadk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/trunks.html?view=diff&rev=506&r1=505&r2=506
==============================================================================
--- branches/aadk/config/trunks.html (original)
+++ branches/aadk/config/trunks.html Tue Mar 27 23:16:26 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