fix for bugid: 0007830
authorAnthony LaMantia <alamantia@digium.com>
Thu, 31 Aug 2006 20:49:26 +0000 (20:49 +0000)
committerAnthony LaMantia <alamantia@digium.com>
Thu, 31 Aug 2006 20:49:26 +0000 (20:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41630 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_record.c

index 243977f..5c8f769 100644 (file)
@@ -302,6 +302,10 @@ static int record_exec(struct ast_channel *chan, void *data)
                        }
                } else if ((f->frametype == AST_FRAME_DTMF) &&
                    (f->subclass == terminator)) {
+                        res = ast_writestream(s,f);
+                        if(res) {
+                               ast_log(LOG_WARNING,"Problem writing final recoard frame\n");
+                        }               
                        ast_frfree(f);
                        break;
                }