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_skinny.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_skinny.c')
-rw-r--r-- | channels/chan_skinny.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index a5925d65b..5a5deb1a3 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -1753,7 +1753,7 @@ static struct ast_rtp_protocol skinny_rtp = { static int skinny_do_debug(int fd, int argc, char *argv[]) { - if (argc != 2) { + if (argc != 3) { return RESULT_SHOWUSAGE; } skinnydebug = 1; @@ -1763,7 +1763,7 @@ static int skinny_do_debug(int fd, int argc, char *argv[]) static int skinny_no_debug(int fd, int argc, char *argv[]) { - if (argc != 3) { + if (argc != 4) { return RESULT_SHOWUSAGE; } skinnydebug = 0; @@ -1960,11 +1960,11 @@ static char show_lines_usage[] = " Lists all lines known to the Skinny subsystem.\n"; static char debug_usage[] = -"Usage: skinny debug\n" +"Usage: skinny set debug\n" " Enables dumping of Skinny packets for debugging purposes\n"; static char no_debug_usage[] = -"Usage: skinny no debug\n" +"Usage: skinny set debug off\n" " Disables dumping of Skinny packets for debugging purposes\n"; static char reset_usage[] = @@ -1980,11 +1980,11 @@ static struct ast_cli_entry cli_skinny[] = { skinny_show_lines, "List defined Skinny lines per device", show_lines_usage }, - { { "skinny", "debug", NULL }, + { { "skinny", "set", "debug", NULL }, skinny_do_debug, "Enable Skinny debugging", debug_usage }, - { { "skinny", "debug", "off", NULL }, + { { "skinny", "set", "debug", "off", NULL }, skinny_no_debug, "Disable Skinny debugging", no_debug_usage }, |