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
7f07f1df
Commit
7f07f1df
authored
Apr 18, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove UE context after receiving NGAP SHUTDOWN
parent
1b6e12d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+7
-2
No files found.
src/amf-app/amf_n2.cpp
View file @
7f07f1df
...
...
@@ -417,10 +417,11 @@ void amf_n2::handle_itti_message(itti_ng_shutdown& itti_msg) {
gc
.
get
()
->
ng_state
=
NGAP_SHUTDOWN
;
// Release all the resources related to this interface
uint32_t
ran_ue_ngap_id
=
0
;
for
(
auto
ue_context
:
ranid2uecontext
)
{
if
(
ue_context
.
second
->
gnb_assoc_id
==
itti_msg
.
assoc_id
)
{
uint32_t
ran_ue_ngap_id
=
ue_context
.
second
->
ran_ue_ngap_id
;
long
amf_ue_ngap_id
=
ue_context
.
second
->
amf_ue_ngap_id
;
ran_ue_ngap_id
=
ue_context
.
second
->
ran_ue_ngap_id
;
long
amf_ue_ngap_id
=
ue_context
.
second
->
amf_ue_ngap_id
;
// get NAS context
std
::
shared_ptr
<
nas_context
>
nc
;
if
(
amf_n1_inst
->
is_amf_ue_id_2_nas_context
(
amf_ue_ngap_id
))
{
...
...
@@ -432,6 +433,10 @@ void amf_n2::handle_itti_message(itti_ng_shutdown& itti_msg) {
}
}
}
// remove UE context
if
(
ranid2uecontext
.
count
(
ran_ue_ngap_id
)
>
0
)
{
ranid2uecontext
.
erase
(
ran_ue_ngap_id
);
}
// Delete gNB context
remove_gnb_context
(
itti_msg
.
assoc_id
);
...
...
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