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
4dc0f7e2
Commit
4dc0f7e2
authored
Aug 11, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup/Update with AMF EventExposure
parent
e223804a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
51 deletions
+21
-51
src/amf-app/amf_app.cpp
src/amf-app/amf_app.cpp
+1
-1
src/amf-app/amf_event.cpp
src/amf-app/amf_event.cpp
+1
-7
src/amf-app/amf_event.hpp
src/amf-app/amf_event.hpp
+1
-1
src/amf-app/amf_event_sig.hpp
src/amf-app/amf_event_sig.hpp
+4
-4
src/amf-app/amf_msg.hpp
src/amf-app/amf_msg.hpp
+14
-31
src/amf-app/amf_subscription.hpp
src/amf-app/amf_subscription.hpp
+0
-7
No files found.
src/amf-app/amf_app.cpp
View file @
4dc0f7e2
...
@@ -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"
...
...
src/amf-app/amf_event.cpp
View file @
4dc0f7e2
...
@@ -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
);
}
}
src/amf-app/amf_event.hpp
View file @
4dc0f7e2
...
@@ -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
src/amf-app/amf_event_sig.hpp
View file @
4dc0f7e2
...
@@ -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
// S
CID
, HTTP version
// S
UPI
, 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
...
...
src/amf-app/amf_msg.hpp
View file @
4dc0f7e2
...
@@ -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
{
...
...
src/amf-app/amf_subscription.hpp
View file @
4dc0f7e2
...
@@ -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
{
...
...
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