aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}