diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-11-13 19:10:28 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-11-13 19:10:28 +0000 |
commit | 85c6ae76ab489a8fc97ec5f40142bb8263a7aa78 (patch) | |
tree | ea0b5030c37f46bc663c2d905baa9411abb44820 /channels | |
parent | fcf93eb5d63eadaf889011d4bb8be502fb5a978e (diff) |
Command offsets were not changed correctly when the command syntax for
'pri set debug' was changed from 'pri debug'.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@156647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-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 f36db2ce1..c975a1eea 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -11806,12 +11806,12 @@ static char *handle_pri_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_a return CLI_SHOWUSAGE; } - if (!strcasecmp(a->argv[4], "on")) { + if (!strcasecmp(a->argv[3], "on")) { level = 1; - } else if (!strcasecmp(a->argv[4], "off")) { + } else if (!strcasecmp(a->argv[3], "off")) { level = 0; } else { - level = atoi(a->argv[4]); + level = atoi(a->argv[3]); } span = atoi(a->argv[5]); if ((span < 1) || (span > NUM_SPANS)) { |