Skip to content
Snippets Groups Projects
Commit dd45d185 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

Merged revisions 29973 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r29973 | kpfleming | 2006-05-24 11:59:20 -0500 (Wed, 24 May 2006) | 2 lines

support video recording via AGI 'RECORD FILE' command (issue #7068)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6e307c1d
Branches
Tags
No related merge requests found
......@@ -902,6 +902,9 @@ static int handle_recordfile(struct ast_channel *chan, AGI *agi, int argc, char
return RESULT_FAILURE;
}
/* Request a video update */
ast_indicate(chan, AST_CONTROL_VIDUPDATE);
chan->stream = fs;
ast_applystream(chan,fs);
/* really should have checks */
......@@ -965,6 +968,9 @@ static int handle_recordfile(struct ast_channel *chan, AGI *agi, int argc, char
}
}
break;
case AST_FRAME_VIDEO:
ast_writestream(fs, f);
break;
}
ast_frfree(f);
if (gotsilence)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment