aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/l1sap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index d7e3fb3c..0ab84e54 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1168,6 +1168,11 @@ void l1sap_rtp_rx_cb(struct osmo_rtp_socket *rs, const uint8_t *rtp_pl,
struct msgb *msg;
struct osmo_phsap_prim *l1sap;
+ /* if we're in loopback mode, we don't accept frames from the
+ * RTP socket anymore */
+ if (lchan->loopback)
+ return;
+
msg = l1sap_msgb_alloc(rtp_pl_len);
if (!msg)
return;