• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/call.php
  • Класс: BitrixImCallCall
  • Вызов: Call::updateState
public function updateState($state)
{
	if($this->state == $state)
	{
		return false;
	}
	$prevState = $this->state;
	$this->state = $state;
	$updateResult = CallTable::updateState($this->getId(), $state);
	if(!$updateResult)
	{
		return false;
	}

	if($this->associatedEntity)
	{
		$this->associatedEntity->onStateChange($state, $prevState);
	}
	return true;
}