From 0f93ec23ab37856dd6caba100026f4afbfccc1dd Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sun, 19 Jun 2022 18:16:11 +0900 Subject: [PATCH] [MME/AMF] Fixed network name encoding (#1614) --- src/amf/context.c | 2 ++ src/mme/mme-context.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/amf/context.c b/src/amf/context.c index 6b0f6968f..cdf12fb07 100644 --- a/src/amf/context.c +++ b/src/amf/context.c @@ -797,6 +797,7 @@ int amf_context_parse_config(void) } network_full_name->length = size*2+1; network_full_name->coding_scheme = 1; + network_full_name->ext = 1; } else if (!strcmp(network_name_key, "short")) { ogs_nas_network_name_t *network_short_name = &self.short_name; @@ -813,6 +814,7 @@ int amf_context_parse_config(void) } network_short_name->length = size*2+1; network_short_name->coding_scheme = 1; + network_short_name->ext = 1; } } } else if (!strcmp(amf_key, "amf_name")) { diff --git a/src/mme/mme-context.c b/src/mme/mme-context.c index a37162a62..2d0f33a23 100644 --- a/src/mme/mme-context.c +++ b/src/mme/mme-context.c @@ -946,6 +946,7 @@ int mme_context_parse_config() } network_full_name->length = size*2+1; network_full_name->coding_scheme = 1; + network_full_name->ext = 1; } else if (!strcmp(network_name_key, "short")) { ogs_nas_network_name_t *network_short_name = &self.short_name; @@ -962,6 +963,7 @@ int mme_context_parse_config() } network_short_name->length = size*2+1; network_short_name->coding_scheme = 1; + network_short_name->ext = 1; } } } else if (!strcmp(mme_key, "sgsap")) {