summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-08-31 00:48:55 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-31 00:48:55 +0200
commit425e7381d758e5131efb55a0c475566039f663d5 (patch)
tree68591b4469707749a0f39ce2d1fa0a95192ec61b
parentd6a4ebc6462a1cf7e1e12587967363441dc7dc7b (diff)
nat: Take the TRUNK config into account if compr can be used
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
index b2d83f5..e1e2a3c 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
@@ -339,7 +339,7 @@ int bsc_mgcp_policy_cb(struct mgcp_trunk_config *tcfg, int endpoint, int state,
}
}
- if (nat->mgcp_cfg->trunk.compress_dir == COMPR_BTS
+ if (mgcp_endp->tcfg->compress_dir == COMPR_BTS
&& sccp->bsc->cfg->allow_compr)
compr = 1;