aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-20 14:58:19 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-20 14:58:19 +0200
commite6ed009a36d410fc0cbac7a82d92313bd6d4c084 (patch)
tree23ad7fed198f621cc414a3dee3341ebc934f3c76 /openbsc/src/libmgcp/mgcp_protocol.c
parentceef936ea894781a14584efc9256856cca6d1c0f (diff)
mgcp: Begin to separate network and bts endpoints
Make it possible to bind the call-agent to a specific IP address and the network and bts end to different ip addresses. Begin by clarifying which source ip address we want to have.
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_protocol.c')
-rw-r--r--openbsc/src/libmgcp/mgcp_protocol.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c
index 40ea7916a..717c1fc08 100644
--- a/openbsc/src/libmgcp/mgcp_protocol.c
+++ b/openbsc/src/libmgcp/mgcp_protocol.c
@@ -275,7 +275,7 @@ static struct msgb *create_response_with_sdp(struct mgcp_endpoint *endp,
char osmux_extension[strlen("\nX-Osmux: 255") + 1];
if (!addr)
- addr = endp->cfg->source_addr;
+ addr = mgcp_net_src_addr(endp);
if (endp->osmux.state == OSMUX_STATE_ACTIVATING)
sprintf(osmux_extension, "\nX-Osmux: %u", endp->osmux.cid);
@@ -1389,8 +1389,7 @@ static void send_msg(struct mgcp_endpoint *endp, int endpoint, int port,
if (len < 0)
return;
- nchars = write_response_sdp(endp, buf + len, sizeof(buf) + len - 1,
- endp->cfg->source_addr);
+ nchars = write_response_sdp(endp, buf + len, sizeof(buf) + len - 1, NULL);
if (nchars < 0)
return;