aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index f6703c4cc..79d094170 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -3471,6 +3471,8 @@ static int tch_rtp_signal(struct gsm_lchan *lchan, int signal)
continue;
if (tmp->conn->lchan != lchan && tmp->conn->ho_lchan != lchan)
continue;
+ if (!tmp->tch_recv)
+ continue;
trans = tmp;
break;
}
@@ -3519,6 +3521,8 @@ static int ho_detect(struct gsm_lchan *lchan)
continue;
if (tmp->conn->lchan != lchan && tmp->conn->ho_lchan != lchan)
continue;
+ if (!tmp->tch_recv)
+ continue;
trans = tmp;
break;
}