aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-01-18 18:31:48 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-01-19 03:59:47 +0700
commit047dd50bc89e4dfeb5dc509ae22c81013115e885 (patch)
tree7b939fd280e5aee6899f1f1338041a49cb9abef1
parentecfcd99c4b4339d702d5231231b1d6965b201474 (diff)
osmo-msc: fix: properly initialize default values for MGW timers
Otherwise they're all set to 0, if not configured in the VTY. Change-Id: I4a0823c2f0ca50ed7407fb0457c54a485799c585
-rw-r--r--src/osmo-msc/msc_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c
index cffdaefc3..dc6b684fc 100644
--- a/src/osmo-msc/msc_main.c
+++ b/src/osmo-msc/msc_main.c
@@ -220,9 +220,11 @@ struct gsm_network *msc_network_alloc(void *ctx,
net->gsup_server_port = MSC_HLR_REMOTE_PORT_DEFAULT;
mgcp_client_conf_init(&net->mgw.conf);
- net->mgw.tdefs = g_mgw_tdefs;
net->call_waiting = true;
+ net->mgw.tdefs = g_mgw_tdefs;
+ osmo_tdefs_reset(net->mgw.tdefs);
+
return net;
}