aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_record.c')
-rwxr-xr-xapps/app_record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index 389f14d35..1a3a620aa 100755
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -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) {