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
0254844e
Commit
0254844e
authored
Dec 06, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add AmfEventState
parent
e102d11f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
19 deletions
+21
-19
src/amf-app/amf_event.hpp
src/amf-app/amf_event.hpp
+0
-2
src/amf-app/amf_event_sig.hpp
src/amf-app/amf_event_sig.hpp
+8
-0
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+13
-1
src/common/3gpp_29.518.h
src/common/3gpp_29.518.h
+0
-16
No files found.
src/amf-app/amf_event.hpp
View file @
0254844e
...
...
@@ -83,10 +83,8 @@ class amf_event {
private:
ue_reachability_status_sig_t
ue_reachability_status
;
// Signal for UE Reachability Report
ue_registration_state_sig_t
ue_registration_state
;
// Signal for UE Registration State Report
ue_connectivity_state_sig_t
ue_connectivity_state
;
// Signal for UE Connectivity State Report
};
...
...
src/amf-app/amf_event_sig.hpp
View file @
0254844e
...
...
@@ -36,6 +36,10 @@
namespace
bs2
=
boost
::
signals2
;
namespace
amf_application
{
// TODO: Location-Report
// TODO: Presence-In-AOI-Report
// TODO: Time-Zone-Report
// TODO: Access-Type-Report
// Signal for UE Reachability Report
// SUPI, status, HTTP version
...
...
@@ -58,5 +62,9 @@ typedef bs2::signal_type<
bs2
::
keywords
::
mutex_type
<
bs2
::
dummy_mutex
>>::
type
ue_connectivity_state_sig_t
;
// TODO: Communication-Failure-Report
// TODO: UEs-In-Area-Report
// TODO: Loss-of-Connectivity
}
// namespace amf_application
#endif
src/amf-app/amf_n1.cpp
View file @
0254844e
...
...
@@ -3130,8 +3130,12 @@ void amf_n1::handle_ue_reachability_status_change(
oai
::
amf
::
model
::
AmfEventReport
event_report
=
{};
oai
::
amf
::
model
::
AmfEventType
amf_event_type
=
{};
amf_event_type
.
set_value
(
"REACHABILITY_REPORT"
);
event_report
.
setType
(
amf_event_type
);
AmfEventState
amf_event_state
=
{};
amf_event_state
.
setActive
(
true
);
event_report
.
setState
(
amf_event_state
);
oai
::
amf
::
model
::
UeReachability
ue_reachability
=
{};
if
(
status
==
CM_CONNECTED
)
ue_reachability
.
set_value
(
"REACHABLE"
);
...
...
@@ -3190,6 +3194,10 @@ void amf_n1::handle_ue_registration_state_change(
amf_event_type
.
set_value
(
"REGISTRATION_STATE_REPORT"
);
event_report
.
setType
(
amf_event_type
);
AmfEventState
amf_event_state
=
{};
amf_event_state
.
setActive
(
true
);
event_report
.
setState
(
amf_event_state
);
std
::
vector
<
oai
::
amf
::
model
::
RmInfo
>
rm_infos
;
oai
::
amf
::
model
::
RmInfo
rm_info
=
{};
oai
::
amf
::
model
::
RmState
rm_state
=
{};
...
...
@@ -3254,6 +3262,10 @@ void amf_n1::handle_ue_connectivity_state_change(
amf_event_type
.
set_value
(
"CONNECTIVITY_STATE_REPORT"
);
event_report
.
setType
(
amf_event_type
);
AmfEventState
amf_event_state
=
{};
amf_event_state
.
setActive
(
true
);
event_report
.
setState
(
amf_event_state
);
std
::
vector
<
oai
::
amf
::
model
::
CmInfo
>
cm_infos
;
oai
::
amf
::
model
::
CmInfo
cm_info
=
{};
oai
::
amf
::
model
::
CmState
cm_state
=
{};
...
...
src/common/3gpp_29.518.h
View file @
0254844e
...
...
@@ -75,22 +75,6 @@ typedef struct amf_event_s {
}
amf_event_t
;
/*
typedef struct amf_event_state_s {
bool m_active;
int32_t m_remain_reports;
bool m_remain_reports_is_set;
int32_t m_remain_duration;
bool m_remain_duration_is_set;
} amf_event_state_t;
typedef enum ue_reachability_e {
UNREACHABLE = 1,
REACHABLE = 2,
REGULATORY_ONLY = 3
} ue_reachability_t;
*/
enum
n1_n2_message_transfer_cause_e
{
ATTEMPTING_TO_REACH_UE
=
1
,
N1_N2_TRANSFER_INITIATED
=
2
,
...
...
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