aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_musiconhold.c')
-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;
}