From 1051c4208834c22d344dd92d25addfd8e5d95993 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Thu, 13 Dec 2018 10:16:49 +0100 Subject: require 'ipa-name' option to be set via config file The 'ipa-name' option can now only be set via the configuration file because changing the IPA name at run-time conflicts with active GSUP connections and routes configured in the HLR. The osmo-msc program must be restarted if its IPA name needs to change. Change-Id: I6cff91793e646e0396e8f1bc87d0f52709e5f12a Related: OS#3355 --- src/libmsc/msc_vty.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libmsc') diff --git a/src/libmsc/msc_vty.c b/src/libmsc/msc_vty.c index 06e11394a..87adc82de 100644 --- a/src/libmsc/msc_vty.c +++ b/src/libmsc/msc_vty.c @@ -466,6 +466,12 @@ DEFUN(cfg_msc_ipa_name, "This name is used for GSUP routing and must be set if more than one MSC is connected to the HLR. " "The default is 'MSC-00-00-00-00-00-00'.\n") { + if (!msc_parsing_config_file) { + vty_out(vty, "The IPA name cannot be changed at run-time; " + "It can only be set in the configuraton file.%s", VTY_NEWLINE); + return CMD_WARNING; + } + gsmnet->msc_ipa_name = talloc_strdup(gsmnet, argv[0]); return CMD_SUCCESS; } -- cgit v1.2.3