Commit 94595c1d authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Merge branch 'create_urr_ie_fix' into 'develop'

Fix Volume Threshold IE to PFCP Create URR IE

See merge request oai/cn5g/oai-cn5g-smf!141
parents 8e94638a 43717eab
......@@ -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) {}
......
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