aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-cscn/cscn_main.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-14 17:56:17 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-11-12 16:06:47 +0100
commitd9e229b08871c6be76e97e7d7281a824c1bdb231 (patch)
treecbde0e642256ed5f290e54ce647535ed2765be92 /openbsc/src/osmo-cscn/cscn_main.c
parent07415166b07602f2f2ab721e2b86bfd1c5eabcdd (diff)
mgcp: handle responses from the MGCP GW
Diffstat (limited to 'openbsc/src/osmo-cscn/cscn_main.c')
-rw-r--r--openbsc/src/osmo-cscn/cscn_main.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c
index 88393c909..3bdeffa6b 100644
--- a/openbsc/src/osmo-cscn/cscn_main.c
+++ b/openbsc/src/osmo-cscn/cscn_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. */
cscn_network->mgcpgw.client = mgcpgw_client_init(
- cscn_network, &cscn_network->mgcpgw.conf,
- mgcp_rx_cb, NULL);
+ cscn_network, &cscn_network->mgcpgw.conf);
if (db_init(cscn_cmdline_config.database_name)) {
printf("DB: Failed to init database: %s\n",