aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-22 21:28:09 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-12 23:42:46 +0200
commitc67efc86fd54402ed1c89c6f0adc85d4ec865a76 (patch)
treebfd90bcd5362845eb8b35c6ede0c556a6a5235b4 /src
parent875e6b84afb7e5e1fe939dc0caae870f388fc6fe (diff)
msc: enable basic CTRL commands
So far CTRL was not used by anyone, and was still disabled from the initial implementation of the OsmoMSC. Now we need it in osmo-gsm-tester. Only add the MSC specific CTRL commands, the bsc_base_ctrl_cmds_install() still needs to be split up. Change-Id: I373279ccea8941c237330c3404c63d4924c5ffa0
Diffstat (limited to 'src')
-rw-r--r--src/osmo-msc/msc_main.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c
index 73069737e..83d8fa4aa 100644
--- a/src/osmo-msc/msc_main.c
+++ b/src/osmo-msc/msc_main.c
@@ -427,19 +427,14 @@ int main(int argc, char **argv)
smpp_openbsc_start(msc_network);
#endif
-#if 0
- the bsc_ctrl_node_lookup() only returns BSC specific ctrl nodes
-
/* start control interface after reading config for
* ctrl_vty_get_bind_addr() */
- msc_network->ctrl = bsc_controlif_setup(msc_network,
- ctrl_vty_get_bind_addr(),
- OSMO_CTRL_PORT_MSC);
+ msc_network->ctrl = ctrl_interface_setup_dynip(msc_network, ctrl_vty_get_bind_addr(),
+ OSMO_CTRL_PORT_MSC, NULL);
if (!msc_network->ctrl) {
printf("Failed to initialize control interface. Exiting.\n");
return -1;
}
-#endif
#if 0
TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_install().
@@ -449,12 +444,10 @@ TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_i
}
#endif
-#if 0
if (msc_ctrl_cmds_install(msc_network) != 0) {
printf("Failed to initialize the MSC control commands.\n");
return -1;
}
-#endif
/* seed the PRNG */
srand(time(NULL));