aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmsc/gsm_04_08_cc.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2020-11-24 06:06:17 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2020-11-24 06:06:17 +0100
commit36a3753ed04ca16330bf1c4752bcfe71483f6288 (patch)
tree4370b344c7088fe5cbd9eee6ce18e79cf4090089 /src/libmsc/gsm_04_08_cc.c
parent17d225492c8235010a1a866ad0291a1e5163125a (diff)
Diffstat (limited to 'src/libmsc/gsm_04_08_cc.c')
-rw-r--r--src/libmsc/gsm_04_08_cc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libmsc/gsm_04_08_cc.c b/src/libmsc/gsm_04_08_cc.c
index e950f0857..f32d9673d 100644
--- a/src/libmsc/gsm_04_08_cc.c
+++ b/src/libmsc/gsm_04_08_cc.c
@@ -567,6 +567,9 @@ static int gsm48_cc_rx_setup(struct gsm_trans *trans, struct msgb *msg)
//if (lcls_compose(&trans-lcls, trans, true)
// LOG_TRANS(trans, LOGL_ERROR, "LCLS Error\n");
+ /* pass the LCLS GCR on to the MT call leg via MNCC */
+ setup.gcr = trans->lcls->gcr;
+
tlv_parse(&tp, &gsm48_att_tlvdef, gh->data, payload_len, 0, 0);
/* emergency setup is identified by msg_type */
if (msg_type == GSM48_MT_CC_EMERG_SETUP) {
@@ -2008,6 +2011,12 @@ static int mncc_tx_to_gsm_cc(struct gsm_network *net, const union mncc_msg *msg)
return -ENOMEM;
}
+ /* Get the GCR from the MO call leg (if any).
+ * First make room for the LCLS info, then insert the MO call leg's GCR. */
+ trans->lcls = lcls_compose(...);
+ trans->lcls->gcr = data->gcr;
+ trans->lcls->gcr_available = true;
+
/* If subscriber has no conn */
if (!msc_a) {
/* This condition will return before the common logging of the received MNCC message below, so