summaryrefslogtreecommitdiff
path: root/apps/app_record.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2015-09-21 18:06:15 -0500
committerKevin Harwell <kharwell@digium.com>2015-09-21 18:10:21 -0500
commitc74101509d1aac28d669a7ea0746635b17b2341c (patch)
tree715a202d54daad1bc8f54d1464707944c2bf590b /apps/app_record.c
parent4c2b77618c895aeb8db6cb01b72380dcbf0f926f (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/app_record.c')
-rw-r--r--apps/app_record.c3
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) {