• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_sip.php
  • Класс: CVoxImplantSip
  • Вызов: CVoxImplantSip::getBuyLink
static function getBuyLink()
{
	if (IsModuleInstalled('bitrix24'))
	{
		return '/settings/license_phone_sip.php';
	}
	$account = new CVoxImplantAccount();
	switch ($account->GetAccountLang())
	{
		case 'ru':
			return 'https://www.1c-bitrix.ru/buy/products/b24.php#tab-section-3';
		case 'ua':
			return 'https://www.bitrix24.eu/prices/self-hosted-telephony.php';
		case 'kz':
			return 'https://www.1c-bitrix.kz/buy/products/b24.php#tab-section-3';
		case 'by':
			return 'https://www.1c-bitrix.by/buy/products/b24.php#tab-section-3';
		case 'de':
			return 'https://www.bitrix24.de/prices/self-hosted-telephony.php';
		default:
			if($account->GetAccountCurrency() === 'USD')
			{
				return 'https://www.bitrix24.com/prices/self-hosted-telephony.php';
			}
			if($account->GetAccountCurrency() === 'EUR')
			{
				return 'https://www.bitrix24.eu/prices/self-hosted-telephony.php';
			}
	}
	return '';
}