summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-08-30 23:34:25 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-30 23:34:25 +0200
commit645ce0312ba9191521f67b798e410564d38e79bd (patch)
tree112281fddcd5e9e7233dfff6f182d5bee7c9ace8
parentdc75669e42d561d0526b53f7cb2054b56ba93abf (diff)
mgcp: Only enable the compression when it was requested
-rw-r--r--openbsc/src/libmgcp/mgcp_protocol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c
index 4867f4f..ad20a99 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) {