|
|
@ -548,7 +548,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
|
|
|
|
|
|
|
|
|
|
|
|
end = start = time(NULL); /* pre-initialize end to be same as start in case we never get into loop */
|
|
|
|
end = start = time(NULL); /* pre-initialize end to be same as start in case we never get into loop */
|
|
|
|
for (x = 0; x < fmtcnt; x++) {
|
|
|
|
for (x = 0; x < fmtcnt; x++) {
|
|
|
|
others[x] = ast_writefile(prepend ? prependfile : recordfile, sfmt[x], comment, O_TRUNC, 0, 0700);
|
|
|
|
others[x] = ast_writefile(prepend ? prependfile : recordfile, sfmt[x], comment, O_TRUNC, 0, 0777);
|
|
|
|
if (option_verbose > 2)
|
|
|
|
if (option_verbose > 2)
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "x=%d, open writing: %s format: %s, %p\n", x, prepend ? prependfile : recordfile, sfmt[x], others[x]);
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "x=%d, open writing: %s format: %s, %p\n", x, prepend ? prependfile : recordfile, sfmt[x], others[x]);
|
|
|
|
|
|
|
|
|
|
|
|