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
08626257
Commit
08626257
authored
Mar 15, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get correct supi with prerix
parent
e048e90e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+12
-10
No files found.
src/smf_app/smf_context.cpp
View file @
08626257
...
...
@@ -895,7 +895,8 @@ void smf_context::handle_itti_msg(
// get supi and put into URL
std
::
string
supi_prefix
=
{};
get_supi_prefix
(
supi_prefix
);
std
::
string
supi_str
=
supi_prefix
+
"-"
+
smf_supi_to_string
(
supi
);
std
::
string
supi_str
=
smf_get_supi_with_prefix
(
supi_prefix
,
smf_supi_to_string
(
supi
));
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
...
...
@@ -1815,8 +1816,9 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// Get SUPI and put into URL
std
::
string
supi_str
=
{};
supi_t
supi
=
sm_context_resp_pending
->
res
.
get_supi
();
supi_str
=
sm_context_resp_pending
->
res
.
get_supi_prefix
()
+
"-"
+
smf_supi_to_string
(
supi
);
supi_str
=
smf_get_supi_with_prefix
(
sm_context_resp_pending
->
res
.
get_supi_prefix
(),
smf_supi_to_string
(
supi
));
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
...
...
@@ -3301,8 +3303,8 @@ void smf_context::handle_pdu_session_modification_network_requested(
// Fill N1N2MesasgeTransferRequestData
// get supi and put into URL
supi_t
supi
=
itti_msg
->
msg
.
get_supi
();
std
::
string
supi_str
=
itti_msg
->
msg
.
get_supi_prefix
()
+
"-"
+
smf_supi_to_string
(
supi
);
std
::
string
supi_str
=
smf_get_supi_with_prefix
(
itti_msg
->
msg
.
get_supi_prefix
()
,
smf_supi_to_string
(
supi
)
);
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
...
...
@@ -4944,8 +4946,8 @@ void smf_context::send_pdu_session_create_response(
// Fill N1N2MesasgeTransferRequestData
// get SUPI and put into URL
supi_t
supi
=
resp
->
res
.
get_supi
();
std
::
string
supi_str
=
resp
->
res
.
get_supi_prefix
()
+
"-"
+
smf_supi_to_string
(
supi
);
std
::
string
supi_str
=
smf_get_supi_with_prefix
(
resp
->
res
.
get_supi_prefix
()
,
smf_supi_to_string
(
supi
)
);
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
...
...
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