Skip to content
Snippets Groups Projects
Commit 284a5b34 authored by Mark Spencer's avatar Mark Spencer
Browse files

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
parent 25d74e03
Branches
Tags
No related merge requests found
...@@ -114,6 +114,7 @@ static int record_exec(struct ast_channel *chan, void *data) ...@@ -114,6 +114,7 @@ static int record_exec(struct ast_channel *chan, void *data)
snprintf(tmp, 256, fil, count); snprintf(tmp, 256, fil, count);
count++; count++;
} while ( ast_fileexists(tmp, ext, chan->language) != -1 ); } while ( ast_fileexists(tmp, ext, chan->language) != -1 );
pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
} else } else
strncpy(tmp, fil, 256-1); strncpy(tmp, fil, 256-1);
/* end of routine mentioned */ /* end of routine mentioned */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment