forked from acouzens/open5gs
Use default APN if the one from the ESM info resp could not be found
This commit is contained in:
parent
998e943d69
commit
5c69b27e6e
|
@ -1,3 +1,9 @@
|
||||||
|
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
|
open5gs (2.4.8+nmu2~sysmocom) unstable; urgency=medium
|
||||||
|
|
||||||
* Remove mongodb dependency for pcrf
|
* Remove mongodb dependency for pcrf
|
||||||
|
|
|
@ -159,8 +159,13 @@ int esm_handle_information_response(mme_sess_t *sess,
|
||||||
|
|
||||||
if (rsp->presencemask &
|
if (rsp->presencemask &
|
||||||
OGS_NAS_EPS_ESM_INFORMATION_RESPONSE_ACCESS_POINT_NAME_PRESENT) {
|
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);
|
mme_ue, rsp->access_point_name.apn);
|
||||||
|
if (session) {
|
||||||
|
sess->session = session;
|
||||||
|
} else {
|
||||||
|
ogs_debug(" APN[%s] not found, using default!", rsp->access_point_name.apn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rsp->presencemask &
|
if (rsp->presencemask &
|
||||||
|
|
Loading…
Reference in New Issue