[asterisk-dev] [Code Review] Add a demo utility for rapidly sending manager commands

Jeff Peeler jpeeler at digium.com
Tue Oct 12 21:25:04 CDT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/948/#review2827
-----------------------------------------------------------


This is neat. I think one useful addition would be to save the login credentials and to send login information (once obtained) before every request. That way the pesky 60 second default timeout won't be a burden.

- Jeff


On 2010-10-07 16:04:26, Terry Wilson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/948/
> -----------------------------------------------------------
> 
> (Updated 2010-10-07 16:04:26)
> 
> 
> Review request for Asterisk Developers and Erin Spiceland.
> 
> 
> Summary
> -------
> 
> After having to send lots of manager commands over telnet to debug an issue, I found myself wanting an easier/faster way. So, I wrote a little webpage that parses core-en_US.xml for all of the manager actions and lets you enter an action and automatically generate a list of available fields. This way, you can just tab through the fields and add the values you want instead of typing everything in while other events scroll by, etc. Requires enabled/webenabled=yes in manager.conf and enabled/enablestatic=yes in http.conf. Also requires Internet access as it uses jquery hosted by Google--I didn't want to import jquery into the tree and if someone wants it to work on a machine w/o Internet access, it is a simple enough change for them to make on their own.
> 
> I am not a web developer, so it isn't pretty. It seems to work, though.
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/Makefile 287936 
>   /branches/1.8/static-http/mantest.html PRE-CREATION 
> 
> Diff: https://reviewboard.asterisk.org/r/948/diff
> 
> 
> Testing
> -------
> 
> Works in Google Chrome and Firefox. Safari tries to download the page as an attachment (but it does that with ajamdemo.html as well).
> 
> 
> Thanks,
> 
> Terry
> 
>




More information about the asterisk-dev mailing list