]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add "restart gracefully" to the AMI blacklist of CLI commands.
authorRussell Bryant <russell@russellbryant.com>
Tue, 16 Dec 2008 20:35:25 +0000 (20:35 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 16 Dec 2008 20:35:25 +0000 (20:35 +0000)
"module unload" was already identified as a command that can not be used
from the AMI.  "restart gracefully" effectively unloads all modules, and will
run in to the same problems.

(closes issue #13894)
Reported by: kernelsensei

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@164806 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 61ae08a492de7c2a68c517273013af15b148642a..c0245ad2a16f3f12ce794258dc37886817dad9a7 100644 (file)
@@ -138,6 +138,7 @@ static struct {
 } command_blacklist[] = {
        {{ "module", "load", NULL }},
        {{ "module", "unload", NULL }},
+       {{ "restart", "gracefully", NULL }},
 };
 
 struct mansession {