• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/routing/ivr.php
  • Класс: BitrixVoximplantRoutingIvr
  • Вызов: Ivr::getNextAction
public function getNextAction(Call $call, array $request = [])
{
	$actionId = $request['IVR_ACTION_ID'];
	$actionResult = $request['ACTION_RESULT'];

	if(!$actionId)
	{
		return false;
	}
	
	$ivrAction = IvrActionTable::getRowById($actionId);
	if(!$ivrAction)
	{
		return false;
	}

	if($ivrAction['ACTION'] !== BitrixVoximplantIvrAction::ACTION_EXIT)
	{
		$call->updateIvrActionId($actionId);
		$this->insertAfter(new IvrAction($actionId));
	}

	if($ivrAction['ACTION'] === BitrixVoximplantIvrAction::ACTION_DIRECT_CODE)
	{
		$call->updateGatheredDigits($actionResult['gatheredDigits']);
	}

	return false;
}