aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-01-14 08:35:57 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-01 13:17:04 +0100
commite01ee97cd33f9ecd51cfdc7fff8c4e01293a46ad (patch)
tree2835858aa835c302603846996f2279c80c63bc9b /openbsc
parent9100e1dea4286bc3edf9af5644c20ccb3ed76fc6 (diff)
[mgcp] In forward mode we need to rediscover the BTS more often
In plain forward mode we don't have DLCX which will clean and reset the configuration. We will need to remember the last GSM BTS port and send data to it.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc_mgcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/bsc_mgcp.c b/openbsc/src/bsc_mgcp.c
index 320d0b16e..d89eb8399 100644
--- a/openbsc/src/bsc_mgcp.c
+++ b/openbsc/src/bsc_mgcp.c
@@ -257,7 +257,7 @@ static int rtp_data_cb(struct bsc_fd *fd, unsigned int what)
proto = fd == &endp->local_rtp ? PROTO_RTP : PROTO_RTCP;
/* We have no idea who called us, maybe it is the BTS. */
- if (dest == DEST_NETWORK && endp->bts_rtp == 0) {
+ if (dest == DEST_NETWORK && (endp->bts_rtp == 0 || forward_ip)) {
/* it was the BTS... */
if (!bts_ip || memcmp(&addr.sin_addr, &bts_in, sizeof(bts_in)) == 0) {
if (fd == &endp->local_rtp) {