laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41291?usp=email )
Change subject: library: TCAP: ts_TCAP_UNITDATA_req: allow to define the returnOption ......................................................................
library: TCAP: ts_TCAP_UNITDATA_req: allow to define the returnOption
TCAP loadsharing will use RETURN_OPTION_ON_ERROR option to test UDTS when no TCAP ranges matches.
Related: SYS#5423 Change-Id: Ie4f6d9e02f65687c3158cae41f28aa30b95f85f8 --- M library/tcap/TCAP_CodecPort.ttcn 1 file changed, 6 insertions(+), 2 deletions(-)
Approvals: laforge: Looks good to me, approved pespin: Looks good to me, approved Jenkins Builder: Verified
diff --git a/library/tcap/TCAP_CodecPort.ttcn b/library/tcap/TCAP_CodecPort.ttcn index 50b0eed..882a288 100644 --- a/library/tcap/TCAP_CodecPort.ttcn +++ b/library/tcap/TCAP_CodecPort.ttcn @@ -20,6 +20,9 @@ import from TCAPMessages language "ASN.1:1997" all; import from TCAP_Types all;
+const BIT8n RETURN_OPTION_DISCARD := '00000000'B; +const BIT8n RETURN_OPTION_ON_ERROR := '00000001'B; + type record TCAP_N_CONNECT_req { SCCP_PAR_Address calledAddress, @@ -187,11 +190,12 @@
template (value) TCAP_N_UNITDATA_req ts_TCAP_UNITDATA_req(SCCP_PAR_Address called, SCCP_PAR_Address calling, - template (value) TCMessage payload) := { + template (value) TCMessage payload, + template (omit) SCCP_PAR_Return_Option returns := omit) := { calledAddress := called, callingAddress := calling, sequenceControl := omit, - returnOption := omit, + returnOption := returns, userData := payload, importance := omit }