diff --git a/connection.js b/connection.js index b5ab62e9a..f6544e68e 100644 --- a/connection.js +++ b/connection.js @@ -88,8 +88,9 @@ export async function connect(id, password, roomName) { const connectionConfig = Object.assign({}, config); const state = APP.store.getState(); let { jwt } = state['features/base/jwt']; + const { iAmRecorder, iAmSipGateway } = state['features/base/config']; - if (!jwt && isVpaasMeeting(state)) { + if (!iAmRecorder && !iAmSipGateway && !jwt && isVpaasMeeting(state)) { jwt = await getJaasJWT(state); APP.store.dispatch(setJWT(jwt)); }