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
af78ae47
Commit
af78ae47
authored
Jul 22, 2022
by
ferrerod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add event triggering on rejected registration
parent
2c5a2cb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+15
-0
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+3
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
af78ae47
...
@@ -1640,6 +1640,21 @@ void amf_n1::send_registration_reject_msg(
...
@@ -1640,6 +1640,21 @@ void amf_n1::send_registration_reject_msg(
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
);
// Trigger CommunicationFailure Report notify
oai
::
amf
::
model
::
CommunicationFailure
comm_failure
=
{};
std
::
shared_ptr
<
ue_context
>
uc
=
{};
if
(
!
find_ue_context
(
ran_ue_ngap_id
,
amf_ue_ngap_id
,
uc
))
{
Logger
::
amf_n1
().
warn
(
"Cannot find the UE context, unable to notify CommunicationFailure Report"
);
return
;
}
string
supi
=
uc
.
get
()
->
supi
;
Logger
::
amf_n1
().
debug
(
"Signal the UE CommunicationFailure Report Event notification for SUPI %s"
,
supi
.
c_str
());
comm_failure
.
setNasReleaseCode
(
std
::
to_string
(
cause_value
));
event_sub
.
ue_communication_failure
(
supi
,
comm_failure
,
1
);
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
...
src/amf-app/amf_n11.cpp
View file @
af78ae47
...
@@ -617,6 +617,9 @@ void amf_n11::handle_itti_message(itti_sbi_notify_subscribed_event& itti_msg) {
...
@@ -617,6 +617,9 @@ void amf_n11::handle_itti_message(itti_sbi_notify_subscribed_event& itti_msg) {
if
(
r
.
reachabilityIsSet
())
{
if
(
r
.
reachabilityIsSet
())
{
report
[
"reachability"
]
=
r
.
getReachability
().
get_value
();
report
[
"reachability"
]
=
r
.
getReachability
().
get_value
();
}
}
if
(
r
.
commFailureIsSet
())
{
report
[
"commFailure"
]
=
r
.
getCommFailure
();
}
// timestamp
// timestamp
std
::
time_t
time_epoch_ntp
=
std
::
time
(
nullptr
);
std
::
time_t
time_epoch_ntp
=
std
::
time
(
nullptr
);
...
...
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