aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 04:10:21 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-05 06:12:02 +0800
commit314584ab4418c544db42fbaedded54f68b35412d (patch)
treecea0e7e6b4103939b7b4c158ec1715298690d31b /openbsc/src/mgcp/mgcp_protocol.c
parent196349dda18d8e6a49c318ad6659291818ad21fd (diff)
mgcp: Allocate a different port for the networking...
Use the right source port when sending the message.
Diffstat (limited to 'openbsc/src/mgcp/mgcp_protocol.c')
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c
index 8dbe2b021..211ec3ea8 100644
--- a/openbsc/src/mgcp/mgcp_protocol.c
+++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -429,6 +429,8 @@ static struct msgb *handle_create_con(struct mgcp_config *cfg, struct msgb *msg)
/* bind to the port now */
port = rtp_calculate_port(ENDPOINT_NUMBER(endp), cfg->rtp_bts_base_port);
endp->bts_end.local_port = port;
+
+ port = rtp_calculate_port(ENDPOINT_NUMBER(endp), cfg->rtp_net_base_port);
endp->net_end.local_port = port;
/* assign a local call identifier or fail */
@@ -709,6 +711,7 @@ struct mgcp_config *mgcp_config_alloc(void)
cfg->audio_name = talloc_strdup(cfg, "GSM-EFR/8000");
cfg->audio_payload = 97;
cfg->rtp_bts_base_port = RTP_PORT_DEFAULT;
+ cfg->rtp_net_base_port = RTP_PORT_NET_DEFAULT;
return cfg;
}