#6991. Take 3. (casper)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
BJ Weschke 19 years ago
parent 53e8e35d79
commit e7b7d41d73

@ -740,11 +740,13 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
} else {
ast_log(LOG_WARNING, "Error creating writestream '%s', format '%s'\n", recordfile, sfmt[x]);
}
if (!prepend) {
if (silgen)
ast_channel_stop_silence_generator(chan, silgen);
}
*duration = end - start;
if (!prepend) {
for (x = 0; x < fmtcnt; x++) {
if (!others[x])
@ -755,9 +757,11 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
ast_closestream(others[x]);
}
}
if (prepend && outmsg) {
struct ast_filestream *realfiles[MAX_OTHER_FORMATS];
struct ast_frame *fr;
for (x = 0; x < fmtcnt; x++) {
snprintf(comment, sizeof(comment), "Opening the real file %s.%s\n", recordfile, sfmt[x]);
realfiles[x] = ast_readfile(recordfile, sfmt[x], comment, O_RDONLY, 0, 0);

Loading…
Cancel
Save