summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-09-22 07:40:19 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2015-09-22 07:40:20 -0500
commit0ce661f0c03461a2ba217065efd19834f34cf2e1 (patch)
treed82e8624296afa8ac013fa00b9e9a720f7f79c31
parenta45abbf3ceabbbb390d9edb0e559d3a9fec0871b (diff)
parentaeddee39fb492ea5ec873bdf02ea3858c5282601 (diff)
Merge "app_record: RECORDED_FILE variable not being populated" into 13
-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 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) {