Fix Record with "." in filename (bug #2923)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-11-23 02:35:46 +00:00
parent 239f1a0ef9
commit c0fc084559
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ static int record_exec(struct ast_channel *chan, void *data)
if (filename) {
if (strstr(filename, "%d"))
percentflag = 1;
ext = strchr(filename, '.');
ext = strrchr(filename, '.'); /* to support filename with a . in the filename, not format */
if (!ext)
ext = strchr(filename, ':');
if (ext) {