Actually write audio to file in get_voice (bug #5547)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-10-30 06:58:17 +00:00
parent 754e28abaf
commit 388f958ecc

7
app.c
View File

@@ -210,6 +210,13 @@ int ast_app_getvoice(struct ast_channel *c, char *dest, char *dstfmt, char *prom
ast_frfree(f);
break;
}
res = ast_writestream(writer, f);
if (res < 0) {
ast_log(LOG_WARNING, "Failed to write to stream at %s!\n", dest);
ast_frfree(f);
break;
}
}
ast_frfree(f);
}