diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-31 06:13:09 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-31 06:13:09 +0000 |
commit | 8ef2db3dbf77f28f564348d64d48ca853d8411a9 (patch) | |
tree | 2e603480b11ca9549afb06c48e6d56afafbb6de4 /res | |
parent | ba63f94f17532b227cf3f6c7f7726c8544239d47 (diff) |
fix some copy/paste bugs in the checking of arguments for the
"control stream file" AGI command (issue #8255, mnicholson)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46557 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_agi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 56ab7bf42..022cee46e 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 = "*"; |