aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-09-06 15:39:21 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-09-06 15:45:15 +0200
commit1ed23c6fad450bec87dc768da02583724f01d45f (patch)
tree1b62bd8b70363032c4c6ea15c13127d11518d45c
parent36dd22acb7dce60cfdf0027d013fa65e41b328ab (diff)
SCCPlite Assignment Complete: include Speech Codec (Chosen)
Compose the Speech Codec (Chosen) IE not only for AoIP, but also for SCCPlite: place the code that assigns the codec to sc_ptr outside of the gscon_is_aoip() if scope. This way the MSC is told the chosen speech codec, which is mandatory for IP based user plane, and was missing until now. Related: OS#3528 Change-Id: Ibedade8d71a7994d25a63bc2faa2a24a10bfffa1
-rw-r--r--src/osmo-bsc/assignment_fsm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c
index e1da45bc4..63776f03f 100644
--- a/src/osmo-bsc/assignment_fsm.c
+++ b/src/osmo-bsc/assignment_fsm.c
@@ -163,12 +163,12 @@ static void send_assignment_complete(struct gsm_subscriber_connection *conn, str
return;
}
addr_local_p = &addr_local;
-
- /* Extrapolate speech codec from speech mode */
- gsm0808_speech_codec_from_chan_type(&sc, perm_spch);
- sc_ptr = &sc;
}
+
+ /* Extrapolate speech codec from speech mode */
/* FIXME: AMR codec configuration must be derived from lchan1! */
+ gsm0808_speech_codec_from_chan_type(&sc, perm_spch);
+ sc_ptr = &sc;
}
resp = gsm0808_create_ass_compl(lchan->abis_ip.ass_compl.rr_cause,