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
936566db
Commit
936566db
authored
Dec 01, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid triggering 2 times the response to NF consumer
parent
6af52519
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+7
-6
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+5
-6
No files found.
src/smf_app/smf_context.cpp
View file @
936566db
...
...
@@ -5436,12 +5436,13 @@ void smf_context::send_pdu_session_release_response(
}
}
else
{
oai
::
smf_server
::
model
::
ProblemDetails
problem_details
=
{};
problem_details
.
setCause
(
pdu_session_application_error_e2str
.
at
(
PDU_SESSION_APPLICATION_ERROR_NETWORK_FAILURE
));
resp
->
res
.
set_http_code
(
http_status_code_e
::
HTTP_STATUS_CODE_406_NOT_ACCEPTABLE
);
// Trigger response to AMF
nlohmann
::
json
response_message_json
=
{};
resp
->
res
.
to_json
(
response_message_json
);
smf_app_inst
->
trigger_http_response
(
http_status_code_e
::
HTTP_STATUS_CODE_406_NOT_ACCEPTABLE
,
n11_triggered_pending
->
pid
,
N11_SESSION_RELEASE_SM_CONTEXT_RESPONSE
);
response_message_json
,
resp
->
pid
,
N11_SESSION_RELEASE_SM_CONTEXT_RESPONSE
);
}
}
src/smf_app/smf_procedure.cpp
View file @
936566db
...
...
@@ -1254,6 +1254,10 @@ smf_procedure_code session_update_sm_context_procedure::handle_itti_msg(
allocated (e.g. IP address) and releases the association with PCF, if any.
see step 18, section 4.3.2.2.1@3GPP TS 23.502)
*/
// TODO: should we return here with smf_procedure_code::ERROR;
}
else
{
n11_triggered_pending
->
res
.
set_cause
(
static_cast
<
uint8_t
>
(
cause_value_5gsm_e
::
CAUSE_255_REQUEST_ACCEPTED
));
}
// list of accepted QFI(s) and AN Tunnel Info corresponding to the PDU Session
...
...
@@ -1296,7 +1300,7 @@ smf_procedure_code session_update_sm_context_procedure::handle_itti_msg(
n11_trigger
->
req
.
get_dl_fteid
(
n3_dl_fteid
);
Logger
::
smf_app
().
debug
(
"AN F-TEID ID"
"AN F-TEID ID
"
"0x%"
PRIx32
", IP Addr %s"
,
n3_dl_fteid
.
teid
,
conv
::
toString
(
n3_dl_fteid
.
ipv4_address
).
c_str
());
...
...
@@ -1404,11 +1408,6 @@ smf_procedure_code session_update_sm_context_procedure::handle_itti_msg(
}
else
{
Logger
::
smf_app
().
info
(
"PDU Session Update SM Context, rejected by UPF"
);
// trigger to send reply to AMF
smf_app_inst
->
trigger_update_context_error_response
(
http_status_code_e
::
HTTP_STATUS_CODE_403_FORBIDDEN
,
PDU_SESSION_APPLICATION_ERROR_NETWORK_FAILURE
,
n11_triggered_pending
->
pid
);
return
smf_procedure_code
::
ERROR
;
}
}
break
;
...
...
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