diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-18 18:38:59 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-11-12 16:08:22 +0100 |
commit | c692fc5e2eb62eb86c85847c79dedb4d87ad564c (patch) | |
tree | 5460cc1d7bae6ebb573fb892a436085661f6a2c4 /openbsc/src/osmo-cscn/cscn_main.c | |
parent | d9e229b08871c6be76e97e7d7281a824c1bdb231 (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. */ |