diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-24 16:59:20 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-24 16:59:20 +0000 |
commit | 709401939a46e3a9e7b5fdabedd3bab169f71947 (patch) | |
tree | 5a175f2c8afd468f2831b51863632956f89f740a /res | |
parent | 20942c8a97de6f595b7f9cdda67924f99a7f5c6a (diff) |
support video recording via AGI 'RECORD FILE' command (issue #7068)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@29973 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_agi.c | 6 |
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) |