mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: change sessionCreated CDR event timing
parent
103f122c18
commit
9b1663f1c8
|
@ -303,8 +303,10 @@ public abstract class SessionManager {
|
|||
}
|
||||
|
||||
public Session storeSessionNotActive(String sessionId, SessionProperties sessionProperties) {
|
||||
Session sessionNotActive = new Session(sessionId, sessionProperties, openviduConfig, recordingManager);
|
||||
return this.storeSessionNotActive(sessionNotActive);
|
||||
Session sessionNotActive = this
|
||||
.storeSessionNotActive(new Session(sessionId, sessionProperties, openviduConfig, recordingManager));
|
||||
sessionEventsHandler.onSessionCreated(sessionNotActive);
|
||||
return sessionNotActive;
|
||||
}
|
||||
|
||||
public Session storeSessionNotActive(Session sessionNotActive) {
|
||||
|
|
|
@ -777,7 +777,6 @@ public class KurentoSessionManager extends SessionManager {
|
|||
log.info("No session '{}' exists yet. Created one on KMS '{}' with ip '{}'", session.getSessionId(),
|
||||
kms.getId(), kms.getIp());
|
||||
|
||||
sessionEventsHandler.onSessionCreated(session);
|
||||
return session;
|
||||
}
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ public class SessionRestController {
|
|||
}
|
||||
|
||||
Session sessionNotActive = sessionManager.storeSessionNotActive(sessionId, sessionProperties);
|
||||
log.info("New session {} initialized {}", sessionId, this.sessionManager.getSessionsWithNotActive().stream()
|
||||
log.info("New session {} created {}", sessionId, this.sessionManager.getSessionsWithNotActive().stream()
|
||||
.map(Session::getSessionId).collect(Collectors.toList()).toString());
|
||||
|
||||
return new ResponseEntity<>(sessionNotActive.toJson(false, false).toString(), RestUtils.getResponseHeaders(),
|
||||
|
|
Loading…
Reference in New Issue