summaryrefslogtreecommitdiffstats
path: root/library/BSSAP_Adapter.ttcn
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-06-05 18:06:10 +0200
committerStefan Sperling <ssperling@sysmocom.de>2018-06-12 17:33:12 +0200
commit7437ca33ba618dd93533776faae78743326065bb (patch)
tree095ee0a09e949282a8fc893dc9f12aca127dd0e8 /library/BSSAP_Adapter.ttcn
parent83f6dbfa341644d935f6f77c801eec3a3225811f (diff)
Diffstat (limited to 'library/BSSAP_Adapter.ttcn')
-rw-r--r--library/BSSAP_Adapter.ttcn19
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 := {