• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_history.php
  • Класс: CVoxImplantHistory
  • Вызов: CVoxImplantHistory::shouldRepeatCallback
static function shouldRepeatCallback($call, $config)
{
	if(!is_array($call) || !is_array($config))
		return false;

	if($config['CALLBACK_REDIAL'] != 'Y')
		return false;

	if($config['CALLBACK_REDIAL_ATTEMPTS'] <= 0)
		return false;

	if(!isset($call['CALLBACK_PARAMETERS']['redialAttempt']))
		return false;

	$currentAttempt = $call['CALLBACK_PARAMETERS']['redialAttempt'];

	return ($currentAttempt < $config['CALLBACK_REDIAL_ATTEMPTS']);
}