• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_history.php
  • Класс: CVoxImplantHistory
  • Вызов: CVoxImplantHistory::getDirectionText
static function getDirectionText($direction, $full = false)
{
	$phrase = '';
	if ($direction == CVoxImplantMain::CALL_OUTGOING)
		$phrase = "VI_OUTGOING";
	else if ($direction == CVoxImplantMain::CALL_INCOMING)
		$phrase = "VI_INCOMING";
	else if ($direction == CVoxImplantMain::CALL_INCOMING_REDIRECT)
		$phrase = "VI_INCOMING_REDIRECT";
	else if($direction == CVoxImplantMain::CALL_CALLBACK)
		$phrase = "VI_CALLBACK";
	else if($direction == CVoxImplantMain::CALL_INFO)
		$phrase = "VI_INFOCALL";

	if($phrase != '' && $full)
		$phrase = $phrase . '_FULL';


	return ($phrase == '') ? '' : GetMessage($phrase);
}