Service::sendFile

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. Service
  4. sendFile
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/voximplant/service.php
  • Класс: Bitrix\Sender\Integration\VoxImplant\Service
  • Вызов: Service::sendFile
static function sendFile($outputNumber, $number, $fileUrl)
{
	if (!static::canUse())
	{
		return false;
	}

	$result = \CVoxImplantOutgoing::StartInfoCallWithSound(
		$outputNumber,
		$number,
		$fileUrl
	);

	$data = $result->getData();
	if (!is_array($data) || !isset($data['CALL_ID']))
	{
		return null;
	}

	return $data['CALL_ID'];
}

Добавить комментарий