Skip to content
Snippets Groups Projects
Commit 388f958e authored by Mark Spencer's avatar Mark Spencer
Browse files

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
parent 754e28ab
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment