From 645ce0312ba9191521f67b798e410564d38e79bd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 30 Aug 2011 23:34:25 +0200 Subject: mgcp: Only enable the compression when it was requested --- openbsc/src/libmgcp/mgcp_protocol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c index 4867f4f0d..ad20a99fe 100644 --- a/openbsc/src/libmgcp/mgcp_protocol.c +++ b/openbsc/src/libmgcp/mgcp_protocol.c @@ -606,7 +606,9 @@ static struct msgb *handle_create_con(struct mgcp_config *cfg, struct msgb *msg) endp->allocated = 1; endp->bts_end.payload_type = tcfg->audio_payload; - endp->compr_enabled = 1; + + if (encr) + endp->compr_enabled = 1; /* policy CB */ if (cfg->policy_cb) { -- cgit v1.2.3