mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
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:
@@ -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 = "*";
|
||||
|
Reference in New Issue
Block a user