summaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_network.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-19 04:21:39 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-20 02:51:30 +0800
commitb98ba72e0a413a9d325fa8ed20cb77d28d472e2f (patch)
treee58442a78127d1c19886cd48c10f727c7718c87c /openbsc/src/mgcp/mgcp_network.c
parent3b5e3c4d6ff7835b8139a0d97a78cabac737a7ff (diff)
mgcp: Make the base port of the transcoder configurable
The code assumes a static mapping from endpoint to RTP port, be able to configure the start of such a mapping.
Diffstat (limited to 'openbsc/src/mgcp/mgcp_network.c')
-rw-r--r--openbsc/src/mgcp/mgcp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c
index 6ee268c4c..96f35df7e 100644
--- a/openbsc/src/mgcp/mgcp_network.c
+++ b/openbsc/src/mgcp/mgcp_network.c
@@ -174,7 +174,7 @@ static int send_transcoder(struct mgcp_endpoint *endp, int is_rtp,
return -1;
}
- port = rtp_calculate_port(ENDPOINT_NUMBER(endp), 4000);
+ port = rtp_calculate_port(ENDPOINT_NUMBER(endp), cfg->transcoder_remote_base);
if (!is_rtp)
port += 1;