- Модуль: im
- Путь к файлу: ~/bitrix/modules/im/lib/controller/call.php
- Класс: BitrixImControllerCall
- Вызов: Call::iceCandidateAction
public function iceCandidateAction($callId, $userId, $connectionId, array $candidates)
{
// mobile can alter key order, so we recover it
ksort($candidates);
$currentUserId = $this->getCurrentUser()->getId();
$call = Registry::getCallWithId($callId);
if(!$this->checkCallAccess($call, $currentUserId))
return null;
$callUser = $call->getUser($currentUserId);
if($callUser)
{
$callUser->updateLastSeen(new DateTime());
}
$call->getSignaling()->sendIceCandidates($currentUserId, $userId, $connectionId, $candidates);
return true;
}