]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
support video recording via AGI 'RECORD FILE' command (issue #7068)
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 24 May 2006 16:59:20 +0000 (16:59 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 24 May 2006 16:59:20 +0000 (16:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29973 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 8f96544433316f914dc15cec1012c1ba081cfcef..14713fcc25cc1e20df6c86471517f58b44409774 100644 (file)
@@ -941,6 +941,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 */
@@ -1004,6 +1007,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)