diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-05-22 21:28:09 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-07-25 15:14:13 +0200 |
commit | 6cad4c3e7f40da8bede2eec0924763e9444e3932 (patch) | |
tree | ccf3c5fb83e68d30412ccc9968214aa8e47b44c5 /src/osmo-msc/msc_main.c | |
parent | 2238185739d75ad4e55f675c4f5aba7ed5ec00fc (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/osmo-msc/msc_main.c')
-rw-r--r-- | src/osmo-msc/msc_main.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c index 80787320e..364825334 100644 --- a/src/osmo-msc/msc_main.c +++ b/src/osmo-msc/msc_main.c @@ -426,19 +426,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(). @@ -448,12 +443,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)); |