Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UDR
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-UDR
Commits
e85ce900
Commit
e85ce900
authored
Sep 23, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for DNN/NSSAI
parent
cc3823ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
src/api_server/api/SessionManagementSubscriptionDataApi.cpp
src/api_server/api/SessionManagementSubscriptionDataApi.cpp
+7
-0
src/api_server/impl/SessionManagementSubscriptionDataApiImpl.cpp
..._server/impl/SessionManagementSubscriptionDataApiImpl.cpp
+5
-3
No files found.
src/api_server/api/SessionManagementSubscriptionDataApi.cpp
View file @
e85ce900
...
...
@@ -79,18 +79,25 @@ void SessionManagementSubscriptionDataApi::query_sm_data_handler(
// Getting the query params
auto
singleNssaiQuery
=
request
.
query
().
get
(
"single-nssai"
);
Logger
::
udr_server
().
debug
(
"singleNssaiQuery: %s"
,
singleNssaiQuery
.
get
().
c_str
());
Pistache
::
Optional
<
Snssai
>
singleNssai
;
if
(
!
singleNssaiQuery
.
isEmpty
())
{
Snssai
valueQuery_instance
;
if
(
fromStringValue
(
singleNssaiQuery
.
get
(),
valueQuery_instance
))
{
Logger
::
udr_server
().
debug
(
"SNSSAI SST %d, SD %s"
,
valueQuery_instance
.
getSst
(),
valueQuery_instance
.
getSd
().
c_str
());
singleNssai
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
auto
dnnQuery
=
request
.
query
().
get
(
"dnn"
);
Pistache
::
Optional
<
std
::
string
>
dnn
;
if
(
!
dnnQuery
.
isEmpty
())
{
Logger
::
udr_server
().
debug
(
"dnnQuery: %s"
,
dnnQuery
.
get
().
c_str
());
std
::
string
valueQuery_instance
;
if
(
fromStringValue
(
dnnQuery
.
get
(),
valueQuery_instance
))
{
Logger
::
udr_server
().
debug
(
"DNN: %s"
,
valueQuery_instance
.
c_str
());
dnn
=
Pistache
::
Some
(
valueQuery_instance
);
}
}
...
...
src/api_server/impl/SessionManagementSubscriptionDataApiImpl.cpp
View file @
e85ce900
...
...
@@ -44,7 +44,8 @@ SessionManagementSubscriptionDataApiImpl::
SessionManagementSubscriptionDataApiImpl
(
std
::
shared_ptr
<
Pistache
::
Rest
::
Router
>
rtr
,
udr_app
*
udr_app_inst
,
std
::
string
address
)
:
SessionManagementSubscriptionDataApi
(
rtr
),
m_udr_app
(
udr_app_inst
),
:
SessionManagementSubscriptionDataApi
(
rtr
),
m_udr_app
(
udr_app_inst
),
m_address
(
address
)
{}
void
SessionManagementSubscriptionDataApiImpl
::
query_sm_data
(
...
...
@@ -69,10 +70,11 @@ void SessionManagementSubscriptionDataApiImpl::query_sm_data(
// TODO: DNN and SNSSAI
nlohmann
::
json
response_data
=
{};
Pistache
::
Http
::
Code
code
=
{};
m_udr_app
->
handle_query_sm_data
(
ueId
,
servingPlmnId
,
response_data
,
code
);
m_udr_app
->
handle_query_sm_data
(
ueId
,
servingPlmnId
,
response_data
,
code
,
snssai
,
dnn_str
);
Logger
::
udr_server
().
debug
(
"HTTP Response code %d.
\n
"
,
code
);
response
.
send
(
code
,
response_data
.
dump
().
c_str
());
}
}
// namespace oai::udr::api
}
// namespace oai::udr::api
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