- Модуль: im
- Путь к файлу: ~/bitrix/modules/im/lib/call/signaling.php
- Класс: BitrixImCallSignaling
- Вызов: Signaling::sendHangup
public function sendHangup(int $senderId, array $toUserIds, string $callInstanceId, $code = 200)
{
$config = [
'senderId' => $senderId,
'callInstanceId' => $callInstanceId,
'code' => $code,
];
$push = [
'send_immediately' => 'Y',
//'expiry' => 0,
'params' => [],
'advanced_params' => [
'id' => 'IM_CALL_'.$this->call->getId().'_FINISH',
'notificationsToCancel' => ['IM_CALL_'.$this->call->getId()],
'callkit' => true,
'filterCallback' => [static::class, 'filterPushesForApple'],
]
];
return $this->send('Call::hangup', $toUserIds, $config, $push, 3600);
}