diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-02 23:49:13 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-02 23:49:13 +0000 |
commit | 37c4cd900630f4bdf2a584030a8527a9c89dd7b8 (patch) | |
tree | 9335be1d860822d8f2f9c203b8afd5c9ddf540a6 /channels/chan_h323.c | |
parent | c771976500a03e9be6ca67f3c3ccc31f6c32f232 (diff) |
More changes making the CLI more consistent with "category verb arguments" (continuation of issue 8236)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47053 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r-- | channels/chan_h323.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 861640be5..7163d1aa0 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -2612,7 +2612,7 @@ static char trace_usage[] = " Enables H.323 stack tracing for debugging purposes\n"; static char no_trace_usage[] = -"Usage: h.323 no trace\n" +"Usage: h.323 trace off\n" " Disables H.323 stack tracing for debugging purposes\n"; static char debug_usage[] = @@ -2620,7 +2620,7 @@ static char debug_usage[] = " Enables H.323 debug output\n"; static char no_debug_usage[] = -"Usage: h.323 no debug\n" +"Usage: h.323 debug off\n" " Disables H.323 debug output\n"; static char show_cycle_usage[] = @@ -2639,22 +2639,32 @@ static char h323_reload_usage[] = "Usage: h323 reload\n" " Reloads H.323 configuration from h323.conf\n"; +static struct ast_cli_entry cli_h323_no_trace_deprecated = { + { { "h.323", "no", "trace", NULL }, + h323_no_trace, "Disable H.323 Stack Tracing", + no_trace_usage }; + +static struct ast_cli_entry cli_h323_no_debug_deprecated = { + { { "h.323", "no", "debug", NULL }, + h323_no_debug, "Disable H.323 debug", + no_debug_usage }; + static struct ast_cli_entry cli_h323[] = { { { "h.323", "trace", NULL }, h323_do_trace, "Enable H.323 Stack Tracing", trace_usage }, - { { "h.323", "no", "trace", NULL }, + { { "h.323", "trace", "off", NULL }, h323_no_trace, "Disable H.323 Stack Tracing", - no_trace_usage }, + no_trace_usage, NULL, cli_h323_no_trace_deprecated }, { { "h.323", "debug", NULL }, h323_do_debug, "Enable H.323 debug", debug_usage }, - { { "h.323", "no", "debug", NULL }, + { { "h.323", "debug", "off", NULL }, h323_no_debug, "Disable H.323 debug", - no_debug_usage }, + no_debug_usage, NULL, cli_h323_no_debug_deprecated }, { { "h.323", "gk", "cycle", NULL }, h323_gk_cycle, "Manually re-register with the Gatekeper", |