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
50aee505
Commit
50aee505
authored
Aug 10, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 3gpp_29.518 for AMF
parent
1f3324a1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
30 deletions
+37
-30
src/amf-app/amf_msg.hpp
src/amf-app/amf_msg.hpp
+2
-2
src/amf-app/amf_subscription.hpp
src/amf-app/amf_subscription.hpp
+1
-1
src/common/3gpp_29.518.h
src/common/3gpp_29.518.h
+30
-23
src/sbi/amf_server/impl/SubscriptionsCollectionApiImpl.cpp
src/sbi/amf_server/impl/SubscriptionsCollectionApiImpl.cpp
+2
-2
src/utils/3gpp_conversions.cpp
src/utils/3gpp_conversions.cpp
+2
-2
No files found.
src/amf-app/amf_msg.hpp
View file @
50aee505
...
...
@@ -30,7 +30,7 @@
#define FILE_AMF_MSG_HPP_SEEN
#include "amf.hpp"
#include "3gpp_29.5
0
8.h"
#include "3gpp_29.5
1
8.h"
#include "pistache/http.h"
#include "amf_profile.hpp"
...
...
@@ -188,4 +188,4 @@ class data_notification_msg {
};
}
// namespace amf
#endif
\ No newline at end of file
#endif
src/amf-app/amf_subscription.hpp
View file @
50aee505
...
...
@@ -33,7 +33,7 @@
#include <utility>
#include <vector>
#include "3gpp_29.5
0
8.h"
#include "3gpp_29.5
1
8.h"
#include "amf.hpp"
#include "itti.hpp"
...
...
src/common/3gpp_29.5
0
8.h
→
src/common/3gpp_29.5
1
8.h
View file @
50aee505
...
...
@@ -19,30 +19,40 @@
* contact@openairinterface.org
*/
#ifndef FILE_3GPP_29_5
08_SMF
_SEEN
#define FILE_3GPP_29_5
08_SMF
_SEEN
#ifndef FILE_3GPP_29_5
18
_SEEN
#define FILE_3GPP_29_5
18
_SEEN
#include "amf.hpp"
typedef
enum
amf_event_e
{
SMF_EVENT_AC_TY_CH
=
1
,
SMF_EVENT_UP_PATH_CH
=
2
,
SMF_EVENT_PDU_SES_REL
=
3
,
SMF_EVENT_PLMN_CH
=
4
,
SMF_EVENT_UE_IP_CH
=
5
,
SMF_EVENT_DDDS
=
6
,
AMF_EVENT_REACH_ST
=
7
LOCATION_REPORT
=
1
,
PRESENCE_IN_AOI_REPORT
=
2
,
TIMEZONE_REPORT
=
3
,
ACCESS_TYPE_REPORT
=
4
,
REGISTRATION_STATE_REPORT
=
5
,
CONNECTIVITY_STATE_REPORT
=
6
,
REACHABILITY_REPORT
=
7
,
COMMUNICATION_FAILURE_REPORT
=
8
,
UES_IN_AREA_REPORT
=
9
,
SUBSCRIPTION_ID_CHANGE
=
10
,
SUBSCRIPTION_ID_ADDITION
=
11
,
LOSS_OF_CONNECTIVITY
=
12
}
amf_event_t
;
static
const
std
::
vector
<
std
::
string
>
amf_event_e2str
=
{
"AMF_EVENT_UNKNOWN"
,
"Access Type Change"
,
"UP Path Change"
,
"PDU Session Release"
,
"PLMN Change"
,
"UE IP address change"
,
"Downlink data delivery status"
,
"UE Reachability Status Change"
};
"LOCATION_REPORT"
,
"PRESENCE_IN_AOI_REPORT"
,
"TIMEZONE_REPORT"
,
"ACCESS_TYPE_REPORT"
,
"REGISTRATION_STATE_REPORT"
,
"CONNECTIVITY_STATE_REPORT"
,
"REACHABILITY_REPORT"
,
"COMMUNICATION_FAILURE_REPORT"
,
"UES_IN_AREA_REPORT"
,
"SUBSCRIPTION_ID_CHANGE"
,
"SUBSCRIPTION_ID_ADDITION"
,
"LOSS_OF_CONNECTIVITY"
};
enum
class
notification_method_e
{
PERIODIC
=
1
,
...
...
@@ -54,15 +64,12 @@ static const std::vector<std::string> notification_method_e2str = {
"NOTIFICATION_METHOD_UNKNOWN"
,
"PERIODIC"
,
"ONE_TIME"
,
"ON_EVENT_DETECTION"
};
enum
class
dnai_change_type_e
{
EARLY
=
1
,
EARLY_LATE
=
2
,
LATE
=
3
};
enum
class
ddd_status_e
{
BUFFERED
=
1
,
TRANSMITTED
=
2
,
DISCARDED
=
3
};
typedef
struct
event_subscription_s
{
amf_event_t
amf_event
;
dnai_change_type_e
dnai_change_type
;
// DddTrafficDescriptor
std
::
vector
<
ddd_status_e
>
ddd_status
;
// immediateFlag:
// areaList:
// locationFilterList:
// refId:
}
event_subscription_t
;
#endif
src/sbi/amf_server/impl/SubscriptionsCollectionApiImpl.cpp
View file @
50aee505
/**
* Namf_EventExposure
* Session Management Event Exposure Service. © 2019, 3GPP Organizational
* Session Management Event Exposure Service.
�
2019, 3GPP Organizational
* Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
...
...
@@ -36,7 +36,7 @@
#include "logger.hpp"
#include "amf_msg.hpp"
#include "3gpp_29.5
0
8.h"
#include "3gpp_29.5
1
8.h"
#include "itti_msg_sbi.hpp"
#include "amf_config.hpp"
#include "3gpp_conversions.hpp"
...
...
src/utils/3gpp_conversions.cpp
View file @
50aee505
...
...
@@ -93,7 +93,7 @@ void xgpp_conv::amf_event_exposure_notification_from_openapi(
// EventSubscription: TODO
event_subscription_t
event_subscription
=
{};
event_subscription
.
amf_event
=
amf_event_t
::
AMF_EVENT_REACH_S
T
;
event_subscription
.
amf_event
=
amf_event_t
::
REACHABILITY_REPOR
T
;
std
::
vector
<
event_subscription_t
>
event_subscriptions
=
{};
event_subscriptions
.
push_back
(
event_subscription
);
// eem.set_event_subs(event_subscriptions);
...
...
@@ -104,4 +104,4 @@ void xgpp_conv::amf_event_exposure_notification_from_openapi(
// getDnaiChgType
// event_subscriptions.push_back(event_subscription);
//}
}
\ No newline at end of file
}
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