Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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-SMF
Commits
b2f4addd
Commit
b2f4addd
authored
Oct 10, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for Static UE IP Addr
parent
994b898e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/smf_app/smf_sbi.cpp
src/smf_app/smf_sbi.cpp
+8
-0
No files found.
src/smf_app/smf_sbi.cpp
View file @
b2f4addd
...
@@ -911,6 +911,11 @@ bool smf_sbi::get_sm_data(
...
@@ -911,6 +911,11 @@ bool smf_sbi::get_sm_data(
// Process the response
// Process the response
if
(
!
jsonData
.
empty
())
{
if
(
!
jsonData
.
empty
())
{
if
(
jsonData
.
type
()
==
json
::
value_t
::
array
)
{
if
(
!
jsonData
[
0
].
empty
())
jsonData
=
jsonData
[
0
];
// Array with only 1 member!
}
Logger
::
smf_sbi
().
debug
(
"Response from UDM %s"
,
jsonData
.
dump
().
c_str
());
Logger
::
smf_sbi
().
debug
(
"Response from UDM %s"
,
jsonData
.
dump
().
c_str
());
// Verify SNSSAI
// Verify SNSSAI
if
(
jsonData
.
find
(
"singleNssai"
)
==
jsonData
.
end
())
return
false
;
if
(
jsonData
.
find
(
"singleNssai"
)
==
jsonData
.
end
())
return
false
;
...
@@ -930,6 +935,9 @@ bool smf_sbi::get_sm_data(
...
@@ -930,6 +935,9 @@ bool smf_sbi::get_sm_data(
}
}
}
}
// Verify DNN configurations
if
(
jsonData
.
find
(
"dnnConfigurations"
)
==
jsonData
.
end
())
return
false
;
// Retrieve SessionManagementSubscription and store in the context
// Retrieve SessionManagementSubscription and store in the context
for
(
nlohmann
::
json
::
iterator
it
=
jsonData
[
"dnnConfigurations"
].
begin
();
for
(
nlohmann
::
json
::
iterator
it
=
jsonData
[
"dnnConfigurations"
].
begin
();
it
!=
jsonData
[
"dnnConfigurations"
].
end
();
++
it
)
{
it
!=
jsonData
[
"dnnConfigurations"
].
end
();
++
it
)
{
...
...
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