diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-10 16:51:55 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-10 16:51:55 +0000 |
commit | 24b76f7acb42526b281446b6439a7a26da892771 (patch) | |
tree | 7e3c19818310f61a5fa8252c11aa4d83349d42f1 /channels/chan_mgcp.c | |
parent | 81e083c12a277ee3fdc6aecb5b84a921c14370ac (diff) |
Discussion of these CLI changes resulted in more consistency (Bug 8236)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47436 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_mgcp.c')
-rw-r--r-- | channels/chan_mgcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 3ff791a6f..ff6087156 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -1049,11 +1049,11 @@ static char audit_endpoint_usage[] = " mgcp debug MUST be on to see the results of this command.\n"; static char debug_usage[] = -"Usage: mgcp debug\n" +"Usage: mgcp set debug\n" " Enables dumping of MGCP packets for debugging purposes\n"; static char no_debug_usage[] = -"Usage: mgcp debug off\n" +"Usage: mgcp set debug off\n" " Disables dumping of MGCP packets for debugging purposes\n"; static char mgcp_reload_usage[] = @@ -1116,7 +1116,7 @@ static int mgcp_audit_endpoint(int fd, int argc, char *argv[]) static int mgcp_do_debug(int fd, int argc, char *argv[]) { - if (argc != 2) + if (argc != 3) return RESULT_SHOWUSAGE; mgcpdebug = 1; ast_cli(fd, "MGCP Debugging Enabled\n"); @@ -1125,7 +1125,7 @@ static int mgcp_do_debug(int fd, int argc, char *argv[]) static int mgcp_no_debug(int fd, int argc, char *argv[]) { - if (argc != 3) + if (argc != 4) return RESULT_SHOWUSAGE; mgcpdebug = 0; ast_cli(fd, "MGCP Debugging Disabled\n"); @@ -1141,11 +1141,11 @@ static struct ast_cli_entry cli_mgcp[] = { mgcp_show_endpoints, "List defined MGCP endpoints", show_endpoints_usage }, - { { "mgcp", "debug", NULL }, + { { "mgcp", "set", "debug", NULL }, mgcp_do_debug, "Enable MGCP debugging", debug_usage }, - { { "mgcp", "debug", "off", NULL }, + { { "mgcp", "set", "debug", "off", NULL }, mgcp_no_debug, "Disable MGCP debugging", no_debug_usage }, |