Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(jaas) fix recorder and sip gateways not detecting vpaas meetings

Tudor-Ovidiu Avramc6fd8c2bcb19
diff --git a/react/features/billing-counter/functions.js b/react/features/billing-counter/functions.js
index 344f1ac04c..af4579c217 100644
--- a/react/features/billing-counter/functions.js
+++ b/react/features/billing-counter/functions.js
@@ -29,11 +29,16 @@ export function extractVpaasTenantFromPath(path: string) {
* @returns {boolean}
*/
export function isVpaasMeeting(state: Object) {
+ const { billingCounterUrl, iAmRecorder, iAmSipGateway } = state['features/base/config'];
+ const { jwt } = state['features/base/jwt'];
+
+ const isAllowed = iAmRecorder || iAmSipGateway || Boolean(jwt);
+
return Boolean(
- state['features/base/config'].billingCounterUrl
- && state['features/base/jwt'].jwt
+ billingCounterUrl
&& extractVpaasTenantFromPath(
state['features/base/connection'].locationURL.pathname)
+ && isAllowed
);
}