aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-01 01:28:43 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-01 01:28:43 +0000
commit55276440f6673edc83b69dfb985d179aa9c7d260 (patch)
tree6f74159c15d046b39e619b41767923548f0969aa
parent0784001afdf2d9e6f7df07f699b6eb15d50b4b6a (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-xapp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/app.c b/app.c
index bccac6915..72617fd7e 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);
}