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:10:21 -0500 |
commit | c74101509d1aac28d669a7ea0746635b17b2341c (patch) | |
tree | 715a202d54daad1bc8f54d1464707944c2bf590b | |
parent | 4c2b77618c895aeb8db6cb01b72380dcbf0f926f (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
-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 ed54a7789..fcd893876 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) { |