diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-10 17:01:06 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-10 17:01:06 +0000 |
commit | 597aa05da580ab8d40c4e2bec66c321ed20803f3 (patch) | |
tree | f383932b2ec9f93ee875d3ca5e4bfca778865778 /channels/chan_mgcp.c | |
parent | fc1882af792ad211d1f52de1a6ce7e1172ae991f (diff) |
Merged revisions 47436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47436 | tilghman | 2006-11-10 10:51:55 -0600 (Fri, 10 Nov 2006) | 2 lines
Discussion of these CLI changes resulted in more consistency (Bug 8236)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47439 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 2e8011acc..f798bbd06 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -1054,11 +1054,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[] = @@ -1121,7 +1121,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"); @@ -1130,7 +1130,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"); @@ -1146,11 +1146,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 }, |