diff options
author | Joachim Bauch <bauch@struktur.de> | 2017-11-20 16:00:24 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-02 13:42:59 +0300 |
commit | 8214f22a3102e2abd36d240a195b4948ad6e8e90 (patch) | |
tree | 1b51babfe013a5c2769ddec29b99fa55c8d22a55 /lib/Signaling | |
parent | edfbecc75eea8f07a0771d781b7344b4483155f4 (diff) |
Notify backend when "in-call" status of sessions changes.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
Diffstat (limited to 'lib/Signaling')
-rw-r--r-- | lib/Signaling/BackendNotifier.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Signaling/BackendNotifier.php b/lib/Signaling/BackendNotifier.php index 37fc0cb5c..5c6f631e4 100644 --- a/lib/Signaling/BackendNotifier.php +++ b/lib/Signaling/BackendNotifier.php @@ -198,4 +198,23 @@ class BackendNotifier{ ]); } + /** + * The "in-call" status of the given session ids has changed.. + * + * @param Room $room + * @param bool $inCall + * @param array $sessionids + * @throws \Exception + */ + public function roomInCallChanged($room, $inCall, $sessionIds) { + $this->logger->info('Room in-call status changed: ' . $room->getToken() . ' ' . $inCall . ' ' . print_r($sessionIds, true)); + $this->backendRequest('/api/v1/room/' . $room->getToken(), [ + 'type' => 'incall', + 'incall' => [ + 'incall' => $inCall, + 'sessionids' => $sessionIds, + ], + ]); + } + } |