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
This commit is contained in:
Russell Bryant
2006-10-31 06:13:09 +00:00
parent 0449e24db1
commit 234408e7c1

View File

@@ -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 = "*";