diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-18 18:38:59 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-23 22:27:39 +0100 |
commit | 815e41fd7401e877a632cf2f5d57aed9ddf70f62 (patch) | |
tree | 654c013a2791e885c88436d24f7fb790c2e39bb4 /openbsc/src/osmo-msc/msc_main.c | |
parent | 4d7ae5fd1160f6836ccc473e79767b24983a10fd (diff) |
mgcp parsing, mgcp test
Change-Id: Ibe2ab17b3fa3a506a2e841ba979ea4175e3a21e8
Diffstat (limited to 'openbsc/src/osmo-msc/msc_main.c')
-rw-r--r-- | openbsc/src/osmo-msc/msc_main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/openbsc/src/osmo-msc/msc_main.c b/openbsc/src/osmo-msc/msc_main.c index d3eae1914..6d42eaa6e 100644 --- a/openbsc/src/osmo-msc/msc_main.c +++ b/openbsc/src/osmo-msc/msc_main.c @@ -459,9 +459,6 @@ TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_i /* TODO: is this used for crypto?? Improve randomness, at least we * should try to use the nanoseconds part of the current time. */ - msc_network->mgcpgw.client = mgcpgw_client_init( - msc_network, &msc_network->mgcpgw.conf); - if (db_init(msc_cmdline_config.database_name)) { printf("DB: Failed to init database: %s\n", msc_cmdline_config.database_name); @@ -492,6 +489,14 @@ TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_i if (sms_queue_start(msc_network, 20) != 0) return -1; + msc_network->mgcpgw.client = mgcpgw_client_init( + msc_network, &msc_network->mgcpgw.conf); + + if (mgcpgw_client_connect(msc_network->mgcpgw.client)) { + printf("MGCPGW connect failed\n"); + return 7; + } + /* Set up A-Interface */ /* TODO: implement A-Interface and remove above legacy stuff. */ |