diff options
-rw-r--r-- | openbsc/src/mgcp/mgcp_network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c index 15097bfc1..9aacdd7b0 100644 --- a/openbsc/src/mgcp/mgcp_network.c +++ b/openbsc/src/mgcp/mgcp_network.c @@ -281,7 +281,7 @@ static int rtp_data_bts(struct bsc_fd *fd, unsigned int what) if (rc <= 0) return -1; - proto = &endp->bts_end.rtp ? PROTO_RTP : PROTO_RTCP; + proto = fd == &endp->bts_end.rtp ? PROTO_RTP : PROTO_RTCP; /* We have no idea who called us, maybe it is the BTS. */ /* it was the BTS... */ |