• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/signaling.php
  • Класс: BitrixImCallSignaling
  • Вызов: Signaling::sendAnswer
public function sendAnswer(int $senderId, $callInstanceId, $isLegacyMobile)
{
	$config = array(
		'call' => $this->call->toArray(),
		'senderId' => $senderId,
		'callInstanceId' => $callInstanceId,
		'isLegacyMobile' => $isLegacyMobile,
	);

	$toUserIds = array_diff($this->call->getUsers(), [$senderId]);
	$this->send('Call::answer', $toUserIds, $config, null, 3600);

	$push = [
		'send_immediately' => 'Y',
		'expiry' => 0,
		'params' => [],
		'advanced_params' => [
			'id' => 'IM_CALL_'.$this->call->getId().'_ANSWER',
			'notificationsToCancel' => ['IM_CALL_'.$this->call->getId()],
			'isVoip' => true,
			'callkit' => true,
			'filterCallback' => [static::class, 'filterPushesForApple'],
		]
	];

	$this->send('Call::answer', $senderId, $config, $push, 3600);
}