Esempio n. 1
0
 public static function lineOutgoingSipSet($arParams)
 {
     if (!CVoxImplantMain::CheckAccess()) {
         throw new \Bitrix\Rest\AccessException();
     }
     $arParams = array_change_key_case($arParams, CASE_UPPER);
     $result = CVoxImplantConfig::SetPortalNumberByConfigId($arParams['CONFIG_ID']);
     if (!$result) {
         throw new Bitrix\Rest\RestException('Specified CONFIG_ID is not found', Bitrix\Rest\RestException::ERROR_ARGUMENT, CRestServer::STATUS_WRONG_REQUEST);
     }
     return 1;
 }