diff options
-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) { |