diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-01 01:28:43 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-01 01:28:43 +0000 |
commit | 55276440f6673edc83b69dfb985d179aa9c7d260 (patch) | |
tree | 6f74159c15d046b39e619b41767923548f0969aa | |
parent | 0784001afdf2d9e6f7df07f699b6eb15d50b4b6a (diff) |
Actually write audio to file in get_voice (issue #5547)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@6920 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | app.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -136,6 +136,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); } |