aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-28 14:51:48 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-28 19:40:54 +0100
commit6990687f4ca6afa26208c17a7e3652071db62771 (patch)
tree5ab289aba6a4955738f54b30a76567343fa69253 /openbsc/src/mgcp/mgcp_protocol.c
parent44016fee14a494f3fa13b9f094dc205985db2e5e (diff)
mgcp: Only allow transcoding on the virtual trunk
Diffstat (limited to 'openbsc/src/mgcp/mgcp_protocol.c')
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c
index b95cc81a..ba290dd9 100644
--- a/openbsc/src/mgcp/mgcp_protocol.c
+++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -475,7 +475,7 @@ static int allocate_ports(struct mgcp_endpoint *endp)
return -1;
}
- if (endp->cfg->transcoder_ip) {
+ if (endp->cfg->transcoder_ip && endp->tcfg->trunk_type == MGCP_TRUNK_VIRTUAL) {
if (allocate_port(endp, &endp->trans_net,
&endp->cfg->transcoder_ports,
mgcp_bind_trans_net_rtp_port) != 0) {