• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/call.php
  • Класс: BitrixVoximplantCall
  • Вызов: Call::updateUserStatus
public function updateUserStatus($userId, $status, $device = '')
{
	if(!isset($this->users[$userId]))
	{
		throw new SystemException("User is not participant of the call");
	}

	$this->users[$userId]['STATUS'] = $status;
	if($device)
	{
		$this->users[$userId]['DEVICE'] = $device;
	}

	CallUserTable::update(['CALL_ID' => $this->callId, 'USER_ID' => $userId], [
		'STATUS' => $this->users[$userId]['STATUS'],
		'DEVICE' => $this->users[$userId]['DEVICE']
	]);
}