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
60b7cb65
Commit
60b7cb65
authored
Mar 15, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get correct supi with prerix
parent
d0e04933
Changes
1
Hide 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 @
60b7cb65
...
@@ -895,8 +895,9 @@ void smf_context::handle_itti_msg(
...
@@ -895,8 +895,9 @@ void smf_context::handle_itti_msg(
// get supi and put into URL
// get supi and put into URL
std
::
string
supi_prefix
=
{};
std
::
string
supi_prefix
=
{};
get_supi_prefix
(
supi_prefix
);
get_supi_prefix
(
supi_prefix
);
std
::
string
supi_str
=
supi_prefix
+
"-"
+
smf_supi_to_string
(
supi
);
std
::
string
supi_str
=
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
smf_get_supi_with_prefix
(
supi_prefix
,
smf_supi_to_string
(
supi
));
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
smf_cfg
.
amf_addr
.
api_version
+
fmt
::
format
(
fmt
::
format
(
...
@@ -1830,8 +1831,9 @@ void smf_context::handle_pdu_session_create_sm_context_request(
...
@@ -1830,8 +1831,9 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// Get SUPI and put into URL
// Get SUPI and put into URL
std
::
string
supi_str
=
{};
std
::
string
supi_str
=
{};
supi_t
supi
=
sm_context_resp_pending
->
res
.
get_supi
();
supi_t
supi
=
sm_context_resp_pending
->
res
.
get_supi
();
supi_str
=
sm_context_resp_pending
->
res
.
get_supi_prefix
()
+
"-"
+
supi_str
=
smf_get_supi_with_prefix
(
smf_supi_to_string
(
supi
);
sm_context_resp_pending
->
res
.
get_supi_prefix
(),
smf_supi_to_string
(
supi
));
std
::
string
url
=
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
smf_cfg
.
amf_addr
.
api_version
+
...
@@ -3315,9 +3317,9 @@ void smf_context::handle_pdu_session_modification_network_requested(
...
@@ -3315,9 +3317,9 @@ void smf_context::handle_pdu_session_modification_network_requested(
// Fill N1N2MesasgeTransferRequestData
// Fill N1N2MesasgeTransferRequestData
// get supi and put into URL
// get supi and put into URL
supi_t
supi
=
itti_msg
->
msg
.
get_supi
();
supi_t
supi
=
itti_msg
->
msg
.
get_supi
();
std
::
string
supi_str
=
std
::
string
supi_str
=
smf_get_supi_with_prefix
(
itti_msg
->
msg
.
get_supi_prefix
()
+
"-"
+
smf_supi_to_string
(
supi
);
itti_msg
->
msg
.
get_supi_prefix
()
,
smf_supi_to_string
(
supi
)
);
std
::
string
url
=
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
smf_cfg
.
amf_addr
.
api_version
+
...
@@ -4935,9 +4937,9 @@ void smf_context::send_pdu_session_create_response(
...
@@ -4935,9 +4937,9 @@ void smf_context::send_pdu_session_create_response(
// Fill N1N2MesasgeTransferRequestData
// Fill N1N2MesasgeTransferRequestData
// get SUPI and put into URL
// get SUPI and put into URL
supi_t
supi
=
resp
->
res
.
get_supi
();
supi_t
supi
=
resp
->
res
.
get_supi
();
std
::
string
supi_str
=
std
::
string
supi_str
=
smf_get_supi_with_prefix
(
resp
->
res
.
get_supi_prefix
()
+
"-"
+
smf_supi_to_string
(
supi
);
resp
->
res
.
get_supi_prefix
()
,
smf_supi_to_string
(
supi
)
);
std
::
string
url
=
std
::
string
url
=
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
"http://"
+
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
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