]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make voicemail2 save video too, if available
authorMark Spencer <markster@digium.com>
Sun, 29 Jun 2003 04:03:09 +0000 (04:03 +0000)
committerMark Spencer <markster@digium.com>
Sun, 29 Jun 2003 04:03:09 +0000 (04:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1133 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail2.c

index ed729f8c297b63072f27c0db73e593e85b1f868f..719a785d19c58995ba8e36ec86765983dad6363f 100755 (executable)
@@ -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)