Change in ...osmo-ttcn3-hacks[master]: library/RAN_Emulation.ttcnpp: fix: properly handle SAPI / DLCI for RANAP

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Wed Jun 19 22:32:39 UTC 2019


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14551


Change subject: library/RAN_Emulation.ttcnpp: fix: properly handle SAPI / DLCI for RANAP
......................................................................

library/RAN_Emulation.ttcnpp: fix: properly handle SAPI / DLCI for RANAP

Some of our SMS related test cases are failing. The problem is
that SMS related RAN messages shall be sent on SAPI 3, as per
GSM TS 04.11, section 2.3, while they actually being sent on
SAPI 0.

For the messages coming from the TCs towards OsmoMSC over RANAP,
we need to convert from DLCI to SAPI in f_xmit_raw_l3(). OsmoMSC
also needs to be patched, because it seems to ignore SAPI IE.

Change-Id: I6199fd5f26774fb1ec419bc1ef9e1caeca3a0d35
---
M library/RAN_Emulation.ttcnpp
1 file changed, 8 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/51/14551/1

diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp
index c7f67c4..60c363b 100644
--- a/library/RAN_Emulation.ttcnpp
+++ b/library/RAN_Emulation.ttcnpp
@@ -1096,8 +1096,15 @@
 #endif
 #ifdef RAN_EMULATION_RANAP
 	case (RAN_PROTOCOL_RANAP) {
+		var RANAP_IEs.SAPI sapi := sapi_0;
 		var RANAP_PDU ranap;
-		ranap := valueof(ts_RANAP_DirectTransfer(l3_enc, sapi := sapi_0));
+
+		/* FIXME: is it the correct way of DLCI -> SAPI transformation? */
+		if (dlci == '03'O) {
+			sapi := sapi_3;
+		}
+
+		ranap := valueof(ts_RANAP_DirectTransfer(l3_enc, sapi := sapi));
 		RANAP.send(ts_RANAP_DATA_req(sccp_conn_id, ranap));
 		}
 #endif

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I6199fd5f26774fb1ec419bc1ef9e1caeca3a0d35
Gerrit-Change-Number: 14551
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190619/8ea45397/attachment.htm>


More information about the gerrit-log mailing list