Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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-SMF
Commits
61a32dc3
Commit
61a32dc3
authored
Aug 08, 2022
by
ferrerod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UR trigger on Time Threshold reached
parent
0a6d081e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
src/pfcp/3gpp_29.244.hpp
src/pfcp/3gpp_29.244.hpp
+5
-5
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+11
-7
No files found.
src/pfcp/3gpp_29.244.hpp
View file @
61a32dc3
...
...
@@ -9270,11 +9270,11 @@ class pfcp_create_urr_ie : public pfcp_grouped_ie {
new
pfcp_volume_quota_ie
(
b
.
volume_quota
.
second
));
add_ie
(
sie
);
}
}
if
(
b
.
urr_id
.
first
&&
b
.
volume_threshold
.
first
)
{
std
::
shared_ptr
<
pfcp_volume_threshold_ie
>
sie
(
new
pfcp_volume_threshold_ie
(
b
.
volume_threshold
.
second
)
);
add_ie
(
sie
);
if
(
b
.
time_threshold
.
first
)
{
std
::
shared_ptr
<
pfcp_time_threshold_ie
>
sie
(
new
pfcp_time_threshold_ie
(
b
.
time_threshold
.
second
));
add_ie
(
sie
);
}
}
// ToDo: Optional IEs
}
...
...
src/smf_app/smf_procedure.cpp
View file @
61a32dc3
...
...
@@ -322,28 +322,32 @@ int session_create_sm_context_procedure::run(
pfcp
::
reporting_triggers_t
reporting_triggers
=
{};
pfcp
::
volume_threshold_t
volume_threshold
=
{};
pfcp
::
volume_quota_t
volume_quota
=
{};
pfcp
::
time_threshold_t
time_threshold
=
{};
// Hardcoded values for the moment
measurement_method
.
volum
=
1
;
// Volume based usage report
// measurement_method.durat
= 1;
//
measurement_method.volum = 1; // Volume based usage report
measurement_method
.
durat
=
1
;
// measurement_Period.measurement_period = 10; // Every 10 Sec
// reporting_triggers.perio = 1; // Periodic usage report
// reporting_triggers.perio
= 1; // Periodic usage report
// reporting_triggers.volth = 1;
reporting_triggers
.
volqu
=
1
;
volume_quota
.
tovol
=
1
;
// reporting_triggers.volqu = 1;
reporting_triggers
.
timth
=
1
;
// volume_quota.tovol = 1;
// volume_threshold.dlvol = 1;
// volume_threshold.ulvol = 1;
// volume_threshold.tovol = 0;
// volume_threshold.downlink_volume = 10;
// volume_threshold.uplink_volume = 10;
volume_quota
.
total_volume
=
1000
;
// volume_quota.total_volume = 1000;
time_threshold
.
time_threshold
=
30
;
create_urr
.
set
(
urr_id
);
create_urr
.
set
(
measurement_method
);
// create_urr.set(measurement_Period);
create_urr
.
set
(
reporting_triggers
);
create_urr
.
set
(
time_threshold
);
// create_urr.set(volume_threshold);
create_urr
.
set
(
volume_quota
);
//
create_urr.set(volume_quota);
n4_triggered
->
pfcp_ies
.
set
(
create_urr
);
}
...
...
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