aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_mgcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/bsc_mgcp.c')
-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) {