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
e5b5342c
Commit
e5b5342c
authored
Mar 16, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default SUPI type
parent
dfeab595
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+1
-1
src/common/amf.hpp
src/common/amf.hpp
+2
-0
src/common/conversions.cpp
src/common/conversions.cpp
+2
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
e5b5342c
...
...
@@ -395,7 +395,7 @@ void amf_n1::handle_itti_message(itti_uplink_nas_data_ind& nas_data_ind) {
std
::
string
supi
=
conv
::
imsi_to_supi
(
nc
->
imsi
);
set_supi_2_amf_id
(
supi
,
amf_ue_ngap_id
);
set_supi_2_ran_id
(
supi
,
ran_ue_ngap_id
);
set_supi_2_nas_context
(
supi
,
nc
);
// TODO: To be verified IMSI or SUPI
set_supi_2_nas_context
(
supi
,
nc
);
}
else
{
Logger
::
amf_n1
().
error
(
"No existing nas_context with GUTI %s"
,
nas_data_ind
.
guti
.
c_str
());
...
...
src/common/amf.hpp
View file @
e5b5342c
...
...
@@ -77,4 +77,6 @@ typedef enum {
constexpr
uint32_t
DEFAULT_HTTP1_PORT
=
80
;
constexpr
uint32_t
DEFAULT_HTTP2_PORT
=
8080
;
constexpr
auto
DEFAULT_SBI_API_VERSION
=
"v1"
;
constexpr
auto
DEFAULT_SUPI_TYPE
=
""
;
// Set to "imsi" when supporting both IMSI and NAI as SUPI
#endif
src/common/conversions.cpp
View file @
e5b5342c
...
...
@@ -519,6 +519,8 @@ std::string conv::tmsi_to_guti(
}
//------------------------------------------------------------------------------
std
::
string
conv
::
imsi_to_supi
(
const
std
::
string
&
imsi
)
{
std
::
string
supi_type
=
DEFAULT_SUPI_TYPE
;
if
(
!
supi_type
.
empty
())
return
{
supi_type
+
"-"
+
imsi
};
return
imsi
;
}
...
...
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