diff options
author | Mark Spencer <markster@digium.com> | 2003-06-29 04:03:09 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-06-29 04:03:09 +0000 |
commit | 8a201156150c798db9510253b8338f1bfbf4a841 (patch) | |
tree | d87690457f3ba4aefdbd5079dbb4df4b3f64751a /apps | |
parent | 817fc344e7fa2eb61f91742f80f83416262c9754 (diff) |
Make voicemail2 save video too, if available
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c index ed729f8c2..719a785d1 100755 --- a/apps/app_voicemail2.c +++ b/apps/app_voicemail2.c @@ -870,6 +870,9 @@ static int play_and_record(struct ast_channel *chan, char *playfile, char *recor ast_frfree(f); break; } + } else if (f->frametype == AST_FRAME_VIDEO) { + /* Write only once */ + ast_writestream(others[0], f); } else if (f->frametype == AST_FRAME_DTMF) { if (f->subclass == '#') { if (option_verbose > 2) |