From 02af3354001f061aba0e72270ec3edf4ea7e2146 Mon Sep 17 00:00:00 2001 From: mvanbaak Date: Thu, 9 Oct 2008 17:01:24 +0000 Subject: [PATCH] fix some CLI commands we borked during devcon2008 Thanks rmudget for letting me know and providing hints on how to fix it best. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147853 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_dahdi.c | 2 +- channels/chan_h323.c | 3 +++ channels/chan_misdn.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 9adad9c4d..4059eae0c 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -11654,7 +11654,7 @@ static char *handle_pri_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_a int level = 0; switch (cmd) { case CLI_INIT: - e->command = "pri set debug {|on|off} span"; + e->command = "pri set debug [on|off] span"; e->usage = "Usage: pri set debug span \n" " Enables debugging on a given PRI span\n"; diff --git a/channels/chan_h323.c b/channels/chan_h323.c index b374aff0f..7bb923811 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -2633,6 +2633,9 @@ static char *handle_cli_h323_set_trace(struct ast_cli_entry *e, int cmd, struct if (!strcasecmp(a->argv[3], "off")) { h323_debug(0, 0); ast_cli(a->fd, "H.323 Trace Disabled\n"); + } else if (!strcasecmp(a->argv[3], "on")) { + h323_debug(1, 1); + ast_cli(a->fd, "H.323 Trace Enabled\n"); } else { int tracelevel = atoi(a->argv[3]); h323_debug(1, tracelevel); diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 7f71df079..25316a0dc 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -737,7 +737,7 @@ static char *handle_cli_misdn_set_debug(struct ast_cli_entry *e, int cmd, struct switch (cmd) { case CLI_INIT: - e->command = "misdn set debug {on|off|}"; + e->command = "misdn set debug [on|off]"; e->usage = "Usage: misdn set debug {on|off|} [only] | [port [only]]\n" " Set the debug level of the mISDN channel.\n";