• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Call/ControllerClient.php
  • Класс: BitrixImV2CallControllerClient
  • Вызов: ControllerClient::getEndpoint
protected function getEndpoint()
{
	if (is_null($this->endpoint))
	{
		$settings = Configuration::getValue('im');
		$endpoint  = $settings['call']['beta_server_url'] ?? '';

		if (!empty($endpoint))
		{
			if (!(mb_strpos($endpoint, 'https://') === 0 || mb_strpos($endpoint, 'http://') === 0))
			{
				$endpoint = 'https://' . $endpoint;
			}
			$this->endpoint = $endpoint;
		}
	}

	return $this->endpoint;
}