diff options
author | Keith Whyte <keith@rhizomatica.org> | 2022-10-03 02:32:00 +0100 |
---|---|---|
committer | Keith Whyte <keith@rhizomatica.org> | 2022-10-03 02:36:54 +0100 |
commit | 44b4a05032ce1e4603c3c2aa2de3ff823cb90338 (patch) | |
tree | e9dadab1195619b31506fc2529ebacfbbbc2eca5 | |
parent | 8120b11eaaddd99cee482448f35b917d607bd545 (diff) |
Set MNCC_F_GCR field when the gcr is present
Commit bd66804082bf813a1f925c6af4df28fd664ac1de established that the
MNCC field flag MNCC_F_GCR should be set when the GCR is present,
but did not set it.
Change-Id: Idad3210055a0d25be6220301b965e3d4c7323692
-rw-r--r-- | src/mncc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -936,10 +936,12 @@ int mncc_create_remote_leg(struct mncc_connection *conn, struct call *call) /* 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); } |