aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 8f9654443..14713fcc2 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -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)