mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 08:13:22 +00:00
Allow mixmon names to have dots (bug #5607)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6973 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -159,7 +159,7 @@ static void *mixmonitor_thread(void *obj)
|
|||||||
oflags = O_CREAT|O_WRONLY;
|
oflags = O_CREAT|O_WRONLY;
|
||||||
oflags |= ast_test_flag(mixmonitor, MUXFLAG_APPEND) ? O_APPEND : O_TRUNC;
|
oflags |= ast_test_flag(mixmonitor, MUXFLAG_APPEND) ? O_APPEND : O_TRUNC;
|
||||||
|
|
||||||
if ((ext = strchr(mixmonitor->filename, '.'))) {
|
if ((ext = strrchr(mixmonitor->filename, '.'))) {
|
||||||
*(ext++) = '\0';
|
*(ext++) = '\0';
|
||||||
} else {
|
} else {
|
||||||
ext = "raw";
|
ext = "raw";
|
||||||
|
Reference in New Issue
Block a user