diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-08-30 23:34:25 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-08-30 23:34:25 +0200 |
commit | 645ce0312ba9191521f67b798e410564d38e79bd (patch) | |
tree | 112281fddcd5e9e7233dfff6f182d5bee7c9ace8 /openbsc | |
parent | dc75669e42d561d0526b53f7cb2054b56ba93abf (diff) |
mgcp: Only enable the compression when it was requested
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/libmgcp/mgcp_protocol.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |