Use default APN if the one from the ESM info resp could not be found

This commit is contained in:
Daniel Willmann 2023-01-27 12:12:45 +01:00 committed by Oliver Smith
parent 08697fc4f2
commit 5b219bcc55
2 changed files with 13 additions and 1 deletions

6
debian/changelog vendored
View File

@ -250,6 +250,12 @@ open5gs (2.4.9~bionic) bionic; urgency=medium
-- Sukchan Lee <acetcom@gmail.com> Mon, 25 Jul 2022 20:45:33 +0900
open5gs (2.4.8+nmu3~sysmocom) unstable; urgency=medium
* Use default APN in case the one from ESM info resp is not found
-- Daniel Willmann <dwillmann@sysmocom.de> Fri, 27 Jan 2023 12:15:23 +0100
open5gs (2.4.8+nmu2~sysmocom) unstable; urgency=medium
* Remove mongodb dependency for pcrf

View File

@ -189,8 +189,14 @@ int esm_handle_information_response(mme_sess_t *sess,
if (rsp->presencemask &
OGS_NAS_EPS_ESM_INFORMATION_RESPONSE_ACCESS_POINT_NAME_PRESENT) {
sess->session = mme_session_find_by_apn(
ogs_session_t *session = mme_session_find_by_apn(
mme_ue, rsp->access_point_name.apn);
if (session) {
sess->session = session;
} else {
ogs_error(" APN[%s] not found, using default!", rsp->access_point_name.apn);
sess->session = mme_default_session(mme_ue);
}
}
if (rsp->presencemask &