Index: res/res_musiconhold.c =================================================================== --- res/res_musiconhold.c (revision 251399) +++ res/res_musiconhold.c (working copy) @@ -1433,6 +1433,10 @@ } } + if (ast_test_flag(global_flags, MOH_CACHERTCLASSES)) { + mohclass = get_mohbyname(mohclass->name, 0); + } + if (!mohclass) { return -1; }