Index: app_record.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_record.c,v retrieving revision 1.27 diff -u -r1.27 app_record.c --- app_record.c 17 Nov 2004 03:34:56 -0000 1.27 +++ app_record.c 23 Nov 2004 03:18:01 -0000 @@ -102,7 +102,7 @@ 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) {