1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
PlainCall.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Call;
4
5use Bitrix\Im\Call\Call;
6use Bitrix\Im\Call\Util;
7use Bitrix\Main\Config\Option;
8
9class PlainCall extends Call
10{
11 protected $provider = parent::PROVIDER_PLAIN;
12
13 protected function initCall(): void
14 {
15 if ($this->getState() == static::STATE_NEW)
16 {
17 if (empty($this->uuid))
18 {
19 $this->uuid = Util::generateUUID();
20 $this->save();
21
22 (new ControllerClient())->createCall($this);
23 }
24 }
25 }
26
27 public function finish(): void
28 {
29 if ($this->getState() != static::STATE_FINISHED)
30 {
31 (new ControllerClient())->finishCall($this);
32 }
33 parent::finish();
34 }
35
36 public function getMaxUsers(): int
37 {
38 return (int)Option::get('im', 'turn_server_max_users');
39 }
40}
Определения call.php:24
getState()
Определения call.php:454
save()
Определения call.php:795