[asterisk-commits] app record: RECORDED FILE variable not being populated (asterisk[certified/13.1])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 22 07:40:26 CDT 2015
Matt Jordan has submitted this change and it was merged.
Change subject: app_record: RECORDED_FILE variable not being populated
......................................................................
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
---
M apps/app_record.c
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Anonymous Coward #1000019: Verified
Matt Jordan: Looks good to me, approved
Joshua Colp: Looks good to me, but someone else must approve
diff --git a/apps/app_record.c b/apps/app_record.c
index 43a1e49..31a54e6 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -294,9 +294,10 @@
}
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) {
--
To view, visit https://gerrit.asterisk.org/1292
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4ec826d8eb582ae2ad184e717be8668b74d37653
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: certified/13.1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
More information about the asterisk-commits
mailing list