diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-06-05 18:06:10 +0200 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-06-12 17:33:12 +0200 |
commit | 7437ca33ba618dd93533776faae78743326065bb (patch) | |
tree | 095ee0a09e949282a8fc893dc9f12aca127dd0e8 /library/BSSAP_Adapter.ttcn | |
parent | 83f6dbfa341644d935f6f77c801eec3a3225811f (diff) |
add a test for OS#2666stsp/msc_routing_global_title_crash
Change-Id: I903ba92a4c7dace8abd924d231ec696350bbc3d4
Diffstat (limited to 'library/BSSAP_Adapter.ttcn')
-rw-r--r-- | library/BSSAP_Adapter.ttcn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/library/BSSAP_Adapter.ttcn b/library/BSSAP_Adapter.ttcn index e50487d..0517890 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 := { |