diff --git a/src/mme/mme_context.c b/src/mme/mme_context.c index c2045e281..0df50d602 100644 --- a/src/mme/mme_context.c +++ b/src/mme/mme_context.c @@ -367,7 +367,11 @@ status_t mme_context_parse_config() else if (!strcmp(gtpc_key, "port")) { const char *v = yaml_iter_value(>pc_iter); - if (v) port = atoi(v); + if (v) + { + port = atoi(v); + self.gtpc_port = port; + } } else d_warn("unknown key `%s`", gtpc_key); @@ -912,7 +916,11 @@ status_t mme_context_parse_config() else if (!strcmp(gtpc_key, "port")) { const char *v = yaml_iter_value(>pc_iter); - if (v) port = atoi(v); + if (v) + { + port = atoi(v); + self.gtpc_port = port; + } } else if (!strcmp(gtpc_key, "apn")) { diff --git a/src/pgw/pgw_context.c b/src/pgw/pgw_context.c index b63989bae..f6b608b6e 100644 --- a/src/pgw/pgw_context.c +++ b/src/pgw/pgw_context.c @@ -226,7 +226,11 @@ status_t pgw_context_parse_config() else if (!strcmp(gtpc_key, "port")) { const char *v = yaml_iter_value(>pc_iter); - if (v) port = atoi(v); + if (v) + { + port = atoi(v); + self.gtpc_port = port; + } } else d_warn("unknown key `%s`", gtpc_key); @@ -294,7 +298,11 @@ status_t pgw_context_parse_config() else if (!strcmp(gtpu_key, "port")) { const char *v = yaml_iter_value(>pu_iter); - if (v) port = atoi(v); + if (v) + { + port = atoi(v); + self.gtpu_port = port; + } } else d_warn("unknown key `%s`", gtpu_key); @@ -386,7 +394,7 @@ status_t pgw_context_parse_config() else if (!strcmp(ue_network_key, "apn")) { apn = yaml_iter_value(&ue_network_iter); - d_warn("Not implemented"); + d_warn("Not implemented apn=%s", apn); } else d_warn("unknown key `%s`", ue_network_key); diff --git a/src/sgw/sgw_context.c b/src/sgw/sgw_context.c index 1a5cc736e..c00bad5e0 100644 --- a/src/sgw/sgw_context.c +++ b/src/sgw/sgw_context.c @@ -278,7 +278,11 @@ status_t sgw_context_parse_config() else if (!strcmp(gtpc_key, "port")) { const char *v = yaml_iter_value(>pc_iter); - if (v) port = atoi(v); + if (v) + { + port = atoi(v); + self.gtpc_port = port; + } } else d_warn("unknown key `%s`", gtpc_key); @@ -346,7 +350,11 @@ status_t sgw_context_parse_config() else if (!strcmp(gtpu_key, "port")) { const char *v = yaml_iter_value(>pu_iter); - if (v) port = atoi(v); + if (v) + { + port = atoi(v); + self.gtpu_port = port; + } } else d_warn("unknown key `%s`", gtpu_key);