aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
AgeCommit message (Collapse)AuthorFilesLines
2009-08-10AST-2009-005tilghman1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@211528 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-25I didn't see that Mark already fixed the underlying issue!twilson1-3/+2
Yay for removing useless code. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@203380 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-25Don't try to free NULLtwilson1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@203311 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-01fix a bunch of potential problems found by gcc 4.3.x, primarily bare strings ↵kpfleming1-1/+1
being passed to printf()-like functions and ignored results from read()/write() and friends git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@153337 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05Use PATH_MAX for filenamesseanbright1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@135597 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27When showing an error message for a command, don't shorten the command output,tilghman1-1/+1
as it tends to confuse the user (it's fine for suggesting other commands, however). Reported by: seanbright (on #asterisk-dev) Fixed by: me git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118551 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09Correctly display a message if a command could not be found.qwell1-5/+4
Also fix a comment which may have led to this happening. Issue 11718, reported by kshumard. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97622 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09Fix some locking and return value funkiness. We really shouldn't be ↵qwell1-5/+10
unlocking this lock inside of a function, unless we locked it there too. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97618 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09Allow filename completion on zero-length modules, remove a memory leak, removetilghman1-6/+12
a file descriptor leak, and make filename completion thread-safe. Patched and tested by tilghman. (Closes issue #11681) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97350 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-13Fix an issue with console verbosity when running asterisk -rx to execute a ↵russell1-2/+5
command and retrieve its output. The issue was that there was no way for the main Asterisk process to know that the remote console was connecting in the -rx mode. The way that James has fixed this is to have all remote consoles muted by default. Then, regular remote consoles automatically execute a CLI command to unmute themselves when they first start up. (closes issue #10847) Reported by: atis Patches: asterisk-consolemute.diff.txt uploaded by jamesgolovich (license 176) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85533 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-13Properly handle the case where read() may return the text for more than onerussell1-0/+17
CLI command at once for a remote console. (closes issue #10888) Reported by: jamesgolovich Patches: asterisk-climultiple.diff.txt uploaded by jamesgolovich (license 176) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85532 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01(closes issue #10351)file1-1/+1
Reported by: ftarz Some platforms don't like it when you pass NULL to vsnprintf so pass "" instead. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77871 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-25Merged revisions 61804 via svnmerge from file1-21/+13
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r61804 | file | 2007-04-25 14:52:50 -0400 (Wed, 25 Apr 2007) | 2 lines Merge rewritten group counting support. No more storing data on the variable list of the channels. That was bad, mmmk? (issue #7497 reported by sabbathbh) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@61805 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-22Print out deprecation notice on usage output of CLI commands. (issue #8925 ↵file1-0/+4
reported by blitzrage) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@56008 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-10Bring deprecated 'debug channel <x|all>' command backpcadach1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53878 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-18Fix an issue with file name completion in "module load" and "load".qwell1-3/+24
Issue 8846 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51245 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-09Re-add CLI command that should have only been deprecated in 1.4.qwell1-2/+22
Thanks kshumard! (reported in person, so no associated issue #) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@50186 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28Fix some deprecated commands.qwell1-6/+177
Issue 8682, patch by me git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49035 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-01Double-unlock error (reported by blitzrage on IRC)tilghman1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48179 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15fix longest match search in find_cli.rizzo1-1/+3
Trunk already fixed. 1.2 not affected (well, i have no idea, the code is totally different there). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47672 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13Re-enable old deprecated commandstilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47573 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13Free full command string upon unregistering of CLI command. Backported from ↵file1-0/+1
revision 47536 from rizzo. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47542 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-10Discussion of these CLI changes resulted in more consistency (Bug 8236)tilghman1-73/+165
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47436 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09fix tab completion for "core debug channel" and "core no debug channel"russell1-2/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47377 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09Fix "core show channel". Also, fix tab completion for both "core show channel"russell1-5/+5
and "core show channels". git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47375 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09Fix "core debug channel <whatever>". I guess someone needs to go through andrussell1-4/+4
audit every CLI command that changed number of arguments ... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47372 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09Fix another CLI command, "core show uptime" ...russell1-2/+2
(issue #8323, reported by johnlange, fixed by myself) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47366 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04Fix another bug in "core set debug" ...russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47196 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04Really fix the "core set debug" and "core set verbose" CLI commands.russell1-12/+12
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47195 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04fix the "atleast" option to the "core set verbose" and "core set debug"russell1-2/+2
CLI commands git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47192 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02Reverse change of "show" to "list" and make several other commands more ↵tilghman1-145/+32
consistent with "category verb arguments" git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47051 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25apparently developers are still not aware that they should be use ↵kpfleming1-2/+1
ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46200 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29Fix a bug with the removal of 'atleast' argument to 'core verbose' and 'core ↵qwell1-11/+52
debug'. Add that argument back in. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44053 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29proper fix for ast_group_t changekpfleming1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43978 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Warning be gone!file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43913 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Merged revisions 43895 via svnmerge from kpfleming1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43895 | kpfleming | 2006-09-28 11:32:44 -0500 (Thu, 28 Sep 2006) | 2 lines eliminate compiler warning introduced by recent changes ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43898 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-26Merged revisions 43705 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43705 | file | 2006-09-26 16:38:06 -0400 (Tue, 26 Sep 2006) | 2 lines Use proper type to represent the group variable (issue #8025 reported by makoto) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43707 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-22Make sure we explicitly set the CLI command to not be deprecated, if it isn't.qwell1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43492 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18merge qwell's CLI verbification workkpfleming1-68/+449
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-0/+1390
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b