sgsn: Add TC_attach_pdp_act_user_deact_mo
Change-Id: I43cb7728658cae6590eb1bd31c7c285b942a265e
diff --git a/library/GTP_Templates.ttcn b/library/GTP_Templates.ttcn
index f071d04..ef7e97b 100644
--- a/library/GTP_Templates.ttcn
+++ b/library/GTP_Templates.ttcn
@@ -495,6 +495,27 @@
valueof(ts_DeletePdpPDU(nsapi, teardown_ind)), seq)
}
+ template GTPC_PDUs ts_DeletePdpRespPDU(OCT1 cause,
+ template ProtConfigOptions pco := omit) := {
+ deletePDPContextResponse := {
+ cause := { '00'O, cause },
+ protConfigOptions := pco,
+ userLocationInformation := omit,
+ mS_TimeZone := omit,
+ uLI_Timestamp := omit,
+ private_extension_gtpc := omit
+ }
+ }
+
+ template Gtp1cUnitdata ts_GTPC_DeletePdpResp(GtpPeer peer, uint16_t seq, OCT4 teid,
+ OCT1 cause,
+ template ProtConfigOptions pco := omit) := {
+ peer := peer,
+ gtpc := ts_GTP1C_PDU(deletePDPContextResponse, teid,
+ valueof(ts_DeletePdpRespPDU(cause, pco)), seq)
+ }
+
+
/* GTP-U */
diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index ffabff4..e1947b2 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -1904,6 +1904,61 @@
}
}
+template (value) PDU_L3_MS_SGSN ts_SM_DEACT_PDP_REQ_MO(BIT3 tid, OCT1 cause, boolean tdown := false,
+ template (omit) ProtocolConfigOptionsV pco := omit
+ ) := {
+ discriminator := '0000'B, /* overwritten */
+ tiOrSkip := {
+ transactionId := {
+ tio := tid,
+ tiFlag := '0'B,
+ tIExtension := omit
+ }
+ },
+ msgs := {
+ gprs_sm := {
+ deactivatePDPContextRequest := {
+ messageType := '00000000'B, /* overwritten */
+ smCause := cause,
+ tearDownIndicator := {
+ tearDownIndicatorV := {
+ tdi_flag := bool2bit(tdown),
+ spare := '000'B
+ },
+ elementIdentifier := '1001'B
+ },
+ protocolConfigOpts := ts_PcoTLV(pco),
+ mBMSprotocolConfigOptions := omit,
+ t3396 := omit,
+ wLANOffloadIndication := omit,
+ nBIFOM_Container := omit
+ }
+ }
+ }
+}
+
+template PDU_L3_SGSN_MS tr_SM_DEACT_PDP_ACCEPT_MT(template BIT3 tid := ?)
+:= {
+ discriminator := '1010'B,
+ tiOrSkip := {
+ transactionId := {
+ tio := tid,
+ tiFlag := '1'B,
+ tIExtension := omit
+ }
+ },
+ msgs := {
+ gprs_sm := {
+ deactivatePDPContextAccept := {
+ messageType := '01000111'B,
+ protocolConfigOpts := *,
+ mBMSprotocolConfigOptions := *,
+ nBIFOM_Container := *
+ }
+ }
+ }
+}
+
private function f_concat_pad(integer tot_len, hexstring prefix, integer suffix) return hexstring {