From 284a5b3465b49cf79a37e93235bf9493a164d54c Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Mon, 22 Mar 2004 04:04:07 +0000
Subject: [PATCH] Store recorded file in RECORDED_FILE if %d is used... (bug
 #1062)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_record.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/app_record.c b/apps/app_record.c
index 29d98f7601..80dd1da899 100755
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -114,6 +114,7 @@ static int record_exec(struct ast_channel *chan, void *data)
 			snprintf(tmp, 256, fil, count);
 			count++;
 		} while ( ast_fileexists(tmp, ext, chan->language) != -1 );
+		pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
 	} else
 		strncpy(tmp, fil, 256-1);
 	/* end of routine mentioned */
-- 
GitLab