path: root/src/common/main.c
diff options
authorPhilipp Maier <pmaier@sysmocom.de>2021-06-30 14:49:41 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2021-07-19 10:39:06 +0200
commit6611e7f3059d26794a59135637076fe59cf52dae (patch)
treeb9d79061767a5a4e3ff7fd53f75e1db3de55df6d /src/common/main.c
parentace4e500edb702d628bb9103190aad6803b610e8 (diff)
allow to configure multiple oml remote-ip addresses
At the moment we can only configure a single BSC in the BTS configuration. This also means that if this single BSC fails for some reason the BTS has no alternate BSC to connect to. Lets extend the remote-ip parameter so that it can be used multiple times so that an operater can configure any number of BSCs that are tried one after another during BTS startup. Change-Id: I205f68a3a7f35fee4c38a7cfba2b014237df2727 Related: SYS#4971
Diffstat (limited to 'src/common/main.c')
1 files changed, 1 insertions, 10 deletions
diff --git a/src/common/main.c b/src/common/main.c
index 0b7d3fb7..bc5cf3bd 100644
--- a/src/common/main.c
+++ b/src/common/main.c
@@ -272,7 +272,6 @@ static int write_pid_file(char *procname)
int bts_main(int argc, char **argv)
struct gsm_bts_trx *trx;
- struct e1inp_line *line;
int rc;
/* Track the use of talloc NULL memory contexts */
@@ -397,16 +396,8 @@ int bts_main(int argc, char **argv)
signal(SIGUSR2, &signal_handler);
- if (!g_bts->bsc_oml_host) {
- fprintf(stderr, "Cannot start BTS without knowing BSC OML IP\n");
+ if (abis_open(g_bts, "osmo-bts") != 0)
- }
- line = abis_open(g_bts, g_bts->bsc_oml_host, "osmo-bts");
- if (!line) {
- fprintf(stderr, "unable to connect to BSC\n");
- exit(2);
- }
rc = phy_links_open();
if (rc < 0) {