fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sip-connector/+/29561 )
Change subject: mncc: fix MNCC_SETUP_REQ: set MNCC_F_GCR if GCR is present ......................................................................
mncc: fix MNCC_SETUP_REQ: set MNCC_F_GCR if GCR is present
Change-Id: I9dd22caef78e37543dac8a6b31a6ee349e7e5aa8 Related: OS#5282 --- M src/mncc.c 1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/61/29561/1
diff --git a/src/mncc.c b/src/mncc.c index f302b3e..02ba2cc 100644 --- a/src/mncc.c +++ b/src/mncc.c @@ -936,10 +936,12 @@ /* Encode the Global Call Reference (if present) */ if (call->gcr_present) { msg = msgb_alloc(sizeof(mncc.gcr), "MNCC GCR"); - if (msg == NULL || (rc = osmo_enc_gcr(msg, &call->gcr)) == 0) + if (msg == NULL || (rc = osmo_enc_gcr(msg, &call->gcr)) == 0) { LOGP(DMNCC, LOGL_ERROR, "MNCC leg(%u) failed to encode GCR\n", call->id); - else + } else { memcpy(&mncc.gcr[0], msg->data, rc); + mncc.fields |= MNCC_F_GCR; + } msgb_free(msg); }