summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-10-30 06:58:17 +0000
committerMark Spencer <markster@digium.com>2005-10-30 06:58:17 +0000
commit388f958ecc2714820a130b4f9dceb8f3328a3b1e (patch)
treebdc6ee9f52e877889d2431713848624475012f5a /app.c
parent754e28abaf031b65c523bb14913cffbdc17afa41 (diff)
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
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/app.c b/app.c
index 18bb0ce86..b547a037b 100755
--- a/app.c
+++ b/app.c
@@ -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);
}