aboutsummaryrefslogtreecommitdiffstats
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-01-14 08:35:57 +0100
commit82d8b0457b888635ffeb8a1c5bb905908042cbd2 (patch)
treed88b86662368f3b2c9f8d41b94a79c1d9cbce65d
parent433d6ee1a26d1fb1240c4e7fb7a5b6f66fc3e98a (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.
-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 7f14f9ecd..d25edc884 100644
--- a/openbsc/src/bsc_mgcp.c
+++ b/openbsc/src/bsc_mgcp.c
@@ -258,7 +258,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) {