aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-msc/msc_main.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-14 17:56:17 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-16 15:32:33 +0100
commit7c8a62a9406ab33feecd890b044f001aee7fadd9 (patch)
treec48a4097dace537bf4809e0914cc316349b5faf6 /openbsc/src/osmo-msc/msc_main.c
parent978e72e500ac5544ee9fbddbac03125f60fceef8 (diff)
mgcp: handle responses from the MGCP GW
Diffstat (limited to 'openbsc/src/osmo-msc/msc_main.c')
-rw-r--r--openbsc/src/osmo-msc/msc_main.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/openbsc/src/osmo-msc/msc_main.c b/openbsc/src/osmo-msc/msc_main.c
index 6a8297f8d..f1128988e 100644
--- a/openbsc/src/osmo-msc/msc_main.c
+++ b/openbsc/src/osmo-msc/msc_main.c
@@ -96,16 +96,6 @@ void *tall_map_ctx = NULL;
void *tall_upq_ctx = NULL;
/* end deps from libbsc legacy. */
-static void mgcp_rx_cb(struct msgb *msg, void *priv)
-{
- static char strbuf[4096];
- unsigned int l = msg->len < sizeof(strbuf)-1 ? msg->len : sizeof(strbuf)-1;
- strncpy(strbuf, (const char*)msg->data, l);
- strbuf[l] = '\0';
- DEBUGP(DMGCP, "Rx MGCP msg from MGCP GW: '%s'\n", strbuf);
- talloc_free(msg);
-}
-
static struct {
const char *database_name;
const char *config_file;
@@ -470,8 +460,7 @@ TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_i
* should try to use the nanoseconds part of the current time. */
msc_network->mgcpgw.client = mgcpgw_client_init(
- msc_network, &msc_network->mgcpgw.conf,
- mgcp_rx_cb, NULL);
+ msc_network, &msc_network->mgcpgw.conf);
if (db_init(msc_cmdline_config.database_name)) {
printf("DB: Failed to init database: %s\n",