Send EMM Cause when Attach Request type is not same as HSS Network-Access-Mode (#1484)

This commit adds EMM Cause to Attach accept message when
Attach Request has COMBINED EPS IMSI ATTACH but the HSS
Network-Access-Mode is configure for EPS ONLY.
This commit is contained in:
Supreeth Herle 2022-04-13 00:06:49 +02:00 committed by GitHub
parent e5ff03b249
commit 8c22d8a20c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -113,6 +113,14 @@ ogs_pkbuf_t *emm_build_attach_accept(
"EPS_EMERGENCY_ATTACH]");
break;
}
if ((mme_ue->nas_eps.attach.value ==
OGS_NAS_ATTACH_TYPE_COMBINED_EPS_IMSI_ATTACH) &&
(eps_attach_result->result == OGS_NAS_ATTACH_TYPE_EPS_ATTACH)) {
attach_accept->presencemask |=
OGS_NAS_EPS_ATTACH_ACCEPT_EMM_CAUSE_PRESENT;
attach_accept->emm_cause = EMM_CAUSE_CS_DOMAIN_NOT_AVAILABLE;
}
} else {
switch (eps_attach_result->result) {
case OGS_NAS_ATTACH_TYPE_EPS_ATTACH: