Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UDM
Commits
4c77c873
Commit
4c77c873
authored
May 16, 2022
by
sagar arora
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_http2' into 'develop'
http2_fix See merge request oai/cn5g/oai-cn5g-udm!25
parents
8a4ccd6e
5bd02284
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/api_server/impl/UECMRegistrationInfoRetrievalApiImpl.cpp
src/api_server/impl/UECMRegistrationInfoRetrievalApiImpl.cpp
+2
-1
src/api_server/udm-http2-server.cpp
src/api_server/udm-http2-server.cpp
+5
-2
No files found.
src/api_server/impl/UECMRegistrationInfoRetrievalApiImpl.cpp
View file @
4c77c873
...
...
@@ -49,7 +49,8 @@ UECMRegistrationInfoRetrievalApiImpl::UECMRegistrationInfoRetrievalApiImpl(
// &supportedFeatures, const Pistache::Optional<Snssai> &singleNssai, const
// Pistache::Optional<std::string> &dnn, Pistache::Http::ResponseWriter
// &response) {
// response.send(Pistache::Http::Code::Ok, "Do some magic\n");
// response.send(Pistache::Http::Code::Ok, "This API has not been implemented
// yet!\n");
//}
}
// namespace api
...
...
src/api_server/udm-http2-server.cpp
View file @
4c77c873
...
...
@@ -86,10 +86,12 @@ void udm_http2_server::start() {
// Confirm/Delete Auth
server
.
handle
(
NUDM_UE_AU_BASE
+
udm_cfg
.
sbi
.
api_version
,
NUDM_UE_AU_BASE
+
udm_cfg
.
sbi
.
api_version
+
"/"
,
[
&
](
const
request
&
request
,
const
response
&
response
)
{
request
.
on_data
([
&
](
const
uint8_t
*
data
,
std
::
size_t
len
)
{
std
::
string
msg
((
char
*
)
data
,
len
);
Logger
::
udm_server
().
info
(
"Request URI: %s"
,
request
.
uri
().
path
.
c_str
());
try
{
std
::
vector
<
std
::
string
>
split_q
;
boost
::
split
(
split_q
,
request
.
uri
().
path
,
boost
::
is_any_of
(
"/"
));
...
...
@@ -126,7 +128,7 @@ void udm_http2_server::start() {
});
server
.
handle
(
NUDM_SDM_BASE
+
udm_cfg
.
sbi
.
api_version
,
NUDM_SDM_BASE
+
udm_cfg
.
sbi
.
api_version
+
"/"
,
[
&
](
const
request
&
request
,
const
response
&
response
)
{
request
.
on_data
([
&
](
const
uint8_t
*
data
,
std
::
size_t
len
)
{
std
::
string
msg
((
char
*
)
data
,
len
);
...
...
@@ -277,6 +279,7 @@ void udm_http2_server::generate_auth_data_request_handler(
void
udm_http2_server
::
confirm_auth_handler
(
const
std
::
string
&
supi
,
const
oai
::
udm
::
model
::
AuthEvent
&
authEvent
,
const
response
&
response
)
{
Logger
::
udm_ueau
().
info
(
"Handle Authentication Confirmation"
);
nlohmann
::
json
response_data
=
{};
long
http_code
=
0
;
std
::
string
location
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment