aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-08-09 02:15:51 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-08-09 02:28:32 +0200
commitcf349737bb322f7f0ff99f7d482a9ba9066e7b0b (patch)
tree77c1b1e5abd22f4bd7cbeddbec205553f07b9d44
parentb11e64b124564e4edd4c6aa147ad66baf9fec53d (diff)
tweak scope in msc_a_up_call_assignment_complete()
-rw-r--r--src/libmsc/msc_a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmsc/msc_a.c b/src/libmsc/msc_a.c
index 139705d51..b429b2403 100644
--- a/src/libmsc/msc_a.c
+++ b/src/libmsc/msc_a.c
@@ -1394,7 +1394,6 @@ static void msc_a_up_call_assignment_complete(struct msc_a *msc_a, const struct
struct rtp_stream *rtps_to_ran = msc_a->cc.call_leg ? msc_a->cc.call_leg->rtp[RTP_TO_RAN] : NULL;
const enum mgcp_codecs *codec_if_known = ac->assignment_complete.codec_present ?
&ac->assignment_complete.codec : NULL;
- const struct codec_mapping *m;
if (!rtps_to_ran) {
LOG_MSC_A(msc_a, LOGL_ERROR, "Rx Assignment Complete, but no RTP stream is set up\n");
@@ -1413,6 +1412,7 @@ static void msc_a_up_call_assignment_complete(struct msc_a *msc_a, const struct
}
if (codec_if_known) {
+ const struct codec_mapping *m;
m = codec_mapping_by_mgcp_codec(*codec_if_known);
if (!m) {
LOG_TRANS(cc_trans, LOGL_ERROR, "Unknown codec in Assignment Complete: %s\n",