diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-18 18:38:59 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-03-16 15:32:33 +0100 |
commit | 601002ad4c0b366966173f0576ba54d118e9bb0f (patch) | |
tree | 324d319e7b653623a818a7e21cabee6e51b6a9bd /openbsc/src/osmo-msc/msc_main.c | |
parent | 7c8a62a9406ab33feecd890b044f001aee7fadd9 (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 f1128988e..9d3efd702 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); @@ -506,6 +503,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. */ |