]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make the new "agi debug off" CLI command work. (issue #9890 reported by eliel)
authorJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 12:34:06 +0000 (12:34 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 12:34:06 +0000 (12:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67597 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 02ca5dccd0195d0379caf9825d8cd98381119a83..9f20c8f9ca4c702acd11b4adebcb00625e9f8452 100644 (file)
@@ -1314,7 +1314,7 @@ static char debug_usage[] =
 "       Enables dumping of AGI transactions for debugging purposes\n";
 
 static char no_debug_usage[] = 
-"Usage: agi nodebug\n"
+"Usage: agi debug off\n"
 "       Disables dumping of AGI transactions for debugging purposes\n";
 
 static int agi_do_debug(int fd, int argc, char *argv[])
@@ -1337,7 +1337,7 @@ static int agi_no_debug_deprecated(int fd, int argc, char *argv[])
 
 static int agi_no_debug(int fd, int argc, char *argv[])
 {
-       if (argc != 2)
+       if (argc != 3)
                return RESULT_SHOWUSAGE;
        agidebug = 0;
        ast_cli(fd, "AGI Debugging Disabled\n");