From 31a378802124a81628d43df34cc8aebc378dfc2b Mon Sep 17 00:00:00 2001 From: Bostjan Meglic Date: Thu, 8 Sep 2022 07:08:15 +0000 Subject: [PATCH] [AMF] Handle APN/DNN names as case-insensitive In case that APN name sent from UE does not case-match with the one configured in the database, AMF would reject the registration with the message: [gmm] WARNING: [imsi-xxx] DNN Not Supported OR Not Subscribed in the Slice (../src/amf/gmm-handler.c:1051) --- src/amf/gmm-handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amf/gmm-handler.c b/src/amf/gmm-handler.c index 1665801d3..d1a1929f4 100644 --- a/src/amf/gmm-handler.c +++ b/src/amf/gmm-handler.c @@ -1014,7 +1014,7 @@ int gmm_handle_ul_nas_transport(amf_ue_t *amf_ue, OGS_MAX_NUM_OF_SESS); break; } - if (!strcmp(dnn->value, + if (!ogs_strcasecmp(dnn->value, amf_ue->slice[i].session[k].name)) { selected_slice = amf_ue->slice + i;