- Модуль: voximplant
- Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_rest.php
- Класс: CVoxImplantRestService
- Вызов: CVoxImplantRestService::startCallTransfer
static function startCallTransfer($params, $n, $server)
{
if ($server->getAuthType() !== BitrixRestSessionAuthAuth::AUTH_TYPE)
{
throw new BitrixRestRestException("This method is only available for internal usage.", "WRONG_AUTH_TYPE", CRestServer::STATUS_FORBIDDEN);
}
$result = BitrixVoximplantTransferTransferor::initiateTransfer(
$params['CALL_ID'],
SecurityHelper::getCurrentUserId(),
$params['TARGET_TYPE'],
$params['TARGET_ID'],
);
return $result->toArray();
}