mme: Apply default values for Pre-Emption Capability + Vulnerability

Section 7.3.40 of 3GPP TS 29.272 states default values to be used if
those AVPs are not present in the DIAMETER message.

Closes: #239
This commit is contained in:
Harald Welte 2019-07-30 00:23:55 +02:00
parent a8c14916a7
commit 8dca1eacd8
1 changed files with 2 additions and 4 deletions

View File

@ -806,8 +806,7 @@ static void mme_s6a_ula_cb(void *data, struct msg **msg)
pdn->qos.arp.pre_emption_capability =
hdr->avp_value->i32;
} else {
ogs_error("no_Preemption-Capability");
error++;
pdn->qos.arp.pre_emption_capability = 1; /* disabled */
}
ret = fd_avp_search_avp(avpch4,
@ -819,8 +818,7 @@ static void mme_s6a_ula_cb(void *data, struct msg **msg)
pdn->qos.arp.pre_emption_vulnerability =
hdr->avp_value->i32;
} else {
ogs_error("no_Preemption-Vulnerability");
error++;
pdn->qos.arp.pre_emption_vulnerability = 0; /* enabled */
}
} else {