diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index a9fdc2746975cf0380b825c2d27868ba7318055e..c6cfb96728e980ca74456e5ab93fc09e36d292c9 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -568,7 +568,7 @@ static void *monmp3thread(void *data) } res = 8 * MOH_MS_INTERVAL; /* 8 samples per millisecond */ } - if ((strncasecmp(class->dir, "http://", 7) && strncasecmp(class->dir, "nodir")) && AST_LIST_EMPTY(&class->members)) + if ((strncasecmp(class->dir, "http://", 7) && strcasecmp(class->dir, "nodir")) && AST_LIST_EMPTY(&class->members)) continue; /* Read mp3 audio */ len = ast_codec_get_len(class->format, res);