Change in osmo-msc[master]: msc_ho: fix CALL IDENTIFIER in HANDOVER REQUEST

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Tue Jun 9 12:49:42 UTC 2020


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/18740 )


Change subject: msc_ho: fix CALL IDENTIFIER in HANDOVER REQUEST
......................................................................

msc_ho: fix CALL IDENTIFIER in HANDOVER REQUEST

When msc_ho_send_handover_request() generates the HANDOVER REQUEST
message, it does not populate the call_id struct member.

In ran_msg_a.c the struct member call_id is used, but the
call_id_present flag is not set, which also prevents the call_id being
edded to the message

Change-Id: I6b1b55b3f5a3092d9557dc2512020c766a9ff744
---
M src/libmsc/msc_ho.c
M src/libmsc/ran_msg_a.c
2 files changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/40/18740/1

diff --git a/src/libmsc/msc_ho.c b/src/libmsc/msc_ho.c
index aa513eb..2422703 100644
--- a/src/libmsc/msc_ho.c
+++ b/src/libmsc/msc_ho.c
@@ -383,6 +383,7 @@
 	struct vlr_subscr *vsub = msc_a_vsub(msc_a);
 	struct gsm_network *net = msc_a_net(msc_a);
 	struct gsm0808_channel_type channel_type;
+	struct gsm_trans *cc_trans = msc_a->cc.active_trans;
 	struct ran_msg ran_enc_msg = {
 		.msg_type = RAN_MSG_HANDOVER_REQUEST,
 		.handover_request = {
@@ -402,6 +403,7 @@
 			/* Don't send AoIP Transport Layer Address for inter-MSC Handover */
 			.rtp_ran_local = (msc_a->ho.new_cell.type == MSC_NEIGHBOR_TYPE_LOCAL_RAN_PEER)
 				? call_leg_local_ip(msc_a->cc.call_leg, RTP_TO_RAN) : NULL,
+			.call_id = cc_trans->callref,
 		},
 	};
 
diff --git a/src/libmsc/ran_msg_a.c b/src/libmsc/ran_msg_a.c
index 667e758..6e5e7da 100644
--- a/src/libmsc/ran_msg_a.c
+++ b/src/libmsc/ran_msg_a.c
@@ -1117,6 +1117,7 @@
 
 		.imsi = n->imsi,
 		.codec_list_msc_preferred = n->codec_list_msc_preferred,
+		.call_id_present = true,
 		.call_id = n->call_id,
 		.global_call_reference = n->global_call_reference,
 		.global_call_reference_len = n->global_call_reference_len,

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/18740
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I6b1b55b3f5a3092d9557dc2512020c766a9ff744
Gerrit-Change-Number: 18740
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200609/cb4fcb21/attachment.htm>


More information about the gerrit-log mailing list