diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-12-31 21:52:02 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-12-31 21:52:02 +0000 |
commit | 4412a4ba2461eaab4607310a7adc4c9aa4f3c4e8 (patch) | |
tree | 06b3536ea4815318c26094e28f2ea5b8633ebd2a /channels/chan_dahdi.c | |
parent | dca80878af43c80b55432e3c7a409e76a35246b4 (diff) |
Change some incorrect syntax for pri set debug and correct
an off-by-one error in ss7 set debug command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@167021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 7da671cd9..218d55079 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -11875,9 +11875,9 @@ 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 <level|on|off> span <span>\n" + "Usage: pri set debug {<level>|on|off} span <span>\n" " Enables debugging on a given PRI span\n"; return NULL; case CLI_GENERATE: @@ -13333,7 +13333,7 @@ static char *handle_ss7_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_a return CLI_SUCCESS; } if (linksets[span-1].ss7) { - if (strcasecmp(a->argv[4], "on")) { + if (strcasecmp(a->argv[3], "on")) { ss7_set_debug(linksets[span-1].ss7, SS7_DEBUG_MTP2 | SS7_DEBUG_MTP3 | SS7_DEBUG_ISUP); ast_cli(a->fd, "Enabled debugging on linkset %d\n", span); } else { |