Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(external-api) Expose deployment info through API
hmuresan7102ad1186b9
diff --git a/modules/API/API.js b/modules/API/API.jsindex 8d2a13d7e8..21f291471b 100644--- a/modules/API/API.js+++ b/modules/API/API.js@@ -560,6 +560,9 @@ function initCommands() {});});break;+ case 'deployment-info':+ callback(APP.store.getState()['features/base/config'].deploymentInfo);+ break;case 'invite': {const { invitees } = request;diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.jsindex 970d7452ed..fc19cacb06 100644--- a/modules/API/external/external_api.js+++ b/modules/API/external/external_api.js@@ -956,6 +956,17 @@ export default class JitsiMeetExternalAPI extends EventEmitter {return avatarURL;}+ /**+ * Gets the deployment info.+ *+ * @returns {Promise} - Resolves with the deployment info object.+ */+ getDeploymentInfo() {+ return this._transport.sendRequest({+ name: 'deployment-info'+ });+ }+/*** Returns the display name of a participant.*diff --git a/resources/prosody-plugins/mod_jiconop.lua b/resources/prosody-plugins/mod_jiconop.luaindex 9e44f08b10..e63b1869ec 100644--- a/resources/prosody-plugins/mod_jiconop.lua+++ b/resources/prosody-plugins/mod_jiconop.lua@@ -10,6 +10,11 @@ if shard_name_config thenmodule:add_identity("server", "shard", shard_name_config);end+local region_name_config = module:get_option_string('region_name');+if region_name_config then+ module:add_identity("server", "region", region_name_config);+end+-- this is after xmpp-bind, the moment a client has resource and can be contactedmodule:hook("resource-bind", function (event)local session = event.session;