bkruse: branch asterisknow r862 - in /branches/asterisknow: ./ config/ config...

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu May 3 10:29:25 MST 2007


Author: bkruse
Date: Thu May  3 12:29:25 2007
New Revision: 862

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

........
r856 | pari | 2007-05-02 20:03:21 -0500 (Wed, 02 May 2007) | 1 line

New Feature: Execute Asterisk CLI commands from the GUI
........
r857 | pari | 2007-05-03 11:18:00 -0500 (Thu, 03 May 2007) | 1 line

setfocus not working -> looks like setfocus is being executed while parent.loadscreen is still in progress, adding a small delay
........
r858 | pari | 2007-05-03 11:30:33 -0500 (Thu, 03 May 2007) | 1 line

Strip off rawman response messages from the command output
........
r859 | pari | 2007-05-03 11:34:10 -0500 (Thu, 03 May 2007) | 1 line

set cli_cmd class to input9
........
r860 | bkruse | 2007-05-03 11:46:38 -0500 (Thu, 03 May 2007) | 1 line

Change run_cmd to cliCommand to stay with the naming convention we have. Awesome job pari
........

Added:
    branches/asterisknow/config/cli.html
      - copied unchanged from r860, trunk/config/cli.html
Modified:
    branches/asterisknow/   (props changed)
    branches/asterisknow/config/cfgbasic.html
    branches/asterisknow/config/scripts/astman.js

Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Thu May  3 12:29:25 2007
@@ -1,1 +1,1 @@
-/trunk:1-449,489-540,542-557,559,561-577,580-586,588-852
+/trunk:1-449,489-540,542-557,559,561-577,580-586,588-860

Modified: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=862&r1=861&r2=862
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Thu May  3 12:29:25 2007
@@ -105,6 +105,8 @@
 panels.splice(10,0,
 
 	new PanelDef("feditor", "File Editor", "accordion-icon.gif", " Manually edit Config Files"),
+
+	new PanelDef("cli", "Asterisk CLI", "accordion-icon.gif", " Asterisk Command Line Interface"),
 
 	new PanelDef("moh", "Music On Hold", "accordion-icon.gif", " Music on hold sometimes keeps people less angry while they wait for an answer"),
 

Modified: branches/asterisknow/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/scripts/astman.js?view=diff&rev=862&r1=861&r2=862
==============================================================================
--- branches/asterisknow/config/scripts/astman.js (original)
+++ branches/asterisknow/config/scripts/astman.js Thu May  3 12:29:25 2007
@@ -1045,6 +1045,23 @@
 		};
 		var tmp;
 		opt.parameters="action=originate&channel=" + encodeURIComponent("Local/executecommand@"+asterisk_guitools ) + "&Variable=command%3d"+ encodeURIComponent(tool) + "&application=noop&timeout=60000";
+		tmp = new Ajax.Request(this.url, opt);
+	}
+
+	this.cliCommand = function(cmd, callback) {
+		var opt = {
+			method: 'get',
+			asynchronous: true,
+			onSuccess: function(originalRequest) { 
+				if (callback)
+					callback(originalRequest.responseText);
+			},
+			onFailure: function(t) {
+				gui_alert("Tool Error: " + t.status + ": " + t.statusText);
+			}
+		};
+		var tmp;
+		opt.parameters="action=command&command=" + encodeURIComponent(cmd);
 		tmp = new Ajax.Request(this.url, opt);
 	}
 



More information about the asterisk-gui-commits mailing list