summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-08-31 00:46:10 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-31 00:46:10 +0200
commitefe9ab1921f9fb8927c142ddd4403233ed72cd85 (patch)
tree0a32bee26c5ef309a8c48f48b3da1cb086f90df5
parentb36ad9cfeb2f1633a0c596d164904c08cec72e6a (diff)
nat: Enable compression on the endpoint...
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
index 8f325b2..a80ac83 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);