From: Russell Bryant Date: Tue, 1 Nov 2005 01:28:43 +0000 (+0000) Subject: Actually write audio to file in get_voice (issue #5547) X-Git-Tag: 1.0.11.1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31c57904fd0052c9714f77192af5962b0e7ebf9e;p=thirdparty%2Fasterisk.git Actually write audio to file in get_voice (issue #5547) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6920 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/app.c b/app.c index bccac6915c..72617fd7ee 100755 --- a/app.c +++ b/app.c @@ -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); }