aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-10-31 18:13:47 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2023-01-29 00:34:50 +0100
commit4ed7e75622598804b30c1d997f37657a9a2e0f7c (patch)
treec9be87925ae173b960685f8246b6411e9566aa04
parent782bbf57786885e48aca49b4a0ae4517e6951438 (diff)
msc_t: log codec errorneels/codecs
-rw-r--r--src/libmsc/msc_t.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libmsc/msc_t.c b/src/libmsc/msc_t.c
index 787d7362f..b53fa4bf3 100644
--- a/src/libmsc/msc_t.c
+++ b/src/libmsc/msc_t.c
@@ -450,7 +450,10 @@ static int msc_t_patch_and_send_ho_request_ack(struct msc_t *msc_t, const struct
if (r->codec_present) {
LOG_MSC_T(msc_t, LOGL_DEBUG, "From Handover Request Ack, got %s\n",
osmo_mgcpc_codec_name(r->codec));
- rtp_stream_set_codecs_from_mgcp_codec(rtp_ran, r->codec);
+ if (!rtp_stream_set_codecs_from_mgcp_codec(rtp_ran, r->codec)) {
+ LOG_MSC_T(msc_t, LOGL_ERROR, "Cannot resolve codec in Handover Request Ack: %s\n",
+ osmo_mgcpc_codec_name(r->codec));
+ }
if (rtp_cn)
rtp_stream_set_codecs_from_mgcp_codec(rtp_cn, r->codec);
} else {