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
208b9058
Commit
208b9058
authored
Aug 04, 2022
by
ferrerod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UR Trigger for Volume Threshold
parent
0bd3d579
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
src/pfcp/3gpp_29.244.hpp
src/pfcp/3gpp_29.244.hpp
+6
-1
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+16
-4
No files found.
src/pfcp/3gpp_29.244.hpp
View file @
208b9058
...
...
@@ -9167,11 +9167,16 @@ class pfcp_create_urr_ie : public pfcp_grouped_ie {
new
pfcp_reporting_triggers_ie
(
b
.
reporting_triggers
.
second
));
add_ie
(
sie
);
}
if
(
b
.
urr_id
.
first
)
{
if
(
b
.
urr_id
.
first
&&
b
.
measurement_period
.
first
)
{
std
::
shared_ptr
<
pfcp_measurement_period_ie
>
sie
(
new
pfcp_measurement_period_ie
(
b
.
measurement_period
.
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
);
}
// ToDo: Optional IEs
}
pfcp_create_urr_ie
()
:
pfcp_grouped_ie
(
PFCP_IE_CREATE_URR
)
{}
...
...
src/smf_app/smf_procedure.cpp
View file @
208b9058
...
...
@@ -320,14 +320,26 @@ int session_create_sm_context_procedure::run(
pfcp
::
measurement_method_t
measurement_method
=
{};
pfcp
::
measurement_period_t
measurement_Period
=
{};
pfcp
::
reporting_triggers_t
reporting_triggers
=
{};
pfcp
::
volume_threshold_t
volume_threshold
=
{};
// Hardcoded values for the moment
measurement_method
.
volum
=
1
;
// Volume based usage report
measurement_Period
.
measurement_period
=
10
;
// Every 10 Sec
reporting_triggers
.
perio
=
1
;
// Periodic usage report
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
.
volth
=
1
;
volume_threshold
.
dlvol
=
1
;
volume_threshold
.
ulvol
=
1
;
volume_threshold
.
tovol
=
0
;
volume_threshold
.
downlink_volume
=
10
;
volume_threshold
.
uplink_volume
=
10
;
create_urr
.
set
(
urr_id
);
create_urr
.
set
(
measurement_method
);
create_urr
.
set
(
measurement_Period
);
//
create_urr.set(measurement_Period);
create_urr
.
set
(
reporting_triggers
);
create_urr
.
set
(
volume_threshold
);
n4_triggered
->
pfcp_ies
.
set
(
create_urr
);
}
// TODO: list of QoS Enforcement Rule IDs
...
...
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