• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/voximplant/service.php
  • Класс: Bitrix\Sender\Integration\VoxImplant\Service
  • Вызов: Service::send
static function send($outputNumber, $number, $text, $voiceLanguage = '', $voiceSpeed = '', $voiceVolume = '')
{
	if (!static::canUse())
	{
		return false;
	}

	$result = \CVoxImplantOutgoing::StartInfoCallWithText(
		$outputNumber,
		$number,
		$text,
		$voiceLanguage,
		$voiceSpeed,
		$voiceVolume
	);

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

	return $data['CALL_ID'];
}