[Asterisk-code-review] app record: RECORDED FILE variable not being populated (asterisk[certified/13.1])
    Kevin Harwell 
    asteriskteam at digium.com
       
    Mon Sep 21 18:11:20 CDT 2015
    
    
  
Kevin Harwell has uploaded a new change for review.
  https://gerrit.asterisk.org/1292
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/92/1292/1
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: newchange
Gerrit-Change-Id: I4ec826d8eb582ae2ad184e717be8668b74d37653
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: certified/13.1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
    
    
More information about the asterisk-code-review
mailing list