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
43e0839f
Commit
43e0839f
authored
Feb 17, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for AMF's HTTP2 port
parent
1bcebfbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
src/api-server/impl/NFStatusNotifyApiImpl.cpp
src/api-server/impl/NFStatusNotifyApiImpl.cpp
+1
-1
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+11
-5
No files found.
src/api-server/impl/NFStatusNotifyApiImpl.cpp
View file @
43e0839f
...
...
@@ -74,7 +74,7 @@ void NFStatusNotifyApiImpl::receive_nf_status_notification(
if
(
m_smf_app
->
handle_nf_status_notification
(
itti_msg
,
problem_details
,
http_code
))
{
response
.
send
(
Pistache
::
Http
::
Code
(
204
));
response
.
send
(
Pistache
::
Http
::
Code
(
HTTP_STATUS_CODE_204_NO_CONTENT
));
}
else
{
nlohmann
::
json
json_data
=
{};
to_json
(
json_data
,
problem_details
);
...
...
src/smf_app/smf_context.cpp
View file @
43e0839f
...
...
@@ -1596,15 +1596,21 @@ void smf_context::handle_pdu_session_create_sm_context_request(
boost
::
split
(
split_result
,
amf_status_uri
,
boost
::
is_any_of
(
"/"
));
if
(
split_result
.
size
()
>=
3
)
{
std
::
string
addr
=
split_result
[
2
];
// remove http port from the URI if existed
std
::
size_t
found_port
=
addr
.
find
(
":"
);
if
(
found_port
!=
std
::
string
::
npos
)
addr
=
addr
.
substr
(
0
,
found_port
);
std
::
string
full_addr
=
split_result
[
2
];
// Check if the AMF addr is valid
std
::
size_t
found_port
=
full_addr
.
find
(
":"
);
std
::
string
addr
=
{};
// Addr without port
if
(
found_port
!=
std
::
string
::
npos
)
{
addr
=
full_addr
.
substr
(
0
,
found_port
);
}
else
{
addr
=
full_addr
;
}
struct
in_addr
amf_ipv4_addr
;
if
(
inet_aton
(
util
::
trim
(
addr
).
c_str
(),
&
amf_ipv4_addr
)
==
0
)
{
Logger
::
smf_api_server
().
warn
(
"Bad IPv4 for AMF"
);
}
else
{
amf_addr_str
=
addr
;
amf_addr_str
=
full_
addr
;
Logger
::
smf_api_server
().
debug
(
"AMF IP Addr %s"
,
amf_addr_str
.
c_str
());
}
}
...
...
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