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
39c82895
Commit
39c82895
authored
Jan 19, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove NGAP context after receiving UE context release complete
parent
8fbd98ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+4
-1
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+4
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
39c82895
...
@@ -3103,6 +3103,9 @@ void amf_n1::ue_initiate_de_registration_handle(
...
@@ -3103,6 +3103,9 @@ void amf_n1::ue_initiate_de_registration_handle(
}
}
}
}
// TODO: AMF-nitiated AM Policy Association Termination (if exist)
// TODO: AMF-initiated UE Policy Association Termination (if exist)
// Check Deregistration type
// Check Deregistration type
uint8_t
deregType
=
0
;
uint8_t
deregType
=
0
;
dereg_request
->
getDeregistrationType
(
deregType
);
dereg_request
->
getDeregistrationType
(
deregType
);
...
@@ -3127,7 +3130,7 @@ void amf_n1::ue_initiate_de_registration_handle(
...
@@ -3127,7 +3130,7 @@ void amf_n1::ue_initiate_de_registration_handle(
bstring
b
=
blk2bstr
(
buffer
,
encoded_size
);
bstring
b
=
blk2bstr
(
buffer
,
encoded_size
);
itti_send_dl_nas_buffer_to_task_n2
(
b
,
ran_ue_ngap_id
,
amf_ue_ngap_id
);
itti_send_dl_nas_buffer_to_task_n2
(
b
,
ran_ue_ngap_id
,
amf_ue_ngap_id
);
// sleep
1
00ms
// sleep
2
00ms
usleep
(
200000
);
usleep
(
200000
);
}
}
...
...
src/amf-app/amf_n2.cpp
View file @
39c82895
...
@@ -1285,6 +1285,7 @@ void amf_n2::handle_itti_message(itti_ue_context_release_complete& itti_msg) {
...
@@ -1285,6 +1285,7 @@ void amf_n2::handle_itti_message(itti_ue_context_release_complete& itti_msg) {
"No existed nas_context with amf_ue_ngap_id ("
AMF_UE_NGAP_ID_FMT
")"
,
"No existed nas_context with amf_ue_ngap_id ("
AMF_UE_NGAP_ID_FMT
")"
,
amf_ue_ngap_id
);
amf_ue_ngap_id
);
}
}
if
(
nc
!=
nullptr
)
{
if
(
nc
!=
nullptr
)
{
amf_n1_inst
->
set_5gcm_state
(
nc
,
CM_IDLE
);
amf_n1_inst
->
set_5gcm_state
(
nc
,
CM_IDLE
);
...
@@ -1394,6 +1395,9 @@ void amf_n2::handle_itti_message(itti_ue_context_release_complete& itti_msg) {
...
@@ -1394,6 +1395,9 @@ void amf_n2::handle_itti_message(itti_ue_context_release_complete& itti_msg) {
}
}
curl_responses
.
erase
(
curl_responses
.
begin
());
curl_responses
.
erase
(
curl_responses
.
begin
());
}
}
// Remove UE NGAP context
remove_ue_context_with_ran_ue_ngap_id
(
ran_ue_ngap_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