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
8940412c
Commit
8940412c
authored
Jul 25, 2022
by
ferrerod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add checks to avoid repeated notifications
parent
af78ae47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+20
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
8940412c
...
@@ -3516,6 +3516,10 @@ void amf_n1::handle_ue_location_change(
...
@@ -3516,6 +3516,10 @@ void amf_n1::handle_ue_location_change(
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
for
(
auto
i
:
subscriptions
)
{
for
(
auto
i
:
subscriptions
)
{
// Avoid repeated notifications
// TODO: use the anyUE field from the subscription request
if
(
i
.
get
()
->
supi_is_set
&&
std
::
strcmp
(
i
.
get
()
->
supi
.
c_str
(),
supi
.
c_str
()))
continue
;
event_notification
ev_notif
=
{};
event_notification
ev_notif
=
{};
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
...
@@ -3571,6 +3575,10 @@ void amf_n1::handle_ue_reachability_status_change(
...
@@ -3571,6 +3575,10 @@ void amf_n1::handle_ue_reachability_status_change(
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
for
(
auto
i
:
subscriptions
)
{
for
(
auto
i
:
subscriptions
)
{
// Avoid repeated notifications
// TODO: use the anyUE field from the subscription request
if
(
i
.
get
()
->
supi_is_set
&&
std
::
strcmp
(
i
.
get
()
->
supi
.
c_str
(),
supi
.
c_str
()))
continue
;
event_notification
ev_notif
=
{};
event_notification
ev_notif
=
{};
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
...
@@ -3631,6 +3639,10 @@ void amf_n1::handle_ue_registration_state_change(
...
@@ -3631,6 +3639,10 @@ void amf_n1::handle_ue_registration_state_change(
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
for
(
auto
i
:
subscriptions
)
{
for
(
auto
i
:
subscriptions
)
{
// Avoid repeated notifications
// TODO: use the anyUE field from the subscription request
if
(
i
.
get
()
->
supi_is_set
&&
std
::
strcmp
(
i
.
get
()
->
supi
.
c_str
(),
supi
.
c_str
()))
continue
;
event_notification
ev_notif
=
{};
event_notification
ev_notif
=
{};
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
...
@@ -3698,6 +3710,10 @@ void amf_n1::handle_ue_connectivity_state_change(
...
@@ -3698,6 +3710,10 @@ void amf_n1::handle_ue_connectivity_state_change(
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
for
(
auto
i
:
subscriptions
)
{
for
(
auto
i
:
subscriptions
)
{
// Avoid repeated notifications
// TODO: use the anyUE field from the subscription request
if
(
i
.
get
()
->
supi_is_set
&&
std
::
strcmp
(
i
.
get
()
->
supi
.
c_str
(),
supi
.
c_str
()))
continue
;
event_notification
ev_notif
=
{};
event_notification
ev_notif
=
{};
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
...
@@ -3764,6 +3780,10 @@ void amf_n1::handle_ue_communication_failure_change(
...
@@ -3764,6 +3780,10 @@ void amf_n1::handle_ue_communication_failure_change(
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
for
(
auto
i
:
subscriptions
)
{
for
(
auto
i
:
subscriptions
)
{
// Avoid repeated notifications
// TODO: use the anyUE field from the subscription request
if
(
i
.
get
()
->
supi_is_set
&&
std
::
strcmp
(
i
.
get
()
->
supi
.
c_str
(),
supi
.
c_str
()))
continue
;
event_notification
ev_notif
=
{};
event_notification
ev_notif
=
{};
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_correlation_id
(
i
.
get
()
->
notify_correlation_id
);
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
ev_notif
.
set_notify_uri
(
i
.
get
()
->
notify_uri
);
// Direct subscription
...
...
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