daniel has uploaded this change for review.
stp: Add TCAP_N_NOTICE_req to send a UDTS with TCAP payload
Change-Id: Ie13cecc2f2fc8a20d9646f0fb010b91c2ecf7766
---
M library/tcap/TCAP_CodecPort.ttcn
1 file changed, 30 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/36/42936/1
diff --git a/library/tcap/TCAP_CodecPort.ttcn b/library/tcap/TCAP_CodecPort.ttcn
index 5bec2c4..d2ad994 100644
--- a/library/tcap/TCAP_CodecPort.ttcn
+++ b/library/tcap/TCAP_CodecPort.ttcn
@@ -241,6 +241,25 @@
importance := *
}
+type record TCAP_N_NOTICE_req
+{
+ SCCP_PAR_Address calledAddress ,
+ SCCP_PAR_Address callingAddress ,
+ SCCP_PAR_Reason_For_Return reasonForReturn ,
+ TCMessage userData ,
+ SCCP_PAR_Importance importance optional
+}
+
+template (value) TCAP_N_NOTICE_req ts_TCAP_N_NOTICE_req(SCCP_PAR_Address called,
+ SCCP_PAR_Address calling,
+ template (value) SCCP_PAR_Reason_For_Return reason,
+ template (value) TCMessage payload) := {
+ calledAddress := called,
+ callingAddress := calling,
+ reasonForReturn := reason,
+ userData := payload,
+ importance := omit
+}
private function f_dec_ConnectInd(in ASP_SCCP_N_CONNECT_ind pin, out TCAP_N_CONNECT_ind pout) {
pout.calledAddress := pin.calledAddress;
@@ -370,12 +389,22 @@
//port.setstate(0);
} with {extension "prototype(fast)" }
+private function f_enc_NoticeReq(in TCAP_N_NOTICE_req pin, out ASP_SCCP_N_NOTICE_req pout) {
+ pout.calledAddress := pin.calledAddress;
+ pout.callingAddress := pin.callingAddress;
+ pout.reasonForReturn := pin.reasonForReturn;
+ pout.userData := enc_TCAP_TCMessage(pin.userData);
+ pout.importance := pin.importance;
+ //port.setstate(0);
+} with {extension "prototype(fast)" }
+
type port TCAP_CODEC_PT message {
out TCAP_N_CONNECT_req,
TCAP_N_CONNECT_res,
TCAP_N_DATA_req,
TCAP_N_DISCONNECT_req,
TCAP_N_UNITDATA_req,
+ TCAP_N_NOTICE_req,
ASP_SCCP_N_RESET_req,
ASP_SCCP_N_NOTICE_req;
in TCAP_N_CONNECT_ind,
@@ -394,6 +423,7 @@
TCAP_N_DATA_req -> ASP_SCCP_N_DATA_req: function(f_enc_DataReq);
TCAP_N_DISCONNECT_req -> ASP_SCCP_N_DISCONNECT_req: function(f_enc_DisconnectReq);
TCAP_N_UNITDATA_req -> ASP_SCCP_N_UNITDATA_req: function(f_enc_UnitdataReq);
+ TCAP_N_NOTICE_req -> ASP_SCCP_N_NOTICE_req: function(f_enc_NoticeReq);
ASP_SCCP_N_RESET_req -> ASP_SCCP_N_RESET_req: simple;
ASP_SCCP_N_NOTICE_req -> ASP_SCCP_N_NOTICE_req: simple)
in(ASP_SCCP_N_CONNECT_ind -> TCAP_N_CONNECT_ind: function(f_dec_ConnectInd);
To view, visit change 42936. To unsubscribe, or for help writing mail filters, visit settings.