From 82d8b0457b888635ffeb8a1c5bb905908042cbd2 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 14 Jan 2010 08:35:57 +0100 Subject: [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. --- openbsc/src/bsc_mgcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3