aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-12 16:50:37 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-12 16:50:37 +0000
commite91f2d5af17b9b9c9379034460b7e6a87032f11d (patch)
tree4ff1af4c3ffaa1d366fff49e7f7da52b7f4d13c1 /res
parentd13add795fd4e30f075317e9f261cd7c4f6182f1 (diff)
Fix another scenario where depending on configuration the stream would not get read.
For custom commands we don't know whether the audio is coming from a stream or not so we are going to have to read the data despite no channels. (closes issue #14416) Reported by: caspy git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@181659 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 0f248ded1..5fe2e4157 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -557,7 +557,7 @@ static void *monmp3thread(void *data)
}
res = 8 * MOH_MS_INTERVAL; /* 8 samples per millisecond */
}
- if (strncasecmp(class->dir, "http://", 7) && 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);