From 7437ca33ba618dd93533776faae78743326065bb Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Tue, 5 Jun 2018 18:06:10 +0200 Subject: add a test for OS#2666 Change-Id: I903ba92a4c7dace8abd924d231ec696350bbc3d4 --- library/BSSAP_Adapter.ttcn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'library/BSSAP_Adapter.ttcn') diff --git a/library/BSSAP_Adapter.ttcn b/library/BSSAP_Adapter.ttcn index e50487dc..05178903 100644 --- a/library/BSSAP_Adapter.ttcn +++ b/library/BSSAP_Adapter.ttcn @@ -73,6 +73,25 @@ template (value) SCCP_PAR_Address ts_SccpAddr_PC_SSN(integer pc, integer ssn, oc globalTitle := omit } +/* construct a SCCP_PAR_Address with only GT */ +template (value) SCCP_PAR_Address ts_SccpAddr_GT(hexstring global_address) := { + addressIndicator := { + pointCodeIndic := '0'B, + ssnIndicator := '0'B, + globalTitleIndic := '0001'B, // NAI only + routingIndicator := cg_route_on_GT // route on GT + }, + signPointCode := omit, + subsystemNumber := omit, + globalTitle := { + gti0001 := { + natureOfAddress := '0000011'B, + oddeven := '0'B, + globalTitleAddress := global_address + } + } +} + private function init_pars(inout BSSAP_Adapter ba, in BSSAP_Configuration cfg) { ba.sccp_pars := { sio := { -- cgit v1.2.3