Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
d6fc2f05
Commit
d6fc2f05
authored
Feb 11, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue with SD in SMF profile
parent
72da7c18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+2
-1
No files found.
src/amf-app/amf_n11.cpp
View file @
d6fc2f05
...
...
@@ -363,6 +363,7 @@ void amf_n11::handle_itti_message(itti_nsmf_pdusession_create_sm_context& smf) {
Logger
::
amf_n11
().
error
(
"No NRF is available"
);
return
;
}
Logger
::
amf_n11
().
debug
(
"NRF NF Discover URI: %s"
,
nrf_uri
.
c_str
());
// use NRF to find suitable SMF based on snssai, plmn and dnn
if
(
!
discover_smf
(
smf_addr
,
smf_api_version
,
psc
.
get
()
->
snssai
,
psc
.
get
()
->
plmn
,
...
...
@@ -909,7 +910,7 @@ bool amf_n11::discover_smf(
int
sst
=
0
;
std
::
string
sd
=
{};
if
(
Snssai
.
count
(
"sst"
)
>
0
)
sst
=
Snssai
[
"sst"
].
get
<
int
>
();
if
(
Snssai
.
count
(
"sd"
)
>
0
)
sd
=
Snssai
[
"s
st
"
].
get
<
string
>
();
if
(
Snssai
.
count
(
"sd"
)
>
0
)
sd
=
Snssai
[
"s
d
"
].
get
<
string
>
();
if
(
sst
==
snssai
.
sST
)
{
// Match SD (optional) only if it is provided
if
(
sd
.
empty
()
or
(
snssai
.
sD
.
compare
(
sd
)
==
0
))
{
...
...
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