- Модуль: im
- Путь к файлу: ~/bitrix/modules/im/lib/call/signaling.php
- Класс: BitrixImCallSignaling
- Вызов: Signaling::sendPing
public function sendPing(int $senderId, $requestId)
{
$config = array(
'requestId' => $requestId,
'callId' => $this->call->getId(),
'senderId' => $senderId
);
$toUserIds = $this->call->getUsers();
$toUserIds = array_filter($toUserIds, function ($value) use ($senderId) {
return $value != $senderId;
});
return $this->send('Call::ping', $toUserIds, $config, null, 0);
}