Commit 50aee505 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Use 3gpp_29.518 for AMF

parent 1f3324a1
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define FILE_AMF_MSG_HPP_SEEN #define FILE_AMF_MSG_HPP_SEEN
#include "amf.hpp" #include "amf.hpp"
#include "3gpp_29.508.h" #include "3gpp_29.518.h"
#include "pistache/http.h" #include "pistache/http.h"
#include "amf_profile.hpp" #include "amf_profile.hpp"
...@@ -188,4 +188,4 @@ class data_notification_msg { ...@@ -188,4 +188,4 @@ class data_notification_msg {
}; };
} // namespace amf } // namespace amf
#endif #endif
\ No newline at end of file
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "3gpp_29.508.h" #include "3gpp_29.518.h"
#include "amf.hpp" #include "amf.hpp"
#include "itti.hpp" #include "itti.hpp"
......
...@@ -19,30 +19,40 @@ ...@@ -19,30 +19,40 @@
* contact@openairinterface.org * contact@openairinterface.org
*/ */
#ifndef FILE_3GPP_29_508_SMF_SEEN #ifndef FILE_3GPP_29_518_SEEN
#define FILE_3GPP_29_508_SMF_SEEN #define FILE_3GPP_29_518_SEEN
#include "amf.hpp" #include "amf.hpp"
typedef enum amf_event_e { typedef enum amf_event_e {
SMF_EVENT_AC_TY_CH = 1, LOCATION_REPORT = 1,
SMF_EVENT_UP_PATH_CH = 2, PRESENCE_IN_AOI_REPORT = 2,
SMF_EVENT_PDU_SES_REL = 3, TIMEZONE_REPORT = 3,
SMF_EVENT_PLMN_CH = 4, ACCESS_TYPE_REPORT = 4,
SMF_EVENT_UE_IP_CH = 5, REGISTRATION_STATE_REPORT = 5,
SMF_EVENT_DDDS = 6, CONNECTIVITY_STATE_REPORT = 6,
AMF_EVENT_REACH_ST = 7 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; } amf_event_t;
static const std::vector<std::string> amf_event_e2str = { static const std::vector<std::string> amf_event_e2str = {
"AMF_EVENT_UNKNOWN", "AMF_EVENT_UNKNOWN",
"Access Type Change", "LOCATION_REPORT",
"UP Path Change", "PRESENCE_IN_AOI_REPORT",
"PDU Session Release", "TIMEZONE_REPORT",
"PLMN Change", "ACCESS_TYPE_REPORT",
"UE IP address change", "REGISTRATION_STATE_REPORT",
"Downlink data delivery status", "CONNECTIVITY_STATE_REPORT",
"UE Reachability Status Change"}; "REACHABILITY_REPORT",
"COMMUNICATION_FAILURE_REPORT",
"UES_IN_AREA_REPORT",
"SUBSCRIPTION_ID_CHANGE",
"SUBSCRIPTION_ID_ADDITION",
"LOSS_OF_CONNECTIVITY"};
enum class notification_method_e { enum class notification_method_e {
PERIODIC = 1, PERIODIC = 1,
...@@ -54,15 +64,12 @@ static const std::vector<std::string> notification_method_e2str = { ...@@ -54,15 +64,12 @@ static const std::vector<std::string> notification_method_e2str = {
"NOTIFICATION_METHOD_UNKNOWN", "PERIODIC", "ONE_TIME", "NOTIFICATION_METHOD_UNKNOWN", "PERIODIC", "ONE_TIME",
"ON_EVENT_DETECTION"}; "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 { typedef struct event_subscription_s {
amf_event_t amf_event; amf_event_t amf_event;
dnai_change_type_e dnai_change_type; // immediateFlag:
// DddTrafficDescriptor // areaList:
std::vector<ddd_status_e> ddd_status; // locationFilterList:
// refId:
} event_subscription_t; } event_subscription_t;
#endif #endif
/** /**
* Namf_EventExposure * 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. * Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* *
* The version of the OpenAPI document: 1.1.0.alpha-1 * The version of the OpenAPI document: 1.1.0.alpha-1
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include "logger.hpp" #include "logger.hpp"
#include "amf_msg.hpp" #include "amf_msg.hpp"
#include "3gpp_29.508.h" #include "3gpp_29.518.h"
#include "itti_msg_sbi.hpp" #include "itti_msg_sbi.hpp"
#include "amf_config.hpp" #include "amf_config.hpp"
#include "3gpp_conversions.hpp" #include "3gpp_conversions.hpp"
......
...@@ -93,7 +93,7 @@ void xgpp_conv::amf_event_exposure_notification_from_openapi( ...@@ -93,7 +93,7 @@ void xgpp_conv::amf_event_exposure_notification_from_openapi(
// EventSubscription: TODO // EventSubscription: TODO
event_subscription_t event_subscription = {}; event_subscription_t event_subscription = {};
event_subscription.amf_event = amf_event_t::AMF_EVENT_REACH_ST; event_subscription.amf_event = amf_event_t::REACHABILITY_REPORT;
std::vector<event_subscription_t> event_subscriptions = {}; std::vector<event_subscription_t> event_subscriptions = {};
event_subscriptions.push_back(event_subscription); event_subscriptions.push_back(event_subscription);
// eem.set_event_subs(event_subscriptions); // eem.set_event_subs(event_subscriptions);
...@@ -104,4 +104,4 @@ void xgpp_conv::amf_event_exposure_notification_from_openapi( ...@@ -104,4 +104,4 @@ void xgpp_conv::amf_event_exposure_notification_from_openapi(
// getDnaiChgType // getDnaiChgType
// event_subscriptions.push_back(event_subscription); // event_subscriptions.push_back(event_subscription);
//} //}
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment