Add the class actually used in the MusicOnHold start event.
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 8 Jan 2010 22:54:59 +0000 (22:54 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 8 Jan 2010 22:54:59 +0000 (22:54 +0000)
(closes issue #16499)
 Reported by: syspert
 Patches:
       mohclass.patch uploaded by syspert (license 938)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238795 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index cbe42f0..d01e87e 100644 (file)
@@ -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);