aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-msc
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-18 18:38:59 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-09 17:12:24 +0100
commit2e5ab55617a82210de1a624f2bce213689d9d207 (patch)
treec6df09a0bca263d45d42c89504841382b02a78eb /openbsc/src/osmo-msc
parent3a30f461d4c1ece3157ed39081b59c6c1c98f425 (diff)
mgcp parsing, mgcp test
Diffstat (limited to 'openbsc/src/osmo-msc')
-rw-r--r--openbsc/src/osmo-msc/msc_main.c11
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. */