aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-01 21:53:39 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-02 19:08:09 +0100
commit5f2cd842818a8809865d1caacc78bdf92c823e40 (patch)
tree7f86c8f3e43c3ce18e05ea80b92774c767def7d8 /openbsc
parent3f29cc8303ecca6ba9f814abd9d5241f51d25533 (diff)
mgcp: Use the calculated remote port from the mgcp_rtp_end
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/mgcp/mgcp_network.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c
index aeaafc8af..f8c552c8f 100644
--- a/openbsc/src/mgcp/mgcp_network.c
+++ b/openbsc/src/mgcp/mgcp_network.c
@@ -182,13 +182,11 @@ static int send_transcoder(struct mgcp_endpoint *endp, int is_rtp,
return -1;
}
- port = rtp_calculate_port(ENDPOINT_NUMBER(endp), cfg->transcoder_remote_base);
- if (!is_rtp)
- port += 1;
+ port = is_rtp ? endp->trans_bts.rtp_port : endp->trans_bts.rtcp_port;
addr.sin_family = AF_INET;
addr.sin_addr = cfg->transcoder_in;
- addr.sin_port = htons(port);
+ addr.sin_port = port;
rc = sendto(is_rtp ?
endp->trans_bts.rtp.fd :