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
52e99668
Commit
52e99668
authored
Nov 21, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debugging info
parent
f64f6383
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+6
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
52e99668
...
...
@@ -4468,6 +4468,8 @@ bool amf_n1::check_requested_nssai(const std::shared_ptr<nas_context>& nc) {
//------------------------------------------------------------------------------
bool
amf_n1
::
check_subscribed_nssai
(
const
std
::
shared_ptr
<
nas_context
>&
nc
,
oai
::
amf
::
model
::
Nssai
&
nssai
)
{
Logger
::
amf_n1
().
debug
(
"Verifying whether this AMF can handle Requested/Subscribed S-NSSAIs"
);
// Check if the AMF can serve all the requested/subscribed S-NSSAIs
std
::
shared_ptr
<
ue_context
>
uc
=
{};
...
...
@@ -4479,6 +4481,10 @@ bool amf_n1::check_subscribed_nssai(
bool
result
=
false
;
for
(
auto
p
:
amf_cfg
.
plmn_list
)
{
Logger
::
amf_n1
().
debug
(
"PLMN info: %s"
,
p
.
to_json
().
dump
().
c_str
());
// TODO: use to_string instead
// Check PLMN/TAC
if
((
uc
->
tai
.
mcc
.
compare
(
p
.
mcc
)
!=
0
)
or
(
uc
->
tai
.
mnc
.
compare
(
p
.
mnc
)
!=
0
)
or
(
uc
->
tai
.
tac
!=
p
.
tac
))
{
...
...
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