From a3ca2ec83e5e55e21211c795f2ba88601f01c3f1 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 21 Aug 2020 14:55:05 +0200 Subject: dbg log hodec2 Change-Id: I935ed9f469cde0aa88f6ae62279d22b83c356ae1 --- src/osmo-bsc/gsm_08_08.c | 5 +++++ src/osmo-bsc/handover_decision_2.c | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/osmo-bsc/gsm_08_08.c b/src/osmo-bsc/gsm_08_08.c index e7ef72811..05c703a47 100644 --- a/src/osmo-bsc/gsm_08_08.c +++ b/src/osmo-bsc/gsm_08_08.c @@ -515,6 +515,11 @@ int bsc_compl_l3(struct gsm_subscriber_connection *conn, struct msgb *msg, uint1 if (gscon_is_aoip(conn)) { gen_bss_supported_codec_list(&scl, msc, bts); + int i; + for (i = 0; i < scl->len; i++) { + LOGP(DHODEC, LOGL_DEBUG, "xxx Compl L3 codec list %d/%d %s\n", i, scl->len, + gsm0808_speech_codec_type_name(scl->codec[i].type)); + } if (scl.len > 0) resp = gsm0808_create_layer3_2(msg, cgi, &scl); else { 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 @@ -355,6 +355,11 @@ static bool codec_type_is_supported(struct gsm_subscriber_connection *conn, return true; } + 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); -- cgit v1.2.3