aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-08 22:54:59 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-08 22:54:59 +0000
commite73a979682a3b4c499667dc5e0035dcf15064205 (patch)
treeacbd16e3b1acaccbf79ba9598c9bbbdbee10f92b /res/res_musiconhold.c
parentf4f0e41dab7a56e79eaa45e700df9e9a3f577f2f (diff)
Add the class actually used in the MusicOnHold start event.
(closes issue #16499) Reported by: syspert Patches: mohclass.patch uploaded by syspert (license 938) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238795 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index cbe42f06b..d01e87e24 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1436,8 +1436,10 @@ static int local_ast_moh_start(struct ast_channel *chan, const char *mclass, con
ast_manager_event(chan, EVENT_FLAG_CALL, "MusicOnHold",
"State: Start\r\n"
"Channel: %s\r\n"
- "UniqueID: %s\r\n",
- chan->name, chan->uniqueid);
+ "UniqueID: %s\r\n"
+ "Class: %s\r\n",
+ chan->name, chan->uniqueid,
+ mohclass->name);
ast_set_flag(chan, AST_FLAG_MOH);