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 */