bkruse: branch aadk r1099 - in /branches/aadk: ./ config/scripts/ config/setup/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Jun 18 19:53:27 CDT 2007


Author: bkruse
Date: Mon Jun 18 19:53:26 2007
New Revision: 1099

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1099
Log:
Merged revisions 1097 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-gui/trunk

........
r1097 | bkruse | 2007-06-18 19:51:09 -0500 (Mon, 18 Jun 2007) | 1 line

Wow, this will fix alot of problems. Instead of doing the ghetto way of naming a variable then executing a system command, we just call a local channel that answers and hangs up, and the oppisite application: is system. I am not sure if this makes things faster, but now nothing is hanging and all the system calls are ALOT smoother, and you can actually tell from the responseText if the command was successfull (instead of it always returning false like it used to).  I think this will help alot of things. Check it over for me pari. The last problem had to do with us reloading WHILE we were calling for a config file or system call. Since we do not use callbacks there, it would execute right after executing the reload. But its fixed now, yay
........    If this should not be added this late into aadk, we can rollback. But I think it will help anything concerning system calls.

Modified:
    branches/aadk/   (props changed)
    branches/aadk/config/scripts/astman.js
    branches/aadk/config/setup/1.html

Propchange: branches/aadk/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Jun 18 19:53:26 2007
@@ -1,1 +1,1 @@
-/trunk:1-430,433-449,489-501,505-506,508-510,512-540,542-557,559,561-577,580-586,588-616,618-767,769-1081,1085,1090,1094
+/trunk:1-430,433-449,489-501,505-506,508-510,512-540,542-557,559,561-577,580-586,588-616,618-767,769-1081,1085,1090,1094,1097

Modified: branches/aadk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/scripts/astman.js?view=diff&rev=1099&r1=1098&r2=1099
==============================================================================
--- branches/aadk/config/scripts/astman.js (original)
+++ branches/aadk/config/scripts/astman.js Mon Jun 18 19:53:26 2007
@@ -1095,7 +1095,7 @@
 			}
 		};
 		var tmp;
-		opt.parameters="action=originate&channel=" + encodeURIComponent("Local/executecommand@"+asterisk_guitools ) + "&Variable=command%3d"+ encodeURIComponent(tool) + "&application=noop&timeout=60000";
+		opt.parameters="action=originate&channel=" + encodeURIComponent("Local/executecommand@"+asterisk_guitools ) + "&application=command&data="+ encodeURIComponent(tool) + "timeout=60000";
 		tmp = new Ajax.Request(this.url, opt);
 	};
 

Modified: branches/aadk/config/setup/1.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/setup/1.html?view=diff&rev=1099&r1=1098&r2=1099
==============================================================================
--- branches/aadk/config/setup/1.html (original)
+++ branches/aadk/config/setup/1.html Mon Jun 18 19:53:26 2007
@@ -100,6 +100,16 @@
 	installguitools();
 }
 
+function actionreload() {
+	var opt = {
+		method: 'get',
+		asynchornous: true,
+		onComplete: scan_zapteldevices
+	};
+	opt.paramaters="action=command&command=dialplan%20reload";
+
+	var tmp = new Ajax.Request(rawman_url, opt);
+}
 
 function installguitools(){
 	var opt = {
@@ -107,12 +117,12 @@
 		asynchronous: true,
 		onComplete: scan_zapteldevices
 	};
-	opt.parameters="action=updateconfig&reload=yes&srcfilename=extensions.conf&dstfilename=extensions.conf&"  +
+	opt.parameters="action=updateconfig&srcfilename=extensions.conf&dstfilename=extensions.conf&"  +
 
 	"Action-000000=newcat&Cat-000000=" + asterisk_guitools + "&Var-000000=&Value-000000=" + "&" + 
 	
 	"Action-000001=append&Cat-000001=" + asterisk_guitools + "&Var-000001=exten&Value-000001=" +
-	encodeURI(		'executecommand,1,System(${command})' 	) + "&" + 
+	encodeURI(		'executecommand,1,Answer()' 	) + "&" + 
 
 	"Action-000002=append&Cat-000002=" + asterisk_guitools + "&Var-000002=exten&Value-000002=" +
 	encodeURI(		'executecommand,n,Hangup()' 	) + "&" + 




More information about the asterisk-gui-commits mailing list