added managerevent meetmemute with status on or off.
authorMatt O'Gorman <mogorman@digium.com>
Mon, 8 May 2006 11:26:06 +0000 (11:26 +0000)
committerMatt O'Gorman <mogorman@digium.com>
Mon, 8 May 2006 11:26:06 +0000 (11:26 +0000)
patch provided by bug 6811, with modifications for api.

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

apps/app_meetme.c

index b3dcfca..82abd14 100644 (file)
@@ -2289,6 +2289,11 @@ static int admin_exec(struct ast_channel *chan, void *data) {
                        case 77: /* M: Mute */ 
                                if (user) {
                                        user->adminflags |= ADMINFLAG_MUTED;
+                                       manager_event(EVENT_FLAG_CALL, "MeetmeMute",
+                                               "Status: on"
+                                               "Meetme: %s\r\n"
+                                               "Usernum: %d\r\n",
+                                               cnf->confno, user->user_no);
                                } else {
                                        ast_log(LOG_NOTICE, "Specified User not found!\n");
                                }
@@ -2308,6 +2313,11 @@ static int admin_exec(struct ast_channel *chan, void *data) {
                        case 109: /* m: Unmute */ 
                                if (user && (user->adminflags & ADMINFLAG_MUTED)) {
                                        user->adminflags ^= ADMINFLAG_MUTED;
+                                       manager_event(EVENT_FLAG_CALL, "MeetmeMute",
+                                               "Status: off"
+                                               "Meetme: %s\r\n"
+                                               "Usernum: %d\r\n",
+                                               cnf->confno, user->user_no);
                                } else {
                                        ast_log(LOG_NOTICE, "Specified User not found or he muted himself!\n");
                                }