public boolean roomJoin(IClient client, IScope room) {
log.debug("roomJoin : ");
try {
IConnection conn = Red5.getConnectionLocal();
IServiceCapableConnection service = (IServiceCapableConnection) conn;
String streamId = client.getId();
log.debug("### Client connected to OpenMeetings, register Client StreamId: "
+ streamId + " scope "+ room.getName() );
//Set StreamId in Client
service.invoke("setId", new Object[] { streamId },this);
String swfURL = "";
if (conn.getConnectParams().get("swfUrl") != null) {
swfURL = conn.getConnectParams().get("swfUrl").toString();
}
RoomClient rcm = this.clientListManager.addClientListItem(streamId, room.getName(), conn.getRemotePort(),
conn.getRemoteAddress(), swfURL);
//Log the User
ConferenceLogDaoImpl.getInstance().addConferenceLog("ClientConnect", rcm.getUser_id(),
streamId, null, rcm.getUserip(), rcm.getScope(),
rcm.getExternalUserId(), rcm.getExternalUserType(),