From 64b811f11321a13138ec48edcd6cafae23fcc7ed Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 5 Jan 2010 12:35:16 +0100 Subject: [bsc_mgcp] Set the right remote rtp and rtcp port * It is the same as local endpoint port --- openbsc/src/bsc_mgcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbsc/src/bsc_mgcp.c b/openbsc/src/bsc_mgcp.c index 56a0b13c1..bdfe08483 100644 --- a/openbsc/src/bsc_mgcp.c +++ b/openbsc/src/bsc_mgcp.c @@ -1153,6 +1153,8 @@ int main(int argc, char** argv) struct mgcp_endpoint *endp = &endpoints[i]; inet_aton(forward_ip, &endp->remote); endp->ci = CI_UNUSED + 23; + endp->rtp = htons(rtp_calculate_port(ENDPOINT_NUMBER(endp), rtp_base_port)); + endp->rtcp = htons(rtp_calculate_port(ENDPOINT_NUMBER(endp), rtp_base_port) + 1); } DEBUGP(DMGCP, "Configured for Audio Forwarding.\n"); -- cgit v1.2.3