From a39ddd5654bcb9fa212eea154c9a00384b31219e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 5 Aug 2010 11:09:49 +0000 Subject: mgcp: Get the for network/for bts flag right. --- openbsc/src/mgcp/mgcp_protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc/src') diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c index 1d2b6607c..ce5265d97 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; } -- cgit v1.2.3