Harald Welte | a814f26 | 2017-07-24 13:21:35 +0200 | [diff] [blame] | 1 | --///////////////////////////////////////////////////////////////////////////// |
| 2 | -- // |
| 3 | -- Copyright Test Competence Center (TCC) ETH 2016 // |
| 4 | -- // |
| 5 | -- The copyright to the computer program(s) herein is the property of TCC. // |
| 6 | -- The program(s) may be used and/or copied only with the written permission // |
| 7 | -- of TCC or in accordance with the terms and conditions stipulated in the // |
| 8 | -- agreement/contract under which the program(s) has been supplied. // |
| 9 | -- // |
| 10 | --///////////////////////////////////////////////////////////////////////////// |
| 11 | -- |
| 12 | -- File: SS_PDU_Defs.asn |
| 13 | -- Rev: R1B |
| 14 | -- Prodnr: CNL 113 832 |
| 15 | -- Contact: http://ttcn.ericsson.se |
| 16 | -- Reference: 3GPP TS 24.080 v13.0.0 |
| 17 | |
| 18 | SS-PDU-Defs |
| 19 | |
| 20 | DEFINITIONS IMPLICIT TAGS ::= |
| 21 | |
| 22 | BEGIN |
| 23 | |
| 24 | IMPORTS |
| 25 | |
| 26 | Supported-SS-Operations |
| 27 | FROM |
| 28 | SS-Protocol |
| 29 | |
| 30 | OPERATION, ERROR, Code |
| 31 | FROM Remote-Operations-Information-Objects {joint-iso-itu-t |
| 32 | remote-operations(4) informationObjects(5) version1(0)} |
| 33 | |
| 34 | Invoke{}, ReturnResult{}, ReturnError{}, Reject{}, |
| 35 | Invoke-help{}, ReturnResult-help{}, ReturnError-help{}, |
| 36 | Errors{}, PresentInvokeId, ProblemType |
| 37 | FROM Remote-Operations-Generic-ROS-PDUs {joint-iso-itu-t |
| 38 | remote-operations(4) generic-ROS-PDUs(6) version1(0)}; |
| 39 | |
| 40 | |
| 41 | -- SS-Invoke, SS-ReturnResult, SS-ReturnError, SS-Reject |
| 42 | -- SS-Invoke-help SS-ReturnResult-help SS-ReturnError-help types |
| 43 | -- (these are accessible from TTCN-3) |
| 44 | SS-Invoke ::= Invoke{{PresentInvokeId}, {Supported-SS-Operations}} |
| 45 | |
| 46 | SS-ReturnResult ::= ReturnResult{{Supported-SS-Operations}} |
| 47 | |
| 48 | SS-ReturnError ::= ReturnError{{Errors {{Supported-SS-Operations}}}} |
| 49 | |
| 50 | SS-Reject ::= Reject --{{Errors {{Supported-SS-Operations}}}} |
| 51 | |
| 52 | SS-Invoke-help ::= Invoke-help{{PresentInvokeId}, {Supported-SS-Operations}} |
| 53 | |
| 54 | SS-ReturnResult-help ::= ReturnResult-help{{Supported-SS-Operations}} |
| 55 | |
| 56 | SS-ReturnError-help ::= ReturnError-help{{Errors {{Supported-SS-Operations}}}} |
| 57 | |
| 58 | |
| 59 | -- Component Portion fields |
| 60 | |
| 61 | -- COMPONENT PORTION. This part is copied from TCAP_PDU_Defs.asn file |
| 62 | -- with TCAP -> SS-TCAP renaming |
| 63 | -- This is needed for internal coding: DON'T USE FROM TTCN !!! |
| 64 | SS-TCAP-ComponentPortion ::= [UNIVERSAL 28] IMPLICIT SEQUENCE (SIZE(1..MAX)) OF |
| 65 | SS-TCAP-Component |
| 66 | |
| 67 | |
| 68 | -- COMPONENT TYPE. Recommendation X.229 defines four Application Protocol Data |
| 69 | -- Units (APDUs). |
| 70 | |
| 71 | SS-TCAP-Component ::= CHOICE |
| 72 | { |
| 73 | invoke [1] IMPLICIT SS-TCAP-Invoke, |
| 74 | returnResult [2] IMPLICIT SS-TCAP-ReturnResult, |
| 75 | returnError [3] IMPLICIT SS-TCAP-ReturnError, |
| 76 | reject [4] IMPLICIT SS-TCAP-Reject |
| 77 | } |
| 78 | |
| 79 | -- The Components are sequences of data elements. |
| 80 | SS-TCAP-Invoke ::= SEQUENCE |
| 81 | { |
| 82 | invokeID SS-TCAP-InvokeIdType, |
| 83 | linkedID [0] IMPLICIT SS-TCAP-InvokeIdType OPTIONAL, |
| 84 | operationCode Code, |
| 85 | parameter ANY DEFINED BY operationCode OPTIONAL |
| 86 | } |
| 87 | -- ethgry(11/July/02): ANY and ANY DEFINED BY handled in a special, |
| 88 | -- transparent way at encoding/decoding: |
| 89 | -- its value notation shall be a simple octet string, which will be |
| 90 | -- directly copied (i.e without an additional tag and length fields) |
| 91 | -- into the encoded stream and will be fetched from the received |
| 92 | -- stream and passed to the abstract level as an octet string. |
| 93 | |
| 94 | |
| 95 | -- ANY is filled by the single ASN.1 data type following the keyword PARAMETER |
| 96 | -- or the keyword ARGUMENT in the type definition of a particular operation. |
| 97 | |
| 98 | SS-TCAP-ReturnResult ::= SEQUENCE |
| 99 | { |
| 100 | invokeID SS-TCAP-InvokeIdType, |
| 101 | result SS-TCAP-ReturnResult-Result OPTIONAL |
| 102 | } |
| 103 | |
| 104 | SS-TCAP-ReturnResult-Result ::= SEQUENCE |
| 105 | { |
| 106 | operationCode Code, |
| 107 | parameter ANY DEFINED BY operationCode OPTIONAL |
| 108 | -- ethgry: See comment to Invoke on the use of ANY |
| 109 | } |
| 110 | |
| 111 | -- ANY is filled by the single ASN.1 data type following the keyword RESULT in |
| 112 | -- the type definition of a particular operation. |
| 113 | |
| 114 | SS-TCAP-ReturnError ::= SEQUENCE |
| 115 | { |
| 116 | invokeID SS-TCAP-InvokeIdType, |
| 117 | errorCode Code, |
| 118 | parameter ANY DEFINED BY errorCode OPTIONAL |
| 119 | -- ethgry: See comment to Invoke on the use of ANY |
| 120 | } |
| 121 | |
| 122 | -- ANY is filled by the single ASN.1 data type following the keyword PARAMETER |
| 123 | -- in the type definition of a particular error. |
| 124 | SS-TCAP-Reject ::= SEQUENCE |
| 125 | { |
| 126 | invokeID CHOICE |
| 127 | { |
| 128 | derivable SS-TCAP-InvokeIdType, |
| 129 | not-derivable NULL |
| 130 | }, |
| 131 | problem ProblemType |
| 132 | } |
| 133 | |
| 134 | SS-TCAP-InvokeIdType ::= INTEGER (-128..127) |
| 135 | |
| 136 | END |