Commit 4dc0f7e2 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Code cleanup/Update with AMF EventExposure

parent e223804a
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <iostream> #include <iostream>
#include <stdexcept> #include <stdexcept>
#include "3gpp_conversions.hpp" //#include "3gpp_conversions.hpp"
#include "DLNASTransport.hpp" #include "DLNASTransport.hpp"
#include "amf_config.hpp" #include "amf_config.hpp"
#include "amf_n1.hpp" #include "amf_n1.hpp"
......
...@@ -28,16 +28,10 @@ ...@@ -28,16 +28,10 @@
*/ */
#include "amf_event.hpp" #include "amf_event.hpp"
#include "itti.hpp"
#include "amf_app.hpp" #include "amf_app.hpp"
#include "smf_subscription.hpp"
using namespace amf;
extern amf::amf_app* amf_app_inst;
extern itti_mw* itti_inst;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
bs2::connection amf_event::subscribe_ue_reachability_status( bs2::connection amf_event::subscribe_ue_reachability_status(
const ue_reachability_status_sig_t::slot_type& sig) { const ue_reachability_status_sig_t::slot_type& sig) {
return sm_context_status.connect(sig); return ue_reachability_status.connect(sig);
} }
...@@ -62,6 +62,6 @@ class amf_event { ...@@ -62,6 +62,6 @@ class amf_event {
private: private:
ue_reachability_status_sig_t ue_reachability_status_sig_t
ue_reachability_status; // Signal for SM Context status update ue_reachability_status; // Signal for UE Reachability Report
}; };
} // namespace amf } // namespace amf
...@@ -32,16 +32,16 @@ ...@@ -32,16 +32,16 @@
#include <boost/signals2.hpp> #include <boost/signals2.hpp>
#include <string> #include <string>
#include "3gpp_24.007.h"
namespace bs2 = boost::signals2; namespace bs2 = boost::signals2;
namespace amf { namespace amf {
// Signal for UE Reachability status // Signal for UE Reachability Report
// SCID, HTTP version // SUPI, HTTP version
typedef bs2::signal_type< typedef bs2::signal_type<
void(scid_t, uint8_t), bs2::keywords::mutex_type<bs2::dummy_mutex>>::type void(std::string, uint8_t),
bs2::keywords::mutex_type<bs2::dummy_mutex>>::type
ue_reachability_status_sig_t; ue_reachability_status_sig_t;
} // namespace amf } // namespace amf
......
...@@ -54,42 +54,25 @@ class event_exposure_msg { ...@@ -54,42 +54,25 @@ class event_exposure_msg {
void set_event_subs(std::vector<event_subscription_t> const& value); void set_event_subs(std::vector<event_subscription_t> const& value);
private: private:
supi_t m_supi; supi_t m_supi; // Supi
bool m_supi_is_set; bool m_supi_is_set;
std::string m_supi_prefix; std::string m_supi_prefix;
std::string m_sub_id; // m_SubId; std::string m_sub_id; // m_SubId;
bool m_sub_id_is_set; bool m_sub_id_is_set;
std::string m_notif_uri; // m_NotifUri;
std::string m_notif_id; // m_NotifId; std::string m_notif_uri; // eventNotifyUri
std::vector<event_subscription_t> m_event_subs; // m_EventSubs;
std::string m_notif_id; // notifyCorrelationId
// NotificationMethod m_NotifMethod; std::vector<event_subscription_t> m_event_subs; // eventList
// bool m_NotifMethodIsSet; // nfId:
// int32_t m_MaxReportNbr; // subsChangeNotifyUri:
// bool m_MaxReportNbrIsSet; // subsChangeNotifyCorrelationId:
// std::string m_Expiry; // groupId:
// bool m_ExpiryIsSet; // gpsi:
// int32_t m_RepPeriod; // pei:
// bool m_RepPeriodIsSet; // anyUE:
// Guami m_Guami; // options: AmfEventMode
// bool m_GuamiIsSet;
// std::string m_ServiveName;
// bool m_ServiveNameIsSet;
// std::vector<std::string> m_AltNotifIpv4Addrs;
// bool m_AltNotifIpv4AddrsIsSet;
// std::vector<Ipv6Addr> m_AltNotifIpv6Addrs;
// bool m_AltNotifIpv6AddrsIsSet;
// bool m_AnyUeInd;
// bool m_AnyUeIndIsSet;
// std::string m_Gpsi;
// bool m_GpsiIsSet;
// std::string m_GroupId;
// bool m_GroupIdIsSet;
// bool m_ImmeRep;
// bool m_ImmeRepIsSet;
// std::string m_SupportedFeatures;
// bool m_SupportedFeaturesIsSet;
}; };
class event_notification { class event_notification {
......
...@@ -27,15 +27,8 @@ ...@@ -27,15 +27,8 @@
\email: shivam.gandhi@kcl.ac.uk \email: shivam.gandhi@kcl.ac.uk
*/ */
#include <map>
#include <memory>
#include <shared_mutex>
#include <utility>
#include <vector>
#include "3gpp_29.518.h" #include "3gpp_29.518.h"
#include "amf.hpp" #include "amf.hpp"
#include "itti.hpp"
namespace amf { namespace amf {
......
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