• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/limits.php
  • Класс: BitrixVoximplantLimits
  • Вызов: Limits::getMaximumNumbers
static function getMaximumNumbers()
{
	if (!Loader::includeModule('bitrix24'))
		return 0;

	if(Option::get('voximplant', static::OPTION_IGNORE_MAXIMUM_NUMBERS) === "Y")
		return 0;

	$licensePrefix = CBitrix24::getLicensePrefix();
	if(in_array($licensePrefix, static::getRussianRegions()))
		return 0;

	$licenseType = CBitrix24::getLicenseType();
	if($licenseType === 'project') //project
		return 1;
	elseif ($licenseType === 'tf') //project+
		return 3;
	elseif ($licenseType === 'reail') //retail+crm
		return 3;

	return 0;
}