Commit 61a32dc3 authored by ferrerod's avatar ferrerod

Add UR trigger on Time Threshold reached

parent 0a6d081e
......@@ -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
}
......
......@@ -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);
}
......
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