• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_sip.php
  • Класс: CVoxImplantSip
  • Вызов: CVoxImplantSip::Delete
public function Delete($configId)
{
	$configId = intval($configId);
	if ($configId <= 0)
	{
		$this->error = new CVoxImplantError(__METHOD__, 'CONFIG_ID_NULL', GetMessage('VI_SIP_CONFIG_ID_NULL'));
		return false;
	}
	$orm = VISipTable::getList(Array(
		'filter'=>Array(
			'=CONFIG_ID' => $configId
		)
	));
	$element = $orm->fetch();
	if (!$element)
		return false;

	if (intval($element['REG_ID']) > 0 && !$this->DeleteSipRegistration($element['REG_ID']))
		return false;

	VISipTable::delete($element['ID']);
	CVoxImplantPhone::DeletePhoneConfig($configId);

	return true;
}