diff options
author | Matt Jordan <mjordan@digium.com> | 2015-09-22 07:40:19 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-09-22 07:40:20 -0500 |
commit | 0ce661f0c03461a2ba217065efd19834f34cf2e1 (patch) | |
tree | d82e8624296afa8ac013fa00b9e9a720f7f79c31 | |
parent | a45abbf3ceabbbb390d9edb0e559d3a9fec0871b (diff) | |
parent | aeddee39fb492ea5ec873bdf02ea3858c5282601 (diff) |
Merge "app_record: RECORDED_FILE variable not being populated" into 13
-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) { |