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
e9a41397
Commit
e9a41397
authored
Feb 01, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verify PDU Session Ressource Release Response msg
parent
f3d7f472
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
20 deletions
+26
-20
src/ngap/ngap_app/ngap_message_callback.hpp
src/ngap/ngap_app/ngap_message_callback.hpp
+26
-20
No files found.
src/ngap/ngap_app/ngap_message_callback.hpp
View file @
e9a41397
...
...
@@ -357,32 +357,38 @@ int ngap_amf_handle_pdu_session_resource_release_response(
return
RETURNerror
;
}
// TODO: add the full list
Logger
::
ngap
().
debug
(
"Sending ITTI PDUSessionResourceReleaseResponse to TASK_AMF_SBI"
);
if
(
list
.
size
()
>
0
)
{
// TODO: add the full list
Logger
::
ngap
().
debug
(
"Sending ITTI PDUSessionResourceReleaseResponse to TASK_AMF_SBI"
);
auto
itti_msg
=
std
::
make_shared
<
itti_nsmf_pdusession_update_sm_context
>
(
TASK_NGAP
,
TASK_AMF_SBI
);
auto
itti_msg
=
std
::
make_shared
<
itti_nsmf_pdusession_update_sm_context
>
(
TASK_NGAP
,
TASK_AMF_SBI
);
itti_msg
->
pdu_session_id
=
list
[
0
].
pduSessionId
;
itti_msg
->
n2sm
=
blk2bstr
(
list
[
0
].
pduSessionResourceReleaseResponseTransfer
.
buf
,
list
[
0
].
pduSessionResourceReleaseResponseTransfer
.
size
);
;
itti_msg
->
is_n2sm_set
=
true
;
itti_msg
->
n2sm_info_type
=
"PDU_RES_REL_RSP"
;
itti_msg
->
amf_ue_ngap_id
=
pdu_session_resource_release_response
->
getAmfUeNgapId
();
itti_msg
->
ran_ue_ngap_id
=
pdu_session_resource_release_response
->
getRanUeNgapId
();
itti_msg
->
pdu_session_id
=
list
[
0
].
pduSessionId
;
itti_msg
->
n2sm
=
blk2bstr
(
list
[
0
].
pduSessionResourceReleaseResponseTransfer
.
buf
,
list
[
0
].
pduSessionResourceReleaseResponseTransfer
.
size
);
itti_msg
->
is_n2sm_set
=
true
;
itti_msg
->
n2sm_info_type
=
"PDU_RES_REL_RSP"
;
itti_msg
->
amf_ue_ngap_id
=
pdu_session_resource_release_response
->
getAmfUeNgapId
();
itti_msg
->
ran_ue_ngap_id
=
pdu_session_resource_release_response
->
getRanUeNgapId
();
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
0
!=
ret
)
{
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
0
!=
ret
)
{
Logger
::
ngap
().
error
(
"Could not send ITTI message %s to task TASK_AMF_SBI"
,
itti_msg
->
get_msg_name
());
return
RETURNerror
;
}
}
else
{
Logger
::
ngap
().
error
(
"Could not send ITTI message %s to task TASK_AMF_SBI"
,
itti_msg
->
get_msg_name
());
"Missing mandatory IE: PDU Session Resource Released List"
);
return
RETURNerror
;
}
return
RETURNok
;
}
...
...
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