• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/signaling.php
  • Класс: BitrixVoximplantSignaling
  • Вызов: Signaling::sendReplaceCallerId
public function sendReplaceCallerId($userId, $newCallerId)
{
	$crmData = CVoxImplantCrmHelper::GetDataForPopup(
		$this->call->getCallId(), $this->call->getCallerId(), $userId
	);

	$this->send([$userId], static::COMMAND_REPLACE_CALLERID, [
		"callerId" => $newCallerId,
		"CRM" => $crmData,
		"showCrmCard" => $this->call->isCrmEnabled(),
		"crmEntityType" => $this->call->getPrimaryEntityType(),
		"crmEntityId" => $this->call->getPrimaryEntityId(),
		"crmBindings" => CVoxImplantCrmHelper::resolveBindingNames($this->call->getCrmBindings())
	]);
}