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
d0ddfa2d
Commit
d0ddfa2d
authored
Mar 15, 2023
by
Stefan Spettel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(smf): Send HTTP 201 only once for the failure case
Signed-off-by:
Stefan Spettel
<
stefan.spettel@phine.tech
>
parent
074889ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+11
-10
No files found.
src/smf_app/smf_context.cpp
View file @
d0ddfa2d
...
...
@@ -1781,6 +1781,17 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// TODO:
// un-subscribe to the modifications of Session Management Subscription data
// for (SUPI, DNN, S-NSSAI)
// Send HTTP reply to PDU Session Establishment Request
// TODO Stefan: I believe this is not standard-compliant, we should just
// send an error code here (see 29.502 Table 6.1.3.2.3.1-3)
pdu_session_create_sm_context_response
sm_context_response
=
{};
sm_context_response
.
set_http_code
(
http_status_code_e
::
HTTP_STATUS_CODE_201_CREATED
);
smf_app_inst
->
trigger_session_create_sm_context_response
(
sm_context_response
,
smreq
->
pid
);
}
// Step 10. if error when establishing the pdu session,
...
...
@@ -1812,16 +1823,6 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// clear the created context??
// TODO:
// Send HTTP reply to PDU Session Establishment Request
// TODO Stefan: I believe this is not standard-compliant, we should just
// send an error code here (see 29.502 Table 6.1.3.2.3.1-3)
pdu_session_create_sm_context_response
sm_context_response
=
{};
sm_context_response
.
set_http_code
(
http_status_code_e
::
HTTP_STATUS_CODE_201_CREATED
);
smf_app_inst
->
trigger_session_create_sm_context_response
(
sm_context_response
,
smreq
->
pid
);
// Create PDU Session Establishment Reject and embedded in
// Namf_Communication_N1N2MessageTransfer Request
Logger
::
smf_app
().
debug
(
"Create PDU Session Establishment Reject"
);
...
...
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