diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-18 18:38:59 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-01-23 13:58:01 +0100 |
commit | 953fd5d41e819b292dec83285ed8c33b96d72f2f (patch) | |
tree | 94ddb57a6e323e60e40b70b814cbda29ab1daf60 /openbsc/src/osmo-cscn/cscn_main.c | |
parent | 5fc6d4bc4bed0dd05a34f097547dbb6af1814d8a (diff) |
mgcp parsing, mgcp test
Change-Id: Ibe2ab17b3fa3a506a2e841ba979ea4175e3a21e8
Diffstat (limited to 'openbsc/src/osmo-cscn/cscn_main.c')
-rw-r--r-- | openbsc/src/osmo-cscn/cscn_main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c index 3bdeffa6b..47a4b8c4c 100644 --- a/openbsc/src/osmo-cscn/cscn_main.c +++ b/openbsc/src/osmo-cscn/cscn_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. */ - cscn_network->mgcpgw.client = mgcpgw_client_init( - cscn_network, &cscn_network->mgcpgw.conf); - if (db_init(cscn_cmdline_config.database_name)) { printf("DB: Failed to init database: %s\n", cscn_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(cscn_network, 20) != 0) return -1; + cscn_network->mgcpgw.client = mgcpgw_client_init( + cscn_network, &cscn_network->mgcpgw.conf); + + if (mgcpgw_client_connect(cscn_network->mgcpgw.client)) { + printf("MGCPGW connect failed\n"); + return 7; + } + /* Set up A-Interface */ /* TODO: implement A-Interface and remove above legacy stuff. */ |