]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Actually write audio to file in get_voice (issue #5547)
authorRussell Bryant <russell@russellbryant.com>
Tue, 1 Nov 2005 01:28:43 +0000 (01:28 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 1 Nov 2005 01:28:43 +0000 (01:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6920 65c4cc65-6c06-0410-ace0-fbb531ad65f3

app.c

diff --git a/app.c b/app.c
index bccac6915c01c7dd40e76a83a034fb409145286e..72617fd7eec849fbc2fafda673ce9b4db51fb345 100755 (executable)
--- 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);
                }