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
48953689
Commit
48953689
authored
Feb 08, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for processing response from AUSF
parent
161a9f7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
20 deletions
+11
-20
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+3
-2
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+8
-18
No files found.
src/amf-app/amf_n1.cpp
View file @
48953689
...
...
@@ -3702,7 +3702,8 @@ bool amf_n1::reroute_registration_request(std::shared_ptr<nas_context>& nc) {
// re-allocation procedure will be executed to reroute the Registration "
// Request to an appropriate AMF
Logger
::
amf_n1
().
debug
(
"Verifying whether this AMF can handle the request"
);
Logger
::
amf_n1
().
debug
(
"Verifying whether this AMF can handle the request..."
);
/*
// Check if the AMF can serve all the requested S-NSSAIs
...
...
@@ -3727,7 +3728,7 @@ bool amf_n1::reroute_registration_request(std::shared_ptr<nas_context>& nc) {
// Check that AMF can process the Requested NSSAIs or not
if
(
check_subscribed_nssai
(
nc
,
nssai
))
{
Logger
::
amf_n1
().
debug
(
"Current AMF can handle the Requested/Subscribed NSSAIs,
do not
need "
"Current AMF can handle the Requested/Subscribed NSSAIs,
no
need "
"to perform AMF Re-allocation procedure"
);
return
false
;
}
...
...
src/amf-app/amf_n11.cpp
View file @
48953689
...
...
@@ -1747,28 +1747,18 @@ void amf_n11::curl_http_client(
response_json
=
{};
return
;
}
// Get the ProblemDetails
try
{
response_json
=
nlohmann
::
json
::
parse
(
response
);
}
catch
(
nlohmann
::
json
::
exception
&
e
)
{
Logger
::
amf_n11
().
info
(
"Could not get JSON content from the response"
);
response_json
=
{};
}
}
Logger
::
amf_n11
().
debug
(
"Response code %d"
,
httpCode
);
return
;
try
{
response_json
=
nlohmann
::
json
::
parse
(
response
);
}
catch
(
nlohmann
::
json
::
exception
&
e
)
{
Logger
::
amf_n11
().
info
(
"Could not get JSON content from the response"
);
response_json
=
{};
}
if
(
!
is_response_ok
)
{
try
{
response_json
=
nlohmann
::
json
::
parse
(
response
);
}
catch
(
nlohmann
::
json
::
exception
&
e
)
{
Logger
::
amf_n11
().
info
(
"Could not get JSON content from the response"
);
}
Logger
::
amf_n11
().
info
(
"Get response with Json content: %s"
,
response_json
.
dump
().
c_str
());
Logger
::
amf_n11
().
info
(
"Get response with Json content: %s"
,
response_json
.
dump
().
c_str
());
}
curl_slist_free_all
(
headers
);
curl_easy_cleanup
(
curl
);
}
...
...
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