From 234408e7c18584d67a07394f6f2b862fca46892f Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 31 Oct 2006 06:13:09 +0000 Subject: [PATCH] fix some copy/paste bugs in the checking of arguments for the "control stream file" AGI command (issue #8255, mnicholson) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46557 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_agi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/res_agi.c b/res/res_agi.c index 56ab7bf422..022cee46ea 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -507,12 +507,12 @@ static int handle_controlstreamfile(struct ast_channel *chan, AGI *agi, int argc if ((argc > 5) && (sscanf(argv[5], "%d", &skipms) != 1)) return RESULT_SHOWUSAGE; - if (argc > 6 && !ast_strlen_zero(argv[8])) + if (argc > 6 && !ast_strlen_zero(argv[6])) fwd = argv[6]; else fwd = "#"; - if (argc > 7 && !ast_strlen_zero(argv[8])) + if (argc > 7 && !ast_strlen_zero(argv[7])) rev = argv[7]; else rev = "*";