mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
[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.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user