From efe9ab1921f9fb8927c142ddd4403233ed72cd85 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 31 Aug 2011 00:46:10 +0200 Subject: nat: Enable compression on the endpoint... --- openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbsc/src') diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c index 8f325b257..a80ac831f 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c +++ b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c @@ -362,6 +362,10 @@ int bsc_mgcp_policy_cb(struct mgcp_trunk_config *tcfg, int endpoint, int state, mgcp_endp->bts_end.addr = sock.sin_addr; } + /* enable the compression on this endpoint */ + if (sccp->bsc->cfg->allow_compr) + mgcp_endp->compr_enabled = 1; + /* send the message and a fake MDCX to force sending of a dummy packet */ bsc_write(sccp->bsc, bsc_msg, IPAC_PROTO_MGCP_OLD); bsc_mgcp_send_mdcx(sccp->bsc, sccp->bsc_endp, mgcp_endp); -- cgit v1.2.3