From 7874807fef87c4b366ef3068fbf4598c4583f985 Mon Sep 17 00:00:00 2001 From: Thierry Kauffmann Date: Wed, 9 Mar 2022 16:58:35 +0100 Subject: [PATCH] Add support for meta_analytics-callback-url --- lib/BigBlueButton/API.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/BigBlueButton/API.php b/lib/BigBlueButton/API.php index ade4139..2fcfa6b 100644 --- a/lib/BigBlueButton/API.php +++ b/lib/BigBlueButton/API.php @@ -174,6 +174,10 @@ class API { $createMeetingParams->addMeta('bbb-origin-version', $this->appManager->getAppVersion(Application::ID)); $createMeetingParams->addMeta('bbb-origin', \method_exists($this->defaults, 'getProductName') ? $this->defaults->getProductName() : 'Nextcloud'); $createMeetingParams->addMeta('bbb-origin-server-name', $this->request->getServerHost()); + + if (!empty($this->config->getAppValue('bbb', 'api.meta_analytics-callback-url')) { + $createMeetingParams->addMeta('analytics-callback-url', \urlencode($this->config->getAppValue('bbb', 'api.meta_analytics-callback-url'))); + } $mac = $this->crypto->calculateHMAC($room->uid);