]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
MOH usage information needs a terminating newline, or else
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 19 Apr 2008 13:49:50 +0000 (13:49 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 19 Apr 2008 13:49:50 +0000 (13:49 +0000)
"asterisk -rx 'help moh reload'" will hang.  Reported via
-dev list, fixed by me.

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

res/res_musiconhold.c

index 491eacb8bb1131aed6d0867ff7a06f76345e6a39..31cc39130015cad02b0908e0730cf7a1d45f583d 100644 (file)
@@ -1249,15 +1249,15 @@ static struct ast_cli_entry cli_moh_files_show_deprecated = {
 static struct ast_cli_entry cli_moh[] = {
        { { "moh", "reload"},
        moh_cli, "Music On Hold",
-       "Music On Hold" },
+       "Usage: moh reload\n    Rereads configuration\n" },
 
        { { "moh", "show", "classes"},
        moh_classes_show, "List MOH classes",
-       "Lists all MOH classes", NULL, &cli_moh_classes_show_deprecated },
+       "Usage: moh show classes\n    Lists all MOH classes\n", NULL, &cli_moh_classes_show_deprecated },
 
        { { "moh", "show", "files"},
        cli_files_show, "List MOH file-based classes",
-       "Lists all loaded file-based MOH classes and their files", NULL, &cli_moh_files_show_deprecated },
+       "Usage: moh show files\n    Lists all loaded file-based MOH classes and their files\n", NULL, &cli_moh_files_show_deprecated },
 };
 
 static int init_classes(int reload)