• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/signaling.php
  • Класс: BitrixImCallSignaling
  • Вызов: Signaling::send
protected function send(string $command, $users, array $params = [], $push = null, $ttl = 5)
{
	if (!Loader::includeModule('pull'))
		return false;

	if (!isset($params['call']))
		$params['call'] = ['ID' => $this->call->getId()];

	if (!isset($params['callId']))
		$params['callId'] = $this->call->getId();

	BitrixPullEvent::add($users, array(
		'module_id' => 'im',
		'command' => $command,
		'params' => $params,
		'push' => $push,
		'expiry' => $ttl
	));

	return true;
}