daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/42935?usp=email )
Change subject: stp: add ASP_SCCP_N_NOTICE_req support and f_asp_tx_notice() ......................................................................
stp: add ASP_SCCP_N_NOTICE_req support and f_asp_tx_notice()
Wire ASP_SCCP_N_NOTICE_req as a simple passthrough in TCAP_CODEC_PT, so test components can send UDTS via the existing SCCP_TCAP port. Add f_asp_tx_notice() to STP_Tests_TCAP as a convenience wrapper.
Change-Id: I74c05405f1c99d43b4bf863f959275ee51301f2e --- M library/tcap/TCAP_CodecPort.ttcn M stp/STP_Tests_TCAP.ttcn 2 files changed, 14 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/35/42935/1
diff --git a/library/tcap/TCAP_CodecPort.ttcn b/library/tcap/TCAP_CodecPort.ttcn index a9bdcc5..5bec2c4 100644 --- a/library/tcap/TCAP_CodecPort.ttcn +++ b/library/tcap/TCAP_CodecPort.ttcn @@ -376,7 +376,8 @@ TCAP_N_DATA_req, TCAP_N_DISCONNECT_req, TCAP_N_UNITDATA_req, - ASP_SCCP_N_RESET_req; + ASP_SCCP_N_RESET_req, + ASP_SCCP_N_NOTICE_req; in TCAP_N_CONNECT_ind, TCAP_N_CONNECT_cfm, TCAP_N_DATA_ind, @@ -393,7 +394,8 @@ 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); - ASP_SCCP_N_RESET_req -> ASP_SCCP_N_RESET_req: simple) + 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); ASP_SCCP_N_CONNECT_cfm -> TCAP_N_CONNECT_cfm: function(f_dec_ConnectCfm); ASP_SCCP_N_DATA_ind -> TCAP_N_DATA_ind: function(f_dec_DataInd); diff --git a/stp/STP_Tests_TCAP.ttcn b/stp/STP_Tests_TCAP.ttcn index f8ba240..00c08a5 100644 --- a/stp/STP_Tests_TCAP.ttcn +++ b/stp/STP_Tests_TCAP.ttcn @@ -219,6 +219,16 @@ SCCP_TCAP[asp_idx].send(sccp_unitdata_req); }
+private function f_asp_tx_notice(template (value) SCCP_PAR_UserData userData, + SCCP_PAR_Reason_For_Return reasonForReturn, + integer asp_idx := 0) +runs on TCAP_CT +{ + SCCP_TCAP[asp_idx].send(t_ASP_N_NOTICE_req(g_tcap[asp_idx].sccp_addr_peer, + g_tcap[asp_idx].sccp_addr_own, + reasonForReturn, userData, omit)); +} +
private altstep as_asp_rx_tcap_any(template (present) TCMessage tcap_msg := ?, integer tx_asp_idx := 0)