aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 11:09:49 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-08 07:23:15 +0800
commit3c30a4bb1f3d35bec6f2eb975084cba58dca4134 (patch)
tree3e49021fc78c4f65f66aae05b3d537bed33064d5 /openbsc
parent636c1cadd8e80c8c9f5c991d1668336092931317 (diff)
mgcp: Get the for network/for bts flag right.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c
index 30b6f281c..a9827cbf4 100644
--- a/openbsc/src/mgcp/mgcp_protocol.c
+++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -405,10 +405,10 @@ static int allocate_port(struct mgcp_endpoint *endp, struct mgcp_rtp_end *end,
static int allocate_ports(struct mgcp_endpoint *endp)
{
- if (allocate_port(endp, &endp->net_end, &endp->cfg->net_ports, 0) != 0)
+ if (allocate_port(endp, &endp->net_end, &endp->cfg->net_ports, 1) != 0)
return -1;
- if (allocate_port(endp, &endp->bts_end, &endp->cfg->bts_ports, 1) != 0) {
+ if (allocate_port(endp, &endp->bts_end, &endp->cfg->bts_ports, 0) != 0) {
mgcp_rtp_end_reset(&endp->net_end);
return -1;
}