diff options
author | Kevin Harwell <kharwell@digium.com> | 2015-09-21 18:06:15 -0500 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2015-09-21 18:06:15 -0500 |
commit | aeddee39fb492ea5ec873bdf02ea3858c5282601 (patch) | |
tree | aea14be26a935d831dbb2061d54f6dca000d90f3 /apps | |
parent | 960f00939aeb369891727b83c5b35c309611185f (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_record.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_record.c b/apps/app_record.c index 43a1e490f..31a54e663 100644 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -294,9 +294,10 @@ static int record_exec(struct ast_channel *chan, const char *data) } count++; } while (ast_fileexists(tmp, ext, ast_channel_language(chan)) > 0); - pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp); } else ast_copy_string(tmp, args.filename, sizeof(tmp)); + + pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp); /* end of routine mentioned */ if (ast_channel_state(chan) != AST_STATE_UP) { |