diff --git a/apps/app_record.c b/apps/app_record.c index 243977ffbb1b2894f8be8705ac9bf1ea312b28d9..5c8f769024a3c7f79702c030490b7f8cac466a34 100644 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -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; }