• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/controller/call.php
  • Класс: BitrixImControllerCall
  • Вызов: Call::getLockNameWithEntityId
static function getLockNameWithEntityId(string $entityType, $entityId, $currentUserId): string
{
	if($entityType === EntityType::CHAT && (Common::isChatId($entityId) || (int)$entityId > 0))
	{
		$chatId = BitrixImDialog::getChatId($entityId, $currentUserId);

		return "call_entity_{$entityType}_{$chatId}";
	}

	return "call_entity_{$entityType}_{$entityId}";
}