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
changes/90/1290/1
Kevin Harwell 10 years ago
parent 4c2b77618c
commit c74101509d

@ -294,9 +294,10 @@ static int record_exec(struct ast_channel *chan, const char *data)
} }
count++; count++;
} while (ast_fileexists(tmp, ext, ast_channel_language(chan)) > 0); } while (ast_fileexists(tmp, ext, ast_channel_language(chan)) > 0);
pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
} else } else
ast_copy_string(tmp, args.filename, sizeof(tmp)); ast_copy_string(tmp, args.filename, sizeof(tmp));
pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
/* end of routine mentioned */ /* end of routine mentioned */
if (ast_channel_state(chan) != AST_STATE_UP) { if (ast_channel_state(chan) != AST_STATE_UP) {

Loading…
Cancel
Save