aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-26 20:04:51 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-26 20:04:51 +0000
commit3bcdf0a0382177e8d9991bf4634437f87185aa33 (patch)
tree252e4280bb41490f2f6c48d42842ef5581047fc2 /res
parent2e55ca61dd106eb50b780bcbe81e7f789389fea9 (diff)
Fix misspelling of macro args.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@266092 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_musiconhold.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 4d2c9ec49..5527109c4 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1443,6 +1443,10 @@ static int local_ast_moh_start(struct ast_channel *chan, const char *mclass, con
}
}
+ if (ast_test_flag(global_flags, MOH_CACHERTCLASSES)) {
+ mohclass = get_mohbyname(mohclass->name, 0);
+ }
+
if (!mohclass) {
return -1;
}