aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/handover_decision_2.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-08-21 14:55:05 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-08-21 14:56:10 +0200
commita3ca2ec83e5e55e21211c795f2ba88601f01c3f1 (patch)
tree8744af228e26df20c66af203028a6d2a88832412 /src/osmo-bsc/handover_decision_2.c
parent18e8c4741ee35e1e0febd02d87bed0f69c47c225 (diff)
dbg log hodec2neels/hodec2
Diffstat (limited to 'src/osmo-bsc/handover_decision_2.c')
-rw-r--r--src/osmo-bsc/handover_decision_2.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/osmo-bsc/handover_decision_2.c b/src/osmo-bsc/handover_decision_2.c
index e2196b467..44016f750 100644
--- a/src/osmo-bsc/handover_decision_2.c
+++ b/src/osmo-bsc/handover_decision_2.c
@@ -356,6 +356,11 @@ static bool codec_type_is_supported(struct gsm_subscriber_connection *conn,
}
for (i = 0; i < clist->len; i++) {
+ LOGPHOLCHAN(conn->lchan, LOGL_DEBUG, "speech codec list %d/%d %s\n", i, clist->len,
+ gsm0808_speech_codec_type_name(clist->codec[i].type));
+ }
+
+ for (i = 0; i < clist->len; i++) {
if (clist->codec[i].type == type)
return true;
}
@@ -1435,15 +1440,23 @@ static int bts_resolve_congestion(struct gsm_bts *bts, int tchf_congestion, int
if (tchf_congestion == 0)
continue;
+
lc = &ts->lchan[0];
+
+ LOGPHOLCHAN(lc, LOGL_DEBUG, "candidate?\n");
+
/* omit if channel not active */
if (lc->type != GSM_LCHAN_TCH_F
- || !lchan_state_is(lc, LCHAN_ST_ESTABLISHED))
+ || !lchan_state_is(lc, LCHAN_ST_ESTABLISHED)) {
+ LOGPHOLCHAN(lc, LOGL_DEBUG, "wrong state %s\n", lchan_state_name(lc));
break;
+ }
/* omit if there is an ongoing ho/as */
if (!lc->conn || lc->conn->assignment.new_lchan
- || lc->conn->ho.fi)
+ || lc->conn->ho.fi) {
+ LOGPHOLCHAN(lc, LOGL_DEBUG, "still in ho\n");
break;
+ }
/* We desperately want to resolve congestion, ignore rxlev when
* collecting candidates by passing include_weaker_rxlev=true. */
collect_candidates_for_lchan(lc, clist, &candidates, NULL, true);