From 8999372c33c0f188bd92eff24892302ede1bf6ad Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Wed, 26 May 2010 20:04:51 +0000 Subject: Fix misspelling of macro args. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@266092 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'res/res_musiconhold.c') 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; } -- cgit v1.2.3