diff --git a/bigbluebutton-apps/src/main/java/org/bigbluebutton/red5/client/messaging/ConnectionInvokerService.java b/bigbluebutton-apps/src/main/java/org/bigbluebutton/red5/client/messaging/ConnectionInvokerService.java index 0ce096841767dd6d51ebc08023cdf18277e9f904..2d23b2118c7bbf49c41e6262b7571179ec8610e0 100755 --- a/bigbluebutton-apps/src/main/java/org/bigbluebutton/red5/client/messaging/ConnectionInvokerService.java +++ b/bigbluebutton-apps/src/main/java/org/bigbluebutton/red5/client/messaging/ConnectionInvokerService.java @@ -145,8 +145,8 @@ public class ConnectionInvokerService { private void handlDisconnectClientMessage(DisconnectClientMessage msg) { IScope meetingScope = getScope(msg.getMeetingId()); if (meetingScope != null) { - String sessionId = CONN + msg.getUserId(); - IConnection conn = getConnection(meetingScope, sessionId); + String userId = msg.getUserId(); + IConnection conn = getConnection(meetingScope, userId); if (conn != null) { if (conn.isConnected()) { log.info("Disconnecting user=[{}] from meeting=[{}]", msg.getUserId(), msg.getMeetingId()); diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/model/users/NetConnectionDelegate.as b/bigbluebutton-client/src/org/bigbluebutton/main/model/users/NetConnectionDelegate.as index 7294a140bfa2f35e8a224dff3f144cab103b232b..afd70a424ca4190a8a9f18b75930a014f6f0562e 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/model/users/NetConnectionDelegate.as +++ b/bigbluebutton-client/src/org/bigbluebutton/main/model/users/NetConnectionDelegate.as @@ -457,6 +457,8 @@ package org.bigbluebutton.main.model.users logData.message = "User has been ejected from meeting."; LOGGER.info(JSON.stringify(logData)); reason = ConnectionFailedEvent.USER_EJECTED_FROM_MEETING; + var cfe:ConnectionFailedEvent = new ConnectionFailedEvent(reason); + dispatcher.dispatchEvent(cfe); } else { logData.message = "Connection failed event - " + reason; LOGGER.info(JSON.stringify(logData)); diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/users/services/MessageReceiver.as b/bigbluebutton-client/src/org/bigbluebutton/modules/users/services/MessageReceiver.as index 81a554556abb2bf31dea39a2ffcb36abcb4a7d42..282b3920d35020c194a2e4700152e57dd9c5b4e6 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/users/services/MessageReceiver.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/users/services/MessageReceiver.as @@ -180,7 +180,14 @@ package org.bigbluebutton.modules.users.services } private function handleUserEjectedFromMeeting(msg: Object):void { - UsersUtil.setUserEjected(); + UsersUtil.setUserEjected(); + var logData:Object = UsersUtil.initLogData(); + logData.tags = ["users"]; + logData.status = "user_ejected"; + logData.message = "User ejected from meeting."; + + LOGGER.info(JSON.stringify(logData)); + } private function handleUserLocked(msg:Object):void {