[Asterisk-code-review] app record: RECORDED FILE variable not being populated (asterisk[11])

Kevin Harwell asteriskteam at digium.com
Mon Sep 21 18:11:02 CDT 2015


Kevin Harwell has uploaded a new change for review.

  https://gerrit.asterisk.org/1291

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(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/91/1291/1

diff --git a/apps/app_record.c b/apps/app_record.c
index 233598c..28316f9 100644
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -257,9 +257,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/1291
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ec826d8eb582ae2ad184e717be8668b74d37653
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-code-review mailing list