mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
app_record: RECORDED_FILE variable not being populated
The RECORDED_FILE variable is empty unless a '%d' is specified in the filename. This patch makes it so the variable is always set to the filename. ASTERISK-25410 #close Change-Id: I4ec826d8eb582ae2ad184e717be8668b74d37653
This commit is contained in:
@@ -294,9 +294,10 @@ static int record_exec(struct ast_channel *chan, const char *data)
|
|||||||
}
|
}
|
||||||
count++;
|
count++;
|
||||||
} while (ast_fileexists(tmp, ext, ast_channel_language(chan)) > 0);
|
} while (ast_fileexists(tmp, ext, ast_channel_language(chan)) > 0);
|
||||||
pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
|
|
||||||
} else
|
} else
|
||||||
ast_copy_string(tmp, args.filename, sizeof(tmp));
|
ast_copy_string(tmp, args.filename, sizeof(tmp));
|
||||||
|
|
||||||
|
pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
|
||||||
/* end of routine mentioned */
|
/* end of routine mentioned */
|
||||||
|
|
||||||
if (ast_channel_state(chan) != AST_STATE_UP) {
|
if (ast_channel_state(chan) != AST_STATE_UP) {
|
||||||
|
Reference in New Issue
Block a user