language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-BS-Code.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.10 Bearer Service Codes MAP-BS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-BS-Code (20) version20 (20)} DEFINITIONS ::= BEGIN BearerServiceCode ::= OCTET STRING (SIZE (1)) -- This type is used to represent the code identifying a single -- bearer service, a group of bearer services, or all bearer -- services. The services are defined in TS 3GPP TS 22.002 [3]. -- The internal structure is defined as follows: -- -- plmn-specific bearer services: -- bits 87654321: defined by the HPLMN operator -- rest of bearer services: -- bit 8: 0 (unused) -- bits 7654321: group (bits 7654), and rate, if applicable -- (bits 321) Ext-BearerServiceCode ::= OCTET STRING (SIZE (1..5)) -- This type is used to represent the code identifying a single -- bearer service, a group of bearer services, or all bearer -- services. The services are defined in TS 3GPP TS 22.002 [3]. -- The internal structure is defined as follows: -- -- OCTET 1: -- plmn-specific bearer services: -- bits 87654321: defined by the HPLMN operator -- -- rest of bearer services: -- bit 8: 0 (unused) -- bits 7654321: group (bits 7654), and rate, if applicable -- (bits 321) -- OCTETS 2-5: reserved for future use. If received the -- Ext-TeleserviceCode shall be -- treated according to the exception handling defined for the -- operation that uses this type. -- Ext-BearerServiceCode includes all values defined for BearerServiceCode. allBearerServices BearerServiceCode ::= '00000000'B allDataCDA-Services BearerServiceCode ::= '00010000'B dataCDA-300bps BearerServiceCode ::= '00010001'B dataCDA-1200bps BearerServiceCode ::= '00010010'B dataCDA-1200-75bps BearerServiceCode ::= '00010011'B dataCDA-2400bps BearerServiceCode ::= '00010100'B dataCDA-4800bps BearerServiceCode ::= '00010101'B dataCDA-9600bps BearerServiceCode ::= '00010110'B general-dataCDA BearerServiceCode ::= '00010111'B allDataCDS-Services BearerServiceCode ::= '00011000'B dataCDS-1200bps BearerServiceCode ::= '00011010'B dataCDS-2400bps BearerServiceCode ::= '00011100'B dataCDS-4800bps BearerServiceCode ::= '00011101'B dataCDS-9600bps BearerServiceCode ::= '00011110'B general-dataCDS BearerServiceCode ::= '00011111'B allPadAccessCA-Services BearerServiceCode ::= '00100000'B padAccessCA-300bps BearerServiceCode ::= '00100001'B padAccessCA-1200bps BearerServiceCode ::= '00100010'B padAccessCA-1200-75bps BearerServiceCode ::= '00100011'B padAccessCA-2400bps BearerServiceCode ::= '00100100'B padAccessCA-4800bps BearerServiceCode ::= '00100101'B padAccessCA-9600bps BearerServiceCode ::= '00100110'B general-padAccessCA BearerServiceCode ::= '00100111'B allDataPDS-Services BearerServiceCode ::= '00101000'B dataPDS-2400bps BearerServiceCode ::= '00101100'B dataPDS-4800bps BearerServiceCode ::= '00101101'B dataPDS-9600bps BearerServiceCode ::= '00101110'B general-dataPDS BearerServiceCode ::= '00101111'B allAlternateSpeech-DataCDA BearerServiceCode ::= '00110000'B allAlternateSpeech-DataCDS BearerServiceCode ::= '00111000'B allSpeechFollowedByDataCDA BearerServiceCode ::= '01000000'B allSpeechFollowedByDataCDS BearerServiceCode ::= '01001000'B -- The following non-hierarchical Compound Bearer Service -- Groups are defined in TS 3GPP TS 22.030: allDataCircuitAsynchronous BearerServiceCode ::= '01010000'B -- covers "allDataCDA-Services", "allAlternateSpeech-DataCDA" and -- "allSpeechFollowedByDataCDA" allAsynchronousServices BearerServiceCode ::= '01100000'B -- covers "allDataCDA-Services", "allAlternateSpeech-DataCDA", -- "allSpeechFollowedByDataCDA" and "allPadAccessCDA-Services" allDataCircuitSynchronous BearerServiceCode ::= '01011000'B -- covers "allDataCDS-Services", "allAlternateSpeech-DataCDS" and -- "allSpeechFollowedByDataCDS" allSynchronousServices BearerServiceCode ::= '01101000'B -- covers "allDataCDS-Services", "allAlternateSpeech-DataCDS", -- "allSpeechFollowedByDataCDS" and "allDataPDS-Services" -- -- Compound Bearer Service Group Codes are only used in call -- independent supplementary service operations, i.e. they -- are not used in InsertSubscriberData or in -- DeleteSubscriberData messages. allPLMN-specificBS BearerServiceCode ::= '11010000'B plmn-specificBS-1 BearerServiceCode ::= '11010001'B plmn-specificBS-2 BearerServiceCode ::= '11010010'B plmn-specificBS-3 BearerServiceCode ::= '11010011'B plmn-specificBS-4 BearerServiceCode ::= '11010100'B plmn-specificBS-5 BearerServiceCode ::= '11010101'B plmn-specificBS-6 BearerServiceCode ::= '11010110'B plmn-specificBS-7 BearerServiceCode ::= '11010111'B plmn-specificBS-8 BearerServiceCode ::= '11011000'B plmn-specificBS-9 BearerServiceCode ::= '11011001'B plmn-specificBS-A BearerServiceCode ::= '11011010'B plmn-specificBS-B BearerServiceCode ::= '11011011'B plmn-specificBS-C BearerServiceCode ::= '11011100'B plmn-specificBS-D BearerServiceCode ::= '11011101'B plmn-specificBS-E BearerServiceCode ::= '11011110'B plmn-specificBS-F BearerServiceCode ::= '11011111'B END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-CallHandlingOperations.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) --17.6.3 Call Handling Operations MAP-CallHandlingOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CallHandlingOperations (7) version20 (20)} DEFINITIONS ::= BEGIN EXPORTS sendRoutingInfo, provideRoamingNumber, resumeCallHandling, setReportingState, statusReport, remoteUserFree, ist-Alert, ist-Command, releaseResources ; IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} systemFailure, dataMissing, unexpectedDataValue, facilityNotSupported, or-NotAllowed, unknownSubscriber, numberChanged, bearerServiceNotProvisioned, teleserviceNotProvisioned, noRoamingNumberAvailable, absentSubscriber, busySubscriber, noSubscriberReply, callBarred, forwardingViolation, forwardingFailed, cug-Reject, resourceLimitation, incompatibleTerminal, unidentifiedSubscriber FROM MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version20 (20)} SendRoutingInfoArg, SendRoutingInfoRes, ProvideRoamingNumberArg, ProvideRoamingNumberRes, ResumeCallHandlingArg, ResumeCallHandlingRes, SetReportingStateArg, SetReportingStateRes, StatusReportArg, StatusReportRes, RemoteUserFreeArg, RemoteUserFreeRes, IST-AlertArg, IST-AlertRes, IST-CommandArg, IST-CommandRes, ReleaseResourcesArg, ReleaseResourcesRes FROM MAP-CH-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CH-DataTypes (13) version20 (20)} ; sendRoutingInfo OPERATION ::= { --Timer m -- The timer is set to the upper limit of the range if the GMSC supports pre-paging. ARGUMENT SendRoutingInfoArg RESULT SendRoutingInfoRes ERRORS { systemFailure | dataMissing | unexpectedDataValue | facilityNotSupported | or-NotAllowed | unknownSubscriber | numberChanged | bearerServiceNotProvisioned | teleserviceNotProvisioned | absentSubscriber | busySubscriber | noSubscriberReply | callBarred | cug-Reject | forwardingViolation} CODE local:22 } provideRoamingNumber OPERATION ::= { --Timer m -- The timer is set to the upper limit of the range if the HLR supports pre-paging. ARGUMENT ProvideRoamingNumberArg RESULT ProvideRoamingNumberRes ERRORS { systemFailure | dataMissing | unexpectedDataValue | facilityNotSupported | or-NotAllowed | absentSubscriber | noRoamingNumberAvailable} CODE local:4 } resumeCallHandling OPERATION ::= { --Timer m ARGUMENT ResumeCallHandlingArg RESULT ResumeCallHandlingRes -- optional ERRORS { forwardingFailed | or-NotAllowed | unexpectedDataValue | dataMissing } CODE local:6 } setReportingState OPERATION ::= { --Timer m ARGUMENT SetReportingStateArg RESULT SetReportingStateRes -- optional ERRORS { systemFailure | unidentifiedSubscriber | unexpectedDataValue | dataMissing | resourceLimitation | facilityNotSupported} CODE local:73 } statusReport OPERATION ::= { --Timer m ARGUMENT StatusReportArg RESULT StatusReportRes -- optional ERRORS { unknownSubscriber | systemFailure | unexpectedDataValue | dataMissing} CODE local:74 } remoteUserFree OPERATION ::= { --Timer ml ARGUMENT RemoteUserFreeArg RESULT RemoteUserFreeRes ERRORS { unexpectedDataValue | dataMissing | incompatibleTerminal | absentSubscriber | systemFailure | busySubscriber} CODE local:75 } ist-Alert OPERATION ::= { --Timer m ARGUMENT IST-AlertArg RESULT IST-AlertRes -- optional ERRORS { unexpectedDataValue | resourceLimitation | unknownSubscriber | systemFailure | facilityNotSupported} CODE local:87 } ist-Command OPERATION::= { --Timer m ARGUMENT IST-CommandArg RESULT IST-CommandRes -- optional ERRORS { unexpectedDataValue | resourceLimitation | unknownSubscriber | systemFailure | facilityNotSupported} CODE local:88 } releaseResources OPERATION::= { --Timer m ARGUMENT ReleaseResourcesArg RESULT ReleaseResourcesRes -- optional ERRORS { unexpectedDataValue | systemFailure } CODE local:20 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-CH-DataTypes.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.3 Call handling data types MAP-CH-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CH-DataTypes (13) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS SendRoutingInfoArg, SendRoutingInfoRes, ProvideRoamingNumberArg, ProvideRoamingNumberRes, ResumeCallHandlingArg, ResumeCallHandlingRes, NumberOfForwarding, SuppressionOfAnnouncement, CallReferenceNumber, SetReportingStateArg, SetReportingStateRes, StatusReportArg, StatusReportRes, RemoteUserFreeArg, RemoteUserFreeRes, IST-AlertArg, IST-AlertRes, IST-CommandArg, IST-CommandRes, UU-Data, ReleaseResourcesArg, -- WS added exports needed by gsm_map.asn (extra asn1 file to handle older protocol versions) RoutingInfo, CUG-CheckInfo, ReleaseResourcesRes ; IMPORTS SubscriberInfo, SupportedCamelPhases, OfferedCamel4CSIs, CUG-Interlock, O-CSI, D-CSI, O-BcsmCamelTDPCriteriaList, T-BCSM-CAMEL-TDP-CriteriaList, IST-SupportIndicator, IST-AlertTimerValue, T-CSI, NumberPortabilityStatus, PagingArea FROM MAP-MS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MS-DataTypes (11) version20 (20)} ForwardingOptions, SS-List, CCBS-Feature FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version20 (20)} ISDN-AddressString, ISDN-SubaddressString, FTN-AddressString, ExternalSignalInfo, Ext-ExternalSignalInfo, IMSI, LMSI, Ext-BasicServiceCode, AlertingPattern, NAEA-PreferredCI, EMLPP-Priority, PLMN-Id FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} ; CUG-CheckInfo ::= SEQUENCE { cug-Interlock CUG-Interlock, cug-OutgoingAccess NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} NumberOfForwarding ::= INTEGER (1..5) SendRoutingInfoArg ::= SEQUENCE { msisdn [0] ISDN-AddressString, cug-CheckInfo [1] CUG-CheckInfo OPTIONAL, numberOfForwarding [2] NumberOfForwarding OPTIONAL, interrogationType [3] InterrogationType, or-Interrogation [4] NULL OPTIONAL, or-Capability [5] OR-Phase OPTIONAL, gmsc-OrGsmSCF-Address [6] ISDN-AddressString, callReferenceNumber [7] CallReferenceNumber OPTIONAL, forwardingReason [8] ForwardingReason OPTIONAL, basicServiceGroup [9] Ext-BasicServiceCode OPTIONAL, networkSignalInfo [10] ExternalSignalInfo OPTIONAL, camelInfo [11] CamelInfo OPTIONAL, suppressionOfAnnouncement [12] SuppressionOfAnnouncement OPTIONAL, extensionContainer [13] ExtensionContainer OPTIONAL, ..., alertingPattern [14] AlertingPattern OPTIONAL, ccbs-Call [15] NULL OPTIONAL, supportedCCBS-Phase [16] SupportedCCBS-Phase OPTIONAL, additionalSignalInfo [17] Ext-ExternalSignalInfo OPTIONAL, istSupportIndicator [18] IST-SupportIndicator OPTIONAL, pre-pagingSupported [19] NULL OPTIONAL, callDiversionTreatmentIndicator [20] CallDiversionTreatmentIndicator OPTIONAL, longFTN-Supported [21] NULL OPTIONAL, suppress-VT-CSI [22] NULL OPTIONAL, suppressIncomingCallBarring [23] NULL OPTIONAL, gsmSCF-InitiatedCall [24] NULL OPTIONAL, basicServiceGroup2 [25] Ext-BasicServiceCode OPTIONAL, networkSignalInfo2 [26] ExternalSignalInfo OPTIONAL, suppressMTSS [27] SuppressMTSS OPTIONAL, mtRoamingRetrySupported [28] NULL OPTIONAL, callPriority [29] EMLPP-Priority OPTIONAL } SuppressionOfAnnouncement ::= NULL SuppressMTSS ::= BIT STRING { suppressCUG (0), suppressCCBS (1) } (SIZE (2..16)) -- Other bits than listed above shall be discarded InterrogationType ::= ENUMERATED { basicCall (0), forwarding (1)} OR-Phase ::= INTEGER (1..127) CallReferenceNumber ::= OCTET STRING (SIZE (1..8)) ForwardingReason ::= ENUMERATED { notReachable (0), busy (1), noReply (2)} SupportedCCBS-Phase ::= INTEGER (1..127) -- exception handling: -- Only value 1 is used. -- Values in the ranges 2-127 are reserved for future use. -- If received values 2-127 shall be mapped on to value 1. CallDiversionTreatmentIndicator ::= OCTET STRING (SIZE(1)) -- callDiversionAllowed (xxxx xx01) -- callDiversionNotAllowed (xxxx xx10) -- network default is call diversion allowed SendRoutingInfoRes ::= [3] SEQUENCE { imsi [9] IMSI OPTIONAL, -- IMSI must be present if SendRoutingInfoRes is not segmented. -- If the TC-Result-NL segmentation option is taken the IMSI must be -- present in one segmented transmission of SendRoutingInfoRes. extendedRoutingInfo ExtendedRoutingInfo OPTIONAL, cug-CheckInfo [3] CUG-CheckInfo OPTIONAL, cugSubscriptionFlag [6] NULL OPTIONAL, subscriberInfo [7] SubscriberInfo OPTIONAL, ss-List [1] SS-List OPTIONAL, basicService [5] Ext-BasicServiceCode OPTIONAL, forwardingInterrogationRequired [4] NULL OPTIONAL, vmsc-Address [2] ISDN-AddressString OPTIONAL, extensionContainer [0] ExtensionContainer OPTIONAL, ... , naea-PreferredCI [10] NAEA-PreferredCI OPTIONAL, -- naea-PreferredCI is included at the discretion of the HLR operator. ccbs-Indicators [11] CCBS-Indicators OPTIONAL, msisdn [12] ISDN-AddressString OPTIONAL, numberPortabilityStatus [13] NumberPortabilityStatus OPTIONAL, istAlertTimer [14] IST-AlertTimerValue OPTIONAL, supportedCamelPhasesInVMSC [15] SupportedCamelPhases OPTIONAL, offeredCamel4CSIsInVMSC [16] OfferedCamel4CSIs OPTIONAL, routingInfo2 [17] RoutingInfo OPTIONAL, ss-List2 [18] SS-List OPTIONAL, basicService2 [19] Ext-BasicServiceCode OPTIONAL, allowedServices [20] AllowedServices OPTIONAL, unavailabilityCause [21] UnavailabilityCause OPTIONAL, releaseResourcesSupported [22] NULL OPTIONAL, gsm-BearerCapability [23] ExternalSignalInfo OPTIONAL } AllowedServices ::= BIT STRING { firstServiceAllowed (0), secondServiceAllowed (1) } (SIZE (2..8)) -- firstService is the service indicated in the networkSignalInfo -- secondService is the service indicated in the networkSignalInfo2 -- Other bits than listed above shall be discarded UnavailabilityCause ::= ENUMERATED { bearerServiceNotProvisioned (1), teleserviceNotProvisioned (2), absentSubscriber (3), busySubscriber (4), callBarred (5), cug-Reject (6), ...} -- exception handling: -- Reception of other values than the ones listed shall result in the service -- being unavailable for that call. CCBS-Indicators ::= SEQUENCE { ccbs-Possible [0] NULL OPTIONAL, keepCCBS-CallIndicator [1] NULL OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ...} RoutingInfo ::= CHOICE { roamingNumber ISDN-AddressString, forwardingData ForwardingData} ForwardingData ::= SEQUENCE { forwardedToNumber [5] ISDN-AddressString OPTIONAL, -- When this datatype is sent from an HLR which supports CAMEL Phase 2 -- to a GMSC which supports CAMEL Phase 2 the GMSC shall not check the -- format of the number forwardedToSubaddress [4] ISDN-SubaddressString OPTIONAL, forwardingOptions [6] ForwardingOptions OPTIONAL, extensionContainer [7] ExtensionContainer OPTIONAL, ..., longForwardedToNumber [8] FTN-AddressString OPTIONAL} ProvideRoamingNumberArg ::= SEQUENCE { imsi [0] IMSI, msc-Number [1] ISDN-AddressString, msisdn [2] ISDN-AddressString OPTIONAL, lmsi [4] LMSI OPTIONAL, gsm-BearerCapability [5] ExternalSignalInfo OPTIONAL, networkSignalInfo [6] ExternalSignalInfo OPTIONAL, suppressionOfAnnouncement [7] SuppressionOfAnnouncement OPTIONAL, gmsc-Address [8] ISDN-AddressString OPTIONAL, callReferenceNumber [9] CallReferenceNumber OPTIONAL, or-Interrogation [10] NULL OPTIONAL, extensionContainer [11] ExtensionContainer OPTIONAL, ... , alertingPattern [12] AlertingPattern OPTIONAL, ccbs-Call [13] NULL OPTIONAL, supportedCamelPhasesInInterrogatingNode [15] SupportedCamelPhases OPTIONAL, additionalSignalInfo [14] Ext-ExternalSignalInfo OPTIONAL, orNotSupportedInGMSC [16] NULL OPTIONAL, pre-pagingSupported [17] NULL OPTIONAL, longFTN-Supported [18] NULL OPTIONAL, suppress-VT-CSI [19] NULL OPTIONAL, offeredCamel4CSIsInInterrogatingNode [20] OfferedCamel4CSIs OPTIONAL, mtRoamingRetrySupported [21] NULL OPTIONAL, pagingArea [22] PagingArea OPTIONAL, callPriority [23] EMLPP-Priority OPTIONAL, mtrf-Indicator [24] NULL OPTIONAL, oldMSC-Number [25] ISDN-AddressString OPTIONAL, lastUsedLtePLMN-Id [26] PLMN-Id OPTIONAL } ProvideRoamingNumberRes ::= SEQUENCE { roamingNumber ISDN-AddressString, extensionContainer ExtensionContainer OPTIONAL, ..., releaseResourcesSupported NULL OPTIONAL, vmsc-Address ISDN-AddressString OPTIONAL } ResumeCallHandlingArg ::= SEQUENCE { callReferenceNumber [0] CallReferenceNumber OPTIONAL, basicServiceGroup [1] Ext-BasicServiceCode OPTIONAL, forwardingData [2] ForwardingData OPTIONAL, imsi [3] IMSI OPTIONAL, cug-CheckInfo [4] CUG-CheckInfo OPTIONAL, o-CSI [5] O-CSI OPTIONAL, extensionContainer [7] ExtensionContainer OPTIONAL, ccbs-Possible [8] NULL OPTIONAL, msisdn [9] ISDN-AddressString OPTIONAL, uu-Data [10] UU-Data OPTIONAL, allInformationSent [11] NULL OPTIONAL, ..., d-csi [12] D-CSI OPTIONAL, o-BcsmCamelTDPCriteriaList [13] O-BcsmCamelTDPCriteriaList OPTIONAL, basicServiceGroup2 [14] Ext-BasicServiceCode OPTIONAL, mtRoamingRetry [15] NULL OPTIONAL } UU-Data ::= SEQUENCE { uuIndicator [0] UUIndicator OPTIONAL, uui [1] UUI OPTIONAL, uusCFInteraction [2] NULL OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} UUIndicator ::= OCTET STRING (SIZE (1)) -- Octets are coded according to ETS 300 356 UUI ::= OCTET STRING (SIZE (1..131)) -- Octets are coded according to ETS 300 356 ResumeCallHandlingRes ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} CamelInfo ::= SEQUENCE { supportedCamelPhases SupportedCamelPhases, suppress-T-CSI NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... , offeredCamel4CSIs [0] OfferedCamel4CSIs OPTIONAL } ExtendedRoutingInfo ::= CHOICE { routingInfo RoutingInfo, camelRoutingInfo [8] CamelRoutingInfo} CamelRoutingInfo ::= SEQUENCE { forwardingData ForwardingData OPTIONAL, gmscCamelSubscriptionInfo [0] GmscCamelSubscriptionInfo, extensionContainer [1] ExtensionContainer OPTIONAL, ...} GmscCamelSubscriptionInfo ::= SEQUENCE { t-CSI [0] T-CSI OPTIONAL, o-CSI [1] O-CSI OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ..., o-BcsmCamelTDP-CriteriaList [3] O-BcsmCamelTDPCriteriaList OPTIONAL, t-BCSM-CAMEL-TDP-CriteriaList [4] T-BCSM-CAMEL-TDP-CriteriaList OPTIONAL, d-csi [5] D-CSI OPTIONAL} SetReportingStateArg ::= SEQUENCE { imsi [0] IMSI OPTIONAL, lmsi [1] LMSI OPTIONAL, ccbs-Monitoring [2] ReportingState OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} ReportingState ::= ENUMERATED { stopMonitoring (0), startMonitoring (1), ...} -- exception handling: -- reception of values 2-10 shall be mapped to 'stopMonitoring' -- reception of values > 10 shall be mapped to 'startMonitoring' SetReportingStateRes ::= SEQUENCE{ ccbs-SubscriberStatus [0] CCBS-SubscriberStatus OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ...} CCBS-SubscriberStatus ::= ENUMERATED { ccbsNotIdle (0), ccbsIdle (1), ccbsNotReachable (2), ...} -- exception handling: -- reception of values 3-10 shall be mapped to 'ccbsNotIdle' -- reception of values 11-20 shall be mapped to 'ccbsIdle' -- reception of values > 20 shall be mapped to 'ccbsNotReachable' StatusReportArg ::= SEQUENCE{ imsi [0] IMSI, eventReportData [1] EventReportData OPTIONAL, callReportdata [2] CallReportData OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} EventReportData ::= SEQUENCE{ ccbs-SubscriberStatus [0] CCBS-SubscriberStatus OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ...} CallReportData ::= SEQUENCE{ monitoringMode [0] MonitoringMode OPTIONAL, callOutcome [1] CallOutcome OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ...} MonitoringMode ::= ENUMERATED { a-side (0), b-side (1), ...} -- exception handling: -- reception of values 2-10 shall be mapped 'a-side' -- reception of values > 10 shall be mapped to 'b-side' CallOutcome ::= ENUMERATED { success (0), failure (1), busy (2), ...} -- exception handling: -- reception of values 3-10 shall be mapped to 'success' -- reception of values 11-20 shall be mapped to 'failure' -- reception of values > 20 shall be mapped to 'busy' StatusReportRes ::= SEQUENCE { extensionContainer [0] ExtensionContainer OPTIONAL, ...} RemoteUserFreeArg ::= SEQUENCE{ imsi [0] IMSI, callInfo [1] ExternalSignalInfo, ccbs-Feature [2] CCBS-Feature, translatedB-Number [3] ISDN-AddressString, replaceB-Number [4] NULL OPTIONAL, alertingPattern [5] AlertingPattern OPTIONAL, extensionContainer [6] ExtensionContainer OPTIONAL, ...} RemoteUserFreeRes ::= SEQUENCE{ ruf-Outcome [0] RUF-Outcome, extensionContainer [1] ExtensionContainer OPTIONAL, ...} RUF-Outcome ::= ENUMERATED{ accepted (0), rejected (1), noResponseFromFreeMS (2), -- T4 Expiry noResponseFromBusyMS (3), -- T10 Expiry udubFromFreeMS (4), udubFromBusyMS (5), ...} -- exception handling: -- reception of values 6-20 shall be mapped to 'accepted' -- reception of values 21-30 shall be mapped to 'rejected' -- reception of values 31-40 shall be mapped to 'noResponseFromFreeMS' -- reception of values 41-50 shall be mapped to 'noResponseFromBusyMS' -- reception of values 51-60 shall be mapped to 'udubFromFreeMS' -- reception of values > 60 shall be mapped to 'udubFromBusyMS' IST-AlertArg ::= SEQUENCE{ imsi [0] IMSI, extensionContainer [1] ExtensionContainer OPTIONAL, ...} IST-AlertRes ::= SEQUENCE{ istAlertTimer [0] IST-AlertTimerValue OPTIONAL, istInformationWithdraw [1] NULL OPTIONAL, callTerminationIndicator [2] CallTerminationIndicator OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} IST-CommandArg ::= SEQUENCE{ imsi [0] IMSI, extensionContainer [1] ExtensionContainer OPTIONAL, ...} IST-CommandRes ::= SEQUENCE{ extensionContainer ExtensionContainer OPTIONAL, ...} CallTerminationIndicator ::= ENUMERATED { terminateCallActivityReferred (0), terminateAllCallActivities (1), ...} -- exception handling: -- reception of values 2-10 shall be mapped to ' terminateCallActivityReferred ' -- reception of values > 10 shall be mapped to ' terminateAllCallActivities ' -- In MSCs not supporting linkage of all call activities, any value received shall -- be interpreted as ' terminateCallActivityReferred ' ReleaseResourcesArg ::= SEQUENCE{ msrn ISDN-AddressString, extensionContainer ExtensionContainer OPTIONAL, ...} ReleaseResourcesRes ::= SEQUENCE{ extensionContainer ExtensionContainer OPTIONAL, ...} END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-CommonDataTypes.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.8 Common data types MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS -- general data types and values AddressString, ISDN-AddressString, maxISDN-AddressLength, FTN-AddressString, ISDN-SubaddressString, ExternalSignalInfo, Ext-ExternalSignalInfo, AccessNetworkSignalInfo, SignalInfo, maxSignalInfoLength, AlertingPattern, TBCD-STRING, DiameterIdentity, Time, HLR-Id, -- data types for numbering and identification IMSI, TMSI, Identity, SubscriberId, IMEI, HLR-List, LMSI, GlobalCellId, NetworkResource, AdditionalNetworkResource, NAEA-PreferredCI, NAEA-CIC, ASCI-CallReference, SubscriberIdentity, PLMN-Id, E-UTRAN-CGI, NR-CGI, TA-Id, NR-TA-Id, RAIdentity, NetworkNodeDiameterAddress, -- data types for CAMEL CellGlobalIdOrServiceAreaIdOrLAI, CellGlobalIdOrServiceAreaIdFixedLength, LAIFixedLength, -- data types for subscriber management BasicServiceCode, Ext-BasicServiceCode, EMLPP-Info, EMLPP-Priority, MC-SS-Info, MaxMC-Bearers, MC-Bearers, Ext-SS-Status, -- data types for geographic location AgeOfLocationInformation, LCSClientExternalID, LCSClientInternalID, LCSServiceTypeID, -- WS added exports needed by gsm_map.asn (extra asn1 file to handle older protocol versions) ProtocolId, -- gprs location registration types GSN-Address ; IMPORTS TeleserviceCode, Ext-TeleserviceCode FROM MAP-TS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-TS-Code (19) version20 (20)} BearerServiceCode, Ext-BearerServiceCode FROM MAP-BS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-BS-Code (20) version20 (20)} SS-Code FROM MAP-SS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-Code (15) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} ; -- general data types TBCD-STRING ::= OCTET STRING -- This type (Telephony Binary Coded Decimal String) is used to -- represent several digits from 0 through 9, *, #, a, b, c, two -- digits per octet, each digit encoded 0000 to 1001 (0 to 9), -- 1010 (*), 1011 (#), 1100 (a), 1101 (b) or 1110 (c); 1111 used -- as filler when there is an odd number of digits. -- bits 8765 of octet n encoding digit 2n -- bits 4321 of octet n encoding digit 2(n-1) +1 DiameterIdentity ::= OCTET STRING (SIZE(9..255)) -- content of DiameterIdentity is defined in IETF RFC 3588 [139] AddressString ::= OCTET STRING (SIZE (1..maxAddressLength)) -- This type is used to represent a number for addressing -- purposes. It is composed of -- a) one octet for nature of address, and numbering plan -- indicator. -- b) digits of an address encoded as TBCD-String. -- a) The first octet includes a one bit extension indicator, a -- 3 bits nature of address indicator and a 4 bits numbering -- plan indicator, encoded as follows: -- bit 8: 1 (no extension) -- bits 765: nature of address indicator -- 000 unknown -- 001 international number -- 010 national significant number -- 011 network specific number -- 100 subscriber number -- 101 reserved -- 110 abbreviated number -- 111 reserved for extension -- bits 4321: numbering plan indicator -- 0000 unknown -- 0001 ISDN/Telephony Numbering Plan (Rec ITU-T E.164) -- 0010 spare -- 0011 data numbering plan (ITU-T Rec X.121) -- 0100 telex numbering plan (ITU-T Rec F.69) -- 0101 spare -- 0110 land mobile numbering plan (ITU-T Rec E.212) -- 0111 spare -- 1000 national numbering plan -- 1001 private numbering plan -- 1111 reserved for extension -- all other values are reserved. -- b) The following octets representing digits of an address -- encoded as a TBCD-STRING. maxAddressLength INTEGER ::= 20 ISDN-AddressString ::= AddressString (SIZE (1..maxISDN-AddressLength)) -- This type is used to represent ISDN numbers. maxISDN-AddressLength INTEGER ::= 9 FTN-AddressString ::= AddressString (SIZE (1..maxFTN-AddressLength)) -- This type is used to represent forwarded-to numbers. -- If NAI = international the first digits represent the country code (CC) -- and the network destination code (NDC) as for E.164. maxFTN-AddressLength INTEGER ::= 15 ISDN-SubaddressString ::= OCTET STRING (SIZE (1..maxISDN-SubaddressLength)) -- This type is used to represent ISDN subaddresses. -- It is composed of -- a) one octet for type of subaddress and odd/even indicator. -- b) 20 octets for subaddress information. -- a) The first octet includes a one bit extension indicator, a -- 3 bits type of subaddress and a one bit odd/even indicator, -- encoded as follows: -- bit 8: 1 (no extension) -- bits 765: type of subaddress -- 000 NSAP (X.213/ISO 8348 AD2) -- 010 User Specified -- All other values are reserved -- bit 4: odd/even indicator -- 0 even number of address signals -- 1 odd number of address signals -- The odd/even indicator is used when the type of subaddress -- is "user specified" and the coding is BCD. -- bits 321: 000 (unused) -- b) Subaddress information. -- The NSAP X.213/ISO8348AD2 address shall be formatted as specified -- by octet 4 which contains the Authority and Format Identifier -- (AFI). The encoding is made according to the "preferred binary -- encoding" as defined in X.213/ISO834AD2. For the definition -- of this type of subaddress, see ITU-T Rec I.334. -- For User-specific subaddress, this field is encoded according -- to the user specification, subject to a maximum length of 20 -- octets. When interworking with X.25 networks BCD coding should -- be applied. maxISDN-SubaddressLength INTEGER ::= 21 ExternalSignalInfo ::= SEQUENCE { protocolId ProtocolId, signalInfo SignalInfo, -- Information about the internal structure is given in -- clause 7.6.9. extensionContainer ExtensionContainer OPTIONAL, -- extensionContainer must not be used in version 2 ...} SignalInfo ::= OCTET STRING (SIZE (1..maxSignalInfoLength)) maxSignalInfoLength INTEGER ::= 200 -- This NamedValue represents the theoretical maximum number of octets which is -- available to carry a single instance of the SignalInfo data type, -- without requiring segmentation to cope with the network layer service. -- However, the actual maximum size available for an instance of the data -- type may be lower, especially when other information elements -- have to be included in the same component. ProtocolId ::= ENUMERATED { gsm-0408 (1), gsm-0806 (2), gsm-BSSMAP (3), -- Value 3 is reserved and must not be used ets-300102-1 (4)} Ext-ExternalSignalInfo ::= SEQUENCE { ext-ProtocolId Ext-ProtocolId, signalInfo SignalInfo, -- Information about the internal structure is given in -- clause 7.6.9.10 extensionContainer ExtensionContainer OPTIONAL, ...} Ext-ProtocolId ::= ENUMERATED { ets-300356 (1), ... } -- exception handling: -- For Ext-ExternalSignalInfo sequences containing this parameter with any -- other value than the ones listed the receiver shall ignore the whole -- Ext-ExternalSignalInfo sequence. AccessNetworkSignalInfo ::= SEQUENCE { accessNetworkProtocolId AccessNetworkProtocolId, signalInfo LongSignalInfo, -- Information about the internal structure is given in clause 7.6.9.1 extensionContainer ExtensionContainer OPTIONAL, ...} LongSignalInfo ::= OCTET STRING (SIZE (1..maxLongSignalInfoLength)) maxLongSignalInfoLength INTEGER ::= 2560 -- This Named Value represents the maximum number of octets which is available -- to carry a single instance of the LongSignalInfo data type using -- White Book SCCP with the maximum number of segments. -- It takes account of the octets used by the lower layers of the protocol, and -- other information elements which may be included in the same component. AccessNetworkProtocolId ::= ENUMERATED { ts3G-48006 (1), ts3G-25413 (2), ...} -- exception handling: -- For AccessNetworkSignalInfo sequences containing this parameter with any -- other value than the ones listed the receiver shall ignore the whole -- AccessNetworkSignalInfo sequence. AlertingPattern ::= OCTET STRING (SIZE (1) ) -- This type is used to represent Alerting Pattern -- bits 8765 : 0000 (unused) -- bits 43 : type of Pattern -- 00 level -- 01 category -- 10 category -- all other values are reserved. -- bits 21 : type of alerting alertingLevel-0 AlertingPattern ::= '00000000'B alertingLevel-1 AlertingPattern ::= '00000001'B alertingLevel-2 AlertingPattern ::= '00000010'B -- all other values of Alerting level are reserved -- Alerting Levels are defined in GSM 02.07 alertingCategory-1 AlertingPattern ::= '00000100'B alertingCategory-2 AlertingPattern ::= '00000101'B alertingCategory-3 AlertingPattern ::= '00000110'B alertingCategory-4 AlertingPattern ::= '00000111'B alertingCategory-5 AlertingPattern ::= '00001000'B -- all other values of Alerting Category are reserved -- Alerting categories are defined in GSM 02.07 GSN-Address ::= OCTET STRING (SIZE (5..17)) -- Octets are coded according to TS 3GPP TS 23.003 [17] Time ::= OCTET STRING (SIZE (4)) -- Octets are coded according to IETF RFC 3588 [139] -- data types for numbering and identification IMSI ::= TBCD-STRING (SIZE (3..8)) -- digits of MCC, MNC, MSIN are concatenated in this order. Identity ::= CHOICE { imsi IMSI, imsi-WithLMSI IMSI-WithLMSI} IMSI-WithLMSI ::= SEQUENCE { imsi IMSI, lmsi LMSI, -- a special value 00000000 indicates that the LMSI is not in use ...} ASCI-CallReference ::= TBCD-STRING (SIZE (1..8)) -- digits of VGCS/VBS-area,Group-ID are concatenated in this order if there is a -- VGCS/VBS-area. TMSI ::= OCTET STRING (SIZE (1..4)) SubscriberId ::= CHOICE { imsi [0] IMSI, tmsi [1] TMSI} IMEI ::= TBCD-STRING (SIZE (8)) -- Refers to International Mobile Station Equipment Identity -- and Software Version Number (SVN) defined in TS 3GPP TS 23.003 [17]. -- If the SVN is not present the last octet shall contain the -- digit 0 and a filler. -- If present the SVN shall be included in the last octet. HLR-Id ::= IMSI -- leading digits of IMSI, i.e. (MCC, MNC, leading digits of -- MSIN) forming HLR Id defined in TS 3GPP TS 23.003 [17]. HLR-List ::= SEQUENCE SIZE (1..maxNumOfHLR-Id) OF HLR-Id maxNumOfHLR-Id INTEGER ::= 50 LMSI ::= OCTET STRING (SIZE (4)) GlobalCellId ::= OCTET STRING (SIZE (5..7)) -- Refers to Cell Global Identification defined in TS 3GPP TS 23.003 [17]. -- The internal structure is defined as follows: -- octet 1 bits 4321 Mobile Country Code 1st digit -- bits 8765 Mobile Country Code 2nd digit -- octet 2 bits 4321 Mobile Country Code 3rd digit -- bits 8765 Mobile Network Code 3rd digit -- or filler (1111) for 2 digit MNCs -- octet 3 bits 4321 Mobile Network Code 1st digit -- bits 8765 Mobile Network Code 2nd digit -- octets 4 and 5 Location Area Code according to TS 3GPP TS 24.008 [35] -- octets 6 and 7 Cell Identity (CI) according to TS 3GPP TS 24.008 [35] NetworkResource ::= ENUMERATED { plmn (0), hlr (1), vlr (2), pvlr (3), controllingMSC (4), vmsc (5), eir (6), rss (7)} AdditionalNetworkResource ::= ENUMERATED { sgsn (0), ggsn (1), gmlc (2), gsmSCF (3), nplr (4), auc (5), ... , ue (6), mme (7)} -- if unknown value is received in AdditionalNetworkResource -- it shall be ignored. NAEA-PreferredCI ::= SEQUENCE { naea-PreferredCIC [0] NAEA-CIC, extensionContainer [1] ExtensionContainer OPTIONAL, ...} NAEA-CIC ::= OCTET STRING (SIZE (3)) -- The internal structure is defined by the Carrier Identification -- parameter in ANSI T1.113.3. Carrier codes between "000" and "999" may -- be encoded as 3 digits using "000" to "999" or as 4 digits using -- "0000" to "0999". Carrier codes between "1000" and "9999" are encoded -- using 4 digits. SubscriberIdentity ::= CHOICE { imsi [0] IMSI, msisdn [1] ISDN-AddressString } LCSClientExternalID ::= SEQUENCE { externalAddress [0] ISDN-AddressString OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ... } LCSClientInternalID ::= ENUMERATED { broadcastService (0), o-andM-HPLMN (1), o-andM-VPLMN (2), anonymousLocation (3), targetMSsubscribedService (4), ... } -- for a CAMEL phase 3 PLMN operator client, the value targetMSsubscribedService shall be used LCSServiceTypeID ::= INTEGER (0..127) -- the integer values 0-63 are reserved for Standard LCS service types -- the integer values 64-127 are reserved for Non Standard LCS service types -- Standard LCS Service Types emergencyServices LCSServiceTypeID ::= 0 emergencyAlertServices LCSServiceTypeID ::= 1 personTracking LCSServiceTypeID ::= 2 fleetManagement LCSServiceTypeID ::= 3 assetManagement LCSServiceTypeID ::= 4 trafficCongestionReporting LCSServiceTypeID ::= 5 roadsideAssistance LCSServiceTypeID ::= 6 routingToNearestCommercialEnterprise LCSServiceTypeID ::= 7 navigation LCSServiceTypeID ::= 8 --this service type is reserved for use in previous releases citySightseeing LCSServiceTypeID ::= 9 localizedAdvertising LCSServiceTypeID ::= 10 mobileYellowPages LCSServiceTypeID ::= 11 trafficAndPublicTransportationInfo LCSServiceTypeID ::= 12 weather LCSServiceTypeID ::= 13 assetAndServiceFinding LCSServiceTypeID ::= 14 gaming LCSServiceTypeID ::= 15 findYourFriend LCSServiceTypeID ::= 16 dating LCSServiceTypeID ::= 17 chatting LCSServiceTypeID ::= 18 routeFinding LCSServiceTypeID ::= 19 whereAmI LCSServiceTypeID ::= 20 -- The values of LCSServiceTypeID are defined according to 3GPP TS 22.071. -- Non Standard LCS Service Types serv64 LCSServiceTypeID ::= 64 serv65 LCSServiceTypeID ::= 65 serv66 LCSServiceTypeID ::= 66 serv67 LCSServiceTypeID ::= 67 serv68 LCSServiceTypeID ::= 68 serv69 LCSServiceTypeID ::= 69 serv70 LCSServiceTypeID ::= 70 serv71 LCSServiceTypeID ::= 71 serv72 LCSServiceTypeID ::= 72 serv73 LCSServiceTypeID ::= 73 serv74 LCSServiceTypeID ::= 74 serv75 LCSServiceTypeID ::= 75 serv76 LCSServiceTypeID ::= 76 serv77 LCSServiceTypeID ::= 77 serv78 LCSServiceTypeID ::= 78 serv79 LCSServiceTypeID ::= 79 serv80 LCSServiceTypeID ::= 80 serv81 LCSServiceTypeID ::= 81 serv82 LCSServiceTypeID ::= 82 serv83 LCSServiceTypeID ::= 83 serv84 LCSServiceTypeID ::= 84 serv85 LCSServiceTypeID ::= 85 serv86 LCSServiceTypeID ::= 86 serv87 LCSServiceTypeID ::= 87 serv88 LCSServiceTypeID ::= 88 serv89 LCSServiceTypeID ::= 89 serv90 LCSServiceTypeID ::= 90 serv91 LCSServiceTypeID ::= 91 serv92 LCSServiceTypeID ::= 92 serv93 LCSServiceTypeID ::= 93 serv94 LCSServiceTypeID ::= 94 serv95 LCSServiceTypeID ::= 95 serv96 LCSServiceTypeID ::= 96 serv97 LCSServiceTypeID ::= 97 serv98 LCSServiceTypeID ::= 98 serv99 LCSServiceTypeID ::= 99 serv100 LCSServiceTypeID ::= 100 serv101 LCSServiceTypeID ::= 101 serv102 LCSServiceTypeID ::= 102 serv103 LCSServiceTypeID ::= 103 serv104 LCSServiceTypeID ::= 104 serv105 LCSServiceTypeID ::= 105 serv106 LCSServiceTypeID ::= 106 serv107 LCSServiceTypeID ::= 107 serv108 LCSServiceTypeID ::= 108 serv109 LCSServiceTypeID ::= 109 serv110 LCSServiceTypeID ::= 110 serv111 LCSServiceTypeID ::= 111 serv112 LCSServiceTypeID ::= 112 serv113 LCSServiceTypeID ::= 113 serv114 LCSServiceTypeID ::= 114 serv115 LCSServiceTypeID ::= 115 serv116 LCSServiceTypeID ::= 116 serv117 LCSServiceTypeID ::= 117 serv118 LCSServiceTypeID ::= 118 serv119 LCSServiceTypeID ::= 119 serv120 LCSServiceTypeID ::= 120 serv121 LCSServiceTypeID ::= 121 serv122 LCSServiceTypeID ::= 122 serv123 LCSServiceTypeID ::= 123 serv124 LCSServiceTypeID ::= 124 serv125 LCSServiceTypeID ::= 125 serv126 LCSServiceTypeID ::= 126 serv127 LCSServiceTypeID ::= 127 PLMN-Id ::= OCTET STRING (SIZE (3)) -- The internal structure is defined as follows: -- octet 1 bits 4321 Mobile Country Code 1st digit -- bits 8765 Mobile Country Code 2nd digit -- octet 2 bits 4321 Mobile Country Code 3rd digit -- bits 8765 Mobile Network Code 3rd digit -- or filler (1111) for 2 digit MNCs -- octet 3 bits 4321 Mobile Network Code 1st digit -- bits 8765 Mobile Network Code 2nd digit E-UTRAN-CGI ::= OCTET STRING (SIZE (7)) -- Octets are coded as described in 3GPP TS 29.118 [152]. NR-CGI ::= OCTET STRING (SIZE (8)) -- Octets are coded as described in 3GPP TS 38.413 [153]. TA-Id ::= OCTET STRING (SIZE (5)) -- Octets are coded as described in 3GPP TS 29.118 [152]. NR-TA-Id ::= OCTET STRING (SIZE (6)) -- Octets are coded as described in 3GPP TS 38.413 [153]. RAIdentity ::= OCTET STRING (SIZE (6)) -- Routing Area Identity is coded in accordance with 3GPP TS 29.060 [105]. -- It shall contain the value part defined in 3GPP TS 29.060 only. I.e. the 3GPP TS 29.060 -- type identifier octet shall not be included. NetworkNodeDiameterAddress::= SEQUENCE { diameter-Name [0] DiameterIdentity, diameter-Realm [1] DiameterIdentity } -- data types for CAMEL CellGlobalIdOrServiceAreaIdOrLAI ::= CHOICE { cellGlobalIdOrServiceAreaIdFixedLength [0] CellGlobalIdOrServiceAreaIdFixedLength, laiFixedLength [1] LAIFixedLength} CellGlobalIdOrServiceAreaIdFixedLength ::= OCTET STRING (SIZE (7)) -- Refers to Cell Global Identification or Service Are Identification -- defined in 3GPP TS 23.003. -- The internal structure is defined as follows: -- octet 1 bits 4321 Mobile Country Code 1st digit -- bits 8765 Mobile Country Code 2nd digit -- octet 2 bits 4321 Mobile Country Code 3rd digit -- bits 8765 Mobile Network Code 3rd digit -- or filler (1111) for 2 digit MNCs -- octet 3 bits 4321 Mobile Network Code 1st digit -- bits 8765 Mobile Network Code 2nd digit -- octets 4 and 5 Location Area Code according to 3GPP TS 24.008 -- octets 6 and 7 Cell Identity (CI) value or -- Service Area Code (SAC) value -- according to 3GPP TS 23.003 LAIFixedLength ::= OCTET STRING (SIZE (5)) -- Refers to Location Area Identification defined in 3GPP TS 23.003 [17]. -- The internal structure is defined as follows: -- octet 1 bits 4321 Mobile Country Code 1st digit -- bits 8765 Mobile Country Code 2nd digit -- octet 2 bits 4321 Mobile Country Code 3rd digit -- bits 8765 Mobile Network Code 3rd digit -- or filler (1111) for 2 digit MNCs -- octet 3 bits 4321 Mobile Network Code 1st digit -- bits 8765 Mobile Network Code 2nd digit -- octets 4 and 5 Location Area Code according to 3GPP TS 24.008 [35] -- data types for subscriber management BasicServiceCode ::= CHOICE { bearerService [2] BearerServiceCode, teleservice [3] TeleserviceCode} Ext-BasicServiceCode ::= CHOICE { ext-BearerService [2] Ext-BearerServiceCode, ext-Teleservice [3] Ext-TeleserviceCode} EMLPP-Info ::= SEQUENCE { maximumentitledPriority EMLPP-Priority, defaultPriority EMLPP-Priority, extensionContainer ExtensionContainer OPTIONAL, ...} EMLPP-Priority ::= INTEGER (0..15) -- The mapping from the values A,B,0,1,2,3,4 to the integer-value is -- specified as follows where A is the highest and 4 is the lowest -- priority level -- the integer values 7-15 are spare and shall be mapped to value 4 priorityLevelA EMLPP-Priority ::= 6 priorityLevelB EMLPP-Priority ::= 5 priorityLevel0 EMLPP-Priority ::= 0 priorityLevel1 EMLPP-Priority ::= 1 priorityLevel2 EMLPP-Priority ::= 2 priorityLevel3 EMLPP-Priority ::= 3 priorityLevel4 EMLPP-Priority ::= 4 MC-SS-Info ::= SEQUENCE { ss-Code [0] SS-Code, ss-Status [1] Ext-SS-Status, nbrSB [2] MaxMC-Bearers, nbrUser [3] MC-Bearers, extensionContainer [4] ExtensionContainer OPTIONAL, ...} MaxMC-Bearers ::= INTEGER (2..maxNumOfMC-Bearers) MC-Bearers ::= INTEGER (1..maxNumOfMC-Bearers) maxNumOfMC-Bearers INTEGER ::= 7 Ext-SS-Status ::= OCTET STRING (SIZE (1..5)) -- OCTET 1: -- -- bits 8765: 0000 (unused) -- bits 4321: Used to convey the "P bit","R bit","A bit" and "Q bit", -- representing supplementary service state information -- as defined in TS 3GPP TS 23.011 [22] -- bit 4: "Q bit" -- bit 3: "P bit" -- bit 2: "R bit" -- bit 1: "A bit" -- OCTETS 2-5: reserved for future use. They shall be discarded if -- received and not understood. -- data types for geographic location AgeOfLocationInformation ::= INTEGER (0..32767) -- the value represents the elapsed time in minutes since the last -- network contact of the mobile station (i.e. the actuality of the -- location information). -- value "0" indicates that the MS is currently in contact with the -- network -- value "32767" indicates that the location information is at least -- 32767 minutes old END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-DialogueInformation.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.4 MAP Dialogue Information MAP-DialogueInformation { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-DialogueInformation (3) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS map-DialogueAS, MAP-DialoguePDU ; IMPORTS gsm-NetworkId, as-Id FROM MobileDomainDefinitions { itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) mobileDomainDefinitions (0) version1 (1)} AddressString FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network(1) modules (3) map-CommonDataTypes (18) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} ; -- abstract syntax name for MAP-DialoguePDU map-DialogueAS OBJECT IDENTIFIER ::= {gsm-NetworkId as-Id map-DialoguePDU (1) version1 (1)} MAP-DialoguePDU ::= CHOICE { map-open [0] MAP-OpenInfo, map-accept [1] MAP-AcceptInfo, map-close [2] MAP-CloseInfo, map-refuse [3] MAP-RefuseInfo, map-userAbort [4] MAP-UserAbortInfo, map-providerAbort [5] MAP-ProviderAbortInfo} MAP-OpenInfo ::= SEQUENCE { destinationReference [0] AddressString OPTIONAL, originationReference [1] AddressString OPTIONAL, ..., extensionContainer ExtensionContainer OPTIONAL -- extensionContainer must not be used in version 2 } MAP-AcceptInfo ::= SEQUENCE { ..., extensionContainer ExtensionContainer OPTIONAL -- extensionContainer must not be used in version 2 } MAP-CloseInfo ::= SEQUENCE { ..., extensionContainer ExtensionContainer OPTIONAL -- extensionContainer must not be used in version 2 } MAP-RefuseInfo ::= SEQUENCE { reason Reason, ..., extensionContainer ExtensionContainer OPTIONAL, -- extensionContainer must not be used in version 2 alternativeApplicationContext OBJECT IDENTIFIER OPTIONAL -- alternativeApplicationContext must not be used in version 2 } Reason ::= ENUMERATED { noReasonGiven (0), invalidDestinationReference (1), invalidOriginatingReference (2)} MAP-UserAbortInfo ::= SEQUENCE { map-UserAbortChoice MAP-UserAbortChoice, ..., extensionContainer ExtensionContainer OPTIONAL -- extensionContainer must not be used in version 2 } MAP-UserAbortChoice ::= CHOICE { userSpecificReason [0] NULL, userResourceLimitation [1] NULL, resourceUnavailable [2] ResourceUnavailableReason, applicationProcedureCancellation [3] ProcedureCancellationReason} ResourceUnavailableReason ::= ENUMERATED { shortTermResourceLimitation (0), longTermResourceLimitation (1)} ProcedureCancellationReason ::= ENUMERATED { handoverCancellation (0), radioChannelRelease (1), networkPathRelease (2), callRelease (3), associatedProcedureFailure (4), tandemDialogueRelease (5), remoteOperationsFailure (6)} MAP-ProviderAbortInfo ::= SEQUENCE { map-ProviderAbortReason MAP-ProviderAbortReason, ..., extensionContainer ExtensionContainer OPTIONAL -- extensionContainer must not be used in version 2 } MAP-ProviderAbortReason ::= ENUMERATED { abnormalDialogue (0), invalidPDU (1)} END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-ER-DataTypes.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.7 Error data types MAP-ER-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ER-DataTypes (17) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS RoamingNotAllowedParam, CallBarredParam, CUG-RejectParam, SS-IncompatibilityCause, PW-RegistrationFailureCause, SM-DeliveryFailureCause, SystemFailureParam, DataMissingParam, UnexpectedDataParam, FacilityNotSupParam, OR-NotAllowedParam, UnknownSubscriberParam, NumberChangedParam, UnidentifiedSubParam, IllegalSubscriberParam, IllegalEquipmentParam, BearerServNotProvParam, TeleservNotProvParam, TracingBufferFullParam, NoRoamingNbParam, AbsentSubscriberParam, BusySubscriberParam, NoSubscriberReplyParam, ForwardingViolationParam, ForwardingFailedParam, ATI-NotAllowedParam, SubBusyForMT-SMS-Param, MessageWaitListFullParam, AbsentSubscriberSM-Param, AbsentSubscriberDiagnosticSM, ResourceLimitationParam, NoGroupCallNbParam, IncompatibleTerminalParam, ShortTermDenialParam, LongTermDenialParam, UnauthorizedRequestingNetwork-Param, UnauthorizedLCSClient-Param, PositionMethodFailure-Param, UnknownOrUnreachableLCSClient-Param, MM-EventNotSupported-Param, ATSI-NotAllowedParam, ATM-NotAllowedParam, IllegalSS-OperationParam, SS-NotAvailableParam, SS-SubscriptionViolationParam, InformationNotAvailableParam, TargetCellOutsideGCA-Param, OngoingGroupCallParam, PositionMethodFailure-Diagnostic, UnauthorizedLCSClient-Diagnostic ; IMPORTS SS-Status FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version20 (20)} SignalInfo, BasicServiceCode, NetworkResource, AdditionalNetworkResource, IMSI, Time FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} SS-Code FROM MAP-SS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-Code (15) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} ; RoamingNotAllowedParam ::= SEQUENCE { roamingNotAllowedCause RoamingNotAllowedCause, extensionContainer ExtensionContainer OPTIONAL, ..., additionalRoamingNotAllowedCause [0] AdditionalRoamingNotAllowedCause OPTIONAL } -- if the additionalRoamingNotallowedCause is received by the MSC/VLR or SGSN then the -- roamingNotAllowedCause shall be discarded. AdditionalRoamingNotAllowedCause ::= ENUMERATED { supportedRAT-TypesNotAllowed (0), ...} RoamingNotAllowedCause ::= ENUMERATED { plmnRoamingNotAllowed (0), operatorDeterminedBarring (3)} CallBarredParam ::= CHOICE { callBarringCause CallBarringCause, -- call BarringCause must not be used in version 3 and higher extensibleCallBarredParam ExtensibleCallBarredParam -- extensibleCallBarredParam must not be used in version <3 } CallBarringCause ::= ENUMERATED { barringServiceActive (0), operatorBarring (1)} ExtensibleCallBarredParam ::= SEQUENCE { callBarringCause CallBarringCause OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... , unauthorisedMessageOriginator [1] NULL OPTIONAL, anonymousCallRejection [2] NULL OPTIONAL } -- unauthorisedMessageOriginator and anonymousCallRejection shall be mutually exclusive. CUG-RejectParam ::= SEQUENCE { cug-RejectCause CUG-RejectCause OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} CUG-RejectCause ::= ENUMERATED { incomingCallsBarredWithinCUG (0), subscriberNotMemberOfCUG (1), requestedBasicServiceViolatesCUG-Constraints (5), calledPartySS-InteractionViolation (7)} SS-IncompatibilityCause ::= SEQUENCE { ss-Code [1] SS-Code OPTIONAL, basicService BasicServiceCode OPTIONAL, ss-Status [4] SS-Status OPTIONAL, ...} PW-RegistrationFailureCause ::= ENUMERATED { undetermined (0), invalidFormat (1), newPasswordsMismatch (2)} SM-EnumeratedDeliveryFailureCause ::= ENUMERATED { memoryCapacityExceeded (0), equipmentProtocolError (1), equipmentNotSM-Equipped (2), unknownServiceCentre (3), sc-Congestion (4), invalidSME-Address (5), subscriberNotSC-Subscriber (6)} SM-DeliveryFailureCause ::= SEQUENCE { sm-EnumeratedDeliveryFailureCause SM-EnumeratedDeliveryFailureCause, diagnosticInfo SignalInfo OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} AbsentSubscriberSM-Param ::= SEQUENCE { absentSubscriberDiagnosticSM AbsentSubscriberDiagnosticSM OPTIONAL, -- AbsentSubscriberDiagnosticSM can be either for non-GPRS -- or for GPRS extensionContainer ExtensionContainer OPTIONAL, ..., additionalAbsentSubscriberDiagnosticSM [0] AbsentSubscriberDiagnosticSM OPTIONAL, -- if received, additionalAbsentSubscriberDiagnosticSM -- is for GPRS and absentSubscriberDiagnosticSM is -- for non-GPRS imsi [1] IMSI OPTIONAL, -- when sent from HLR to IP-SM-GW, IMSI shall be present if UNRI is not set -- to indicate that the absent condition is met for CS and PS but not for IMS. requestedRetransmissionTime [2] Time OPTIONAL, userIdentifierAlert [3] IMSI OPTIONAL } AbsentSubscriberDiagnosticSM ::= INTEGER (0..255) -- AbsentSubscriberDiagnosticSM values are defined in 3GPP TS 23.040 SystemFailureParam ::= CHOICE { networkResource NetworkResource, -- networkResource must not be used in version 3 extensibleSystemFailureParam ExtensibleSystemFailureParam -- extensibleSystemFailureParam must not be used in version <3 } ExtensibleSystemFailureParam ::= SEQUENCE { networkResource NetworkResource OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., additionalNetworkResource [0] AdditionalNetworkResource OPTIONAL, failureCauseParam [1] FailureCauseParam OPTIONAL } FailureCauseParam ::= ENUMERATED { limitReachedOnNumberOfConcurrentLocationRequests (0), ... } -- if unknown value is received in FailureCauseParam it shall be ignored DataMissingParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} UnexpectedDataParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ..., unexpectedSubscriber [0] NULL OPTIONAL} -- the unexpectedSubscriber indication in the unexpectedDataValue error shall not be used -- for operations that allow the unidentifiedSubscriber error. FacilityNotSupParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ..., shapeOfLocationEstimateNotSupported [0] NULL OPTIONAL, neededLcsCapabilityNotSupportedInServingNode [1] NULL OPTIONAL } OR-NotAllowedParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} UnknownSubscriberParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ..., unknownSubscriberDiagnostic UnknownSubscriberDiagnostic OPTIONAL} UnknownSubscriberDiagnostic ::= ENUMERATED { imsiUnknown (0), gprs-eps-SubscriptionUnknown (1), ..., npdbMismatch (2)} -- if unknown values are received in -- UnknownSubscriberDiagnostic they shall be discarded NumberChangedParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} UnidentifiedSubParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} IllegalSubscriberParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} IllegalEquipmentParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} BearerServNotProvParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} TeleservNotProvParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} TracingBufferFullParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} NoRoamingNbParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} AbsentSubscriberParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ..., absentSubscriberReason [0] AbsentSubscriberReason OPTIONAL} AbsentSubscriberReason ::= ENUMERATED { imsiDetach (0), restrictedArea (1), noPageResponse (2), ... , purgedMS (3), mtRoamingRetry (4), busySubscriber (5)} -- exception handling: at reception of other values than the ones listed the -- AbsentSubscriberReason shall be ignored. -- The AbsentSubscriberReason: purgedMS is defined for the Super-Charger feature -- (see TS 23.116). If this value is received in a Provide Roaming Number response -- it shall be mapped to the AbsentSubscriberReason: imsiDetach in the Send Routeing -- Information response -- The AbsentSubscriberReason: mtRoamingRetry is used during MT Roaming Retry, -- see 3GPP TS 23.018[97]. -- The AbsentSubscriberReason: busySubscriber is used during MT Roaming Forwarding, -- see 3GPP TS 23.018[97]. BusySubscriberParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ..., ccbs-Possible [0] NULL OPTIONAL, ccbs-Busy [1] NULL OPTIONAL} NoSubscriberReplyParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} ForwardingViolationParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} ForwardingFailedParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} ATI-NotAllowedParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} ATSI-NotAllowedParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} ATM-NotAllowedParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} IllegalSS-OperationParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} SS-NotAvailableParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} SS-SubscriptionViolationParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} InformationNotAvailableParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} SubBusyForMT-SMS-Param ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ... , gprsConnectionSuspended NULL OPTIONAL } -- If GprsConnectionSuspended is not understood it shall -- be discarded MessageWaitListFullParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} ResourceLimitationParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} NoGroupCallNbParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} IncompatibleTerminalParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} ShortTermDenialParam ::= SEQUENCE { ...} LongTermDenialParam ::= SEQUENCE { ...} UnauthorizedRequestingNetwork-Param ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} UnauthorizedLCSClient-Param ::= SEQUENCE { unauthorizedLCSClient-Diagnostic [0] UnauthorizedLCSClient-Diagnostic OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ... } UnauthorizedLCSClient-Diagnostic ::= ENUMERATED { noAdditionalInformation (0), clientNotInMSPrivacyExceptionList (1), callToClientNotSetup (2), privacyOverrideNotApplicable (3), disallowedByLocalRegulatoryRequirements (4), ..., unauthorizedPrivacyClass (5), unauthorizedCallSessionUnrelatedExternalClient (6), unauthorizedCallSessionRelatedExternalClient (7) } -- exception handling: -- any unrecognized value shall be ignored PositionMethodFailure-Param ::= SEQUENCE { positionMethodFailure-Diagnostic [0] PositionMethodFailure-Diagnostic OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ... } PositionMethodFailure-Diagnostic ::= ENUMERATED { congestion (0), insufficientResources (1), insufficientMeasurementData (2), inconsistentMeasurementData (3), locationProcedureNotCompleted (4), locationProcedureNotSupportedByTargetMS (5), qoSNotAttainable (6), positionMethodNotAvailableInNetwork (7), positionMethodNotAvailableInLocationArea (8), ... } -- exception handling: -- any unrecognized value shall be ignored UnknownOrUnreachableLCSClient-Param ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} MM-EventNotSupported-Param ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} TargetCellOutsideGCA-Param ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} OngoingGroupCallParam ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-Errors.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.6.6 Errors MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version20 (20)} DEFINITIONS ::= BEGIN EXPORTS -- generic errors systemFailure, dataMissing, unexpectedDataValue, facilityNotSupported, incompatibleTerminal, resourceLimitation, -- identification and numbering errors unknownSubscriber, numberChanged, unknownMSC, unidentifiedSubscriber, unknownEquipment, -- subscription errors roamingNotAllowed, illegalSubscriber, illegalEquipment, bearerServiceNotProvisioned, teleserviceNotProvisioned, -- handover errors noHandoverNumberAvailable, subsequentHandoverFailure, targetCellOutsideGroupCallArea, -- operation and maintenance errors tracingBufferFull, -- call handling errors or-NotAllowed, noRoamingNumberAvailable, busySubscriber, noSubscriberReply, absentSubscriber, callBarred, forwardingViolation, forwardingFailed, cug-Reject, -- any time interrogation errors ati-NotAllowed, -- any time information handling errors atsi-NotAllowed, atm-NotAllowed, informationNotAvailable, -- supplementary service errors illegalSS-Operation, ss-ErrorStatus, ss-NotAvailable, ss-SubscriptionViolation, ss-Incompatibility, unknownAlphabet, ussd-Busy, pw-RegistrationFailure, negativePW-Check, numberOfPW-AttemptsViolation, shortTermDenial, longTermDenial, -- short message service errors subscriberBusyForMT-SMS, sm-DeliveryFailure, messageWaitingListFull, absentSubscriberSM, -- Group Call errors noGroupCallNumberAvailable, ongoingGroupCall, -- location service errors unauthorizedRequestingNetwork, unauthorizedLCSClient, positionMethodFailure, unknownOrUnreachableLCSClient, -- Mobility Management errors mm-EventNotSupported ; IMPORTS ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0) } SS-Status FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version20 (20)} SS-IncompatibilityCause, PW-RegistrationFailureCause, SM-DeliveryFailureCause, SystemFailureParam, DataMissingParam, UnexpectedDataParam, FacilityNotSupParam, UnknownSubscriberParam, NumberChangedParam, UnidentifiedSubParam, RoamingNotAllowedParam, IllegalSubscriberParam, IllegalEquipmentParam, BearerServNotProvParam, TeleservNotProvParam, TracingBufferFullParam, NoRoamingNbParam, OR-NotAllowedParam, AbsentSubscriberParam, BusySubscriberParam, NoSubscriberReplyParam, CallBarredParam, ForwardingViolationParam, ForwardingFailedParam, CUG-RejectParam, ATI-NotAllowedParam, SubBusyForMT-SMS-Param, MessageWaitListFullParam, AbsentSubscriberSM-Param, ResourceLimitationParam, NoGroupCallNbParam, IncompatibleTerminalParam, ShortTermDenialParam, LongTermDenialParam, UnauthorizedRequestingNetwork-Param, UnauthorizedLCSClient-Param, PositionMethodFailure-Param, UnknownOrUnreachableLCSClient-Param, MM-EventNotSupported-Param, ATSI-NotAllowedParam, ATM-NotAllowedParam, IllegalSS-OperationParam, SS-NotAvailableParam, SS-SubscriptionViolationParam, InformationNotAvailableParam, TargetCellOutsideGCA-Param, OngoingGroupCallParam FROM MAP-ER-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ER-DataTypes (17) version20 (20)} ; -- generic errors systemFailure ERROR ::= { PARAMETER SystemFailureParam -- optional CODE local:34 } dataMissing ERROR ::= { PARAMETER DataMissingParam -- optional -- DataMissingParam must not be used in version <3 CODE local:35 } unexpectedDataValue ERROR ::= { PARAMETER UnexpectedDataParam -- optional -- UnexpectedDataParam must not be used in version <3 CODE local:36 } facilityNotSupported ERROR ::= { PARAMETER FacilityNotSupParam -- optional -- FacilityNotSupParam must not be used in version <3 CODE local:21 } incompatibleTerminal ERROR ::= { PARAMETER IncompatibleTerminalParam -- optional CODE local:28 } resourceLimitation ERROR ::= { PARAMETER ResourceLimitationParam -- optional CODE local:51 } -- identification and numbering errors unknownSubscriber ERROR ::= { PARAMETER UnknownSubscriberParam -- optional -- UnknownSubscriberParam must not be used in version <3 CODE local:1 } numberChanged ERROR ::= { PARAMETER NumberChangedParam -- optional CODE local:44 } unknownMSC ERROR ::= { CODE local:3 } unidentifiedSubscriber ERROR ::= { PARAMETER UnidentifiedSubParam -- optional -- UunidentifiedSubParam must not be used in version <3 CODE local:5 } unknownEquipment ERROR ::= { CODE local:7 } -- subscription errors roamingNotAllowed ERROR ::= { PARAMETER RoamingNotAllowedParam CODE local:8 } illegalSubscriber ERROR ::= { PARAMETER IllegalSubscriberParam -- optional -- IllegalSubscriberParam must not be used in version <3 CODE local:9 } illegalEquipment ERROR ::= { PARAMETER IllegalEquipmentParam -- optional -- IllegalEquipmentParam must not be used in version <3 CODE local:12 } bearerServiceNotProvisioned ERROR ::= { PARAMETER BearerServNotProvParam -- optional -- BearerServNotProvParam must not be used in version <3 CODE local:10 } teleserviceNotProvisioned ERROR ::= { PARAMETER TeleservNotProvParam -- optional -- TeleservNotProvParam must not be used in version <3 CODE local:11 } -- handover errors noHandoverNumberAvailable ERROR ::= { CODE local:25 } subsequentHandoverFailure ERROR ::= { CODE local:26 } targetCellOutsideGroupCallArea ERROR ::= { PARAMETER TargetCellOutsideGCA-Param -- optional CODE local:42 } -- operation and maintenance errors tracingBufferFull ERROR ::= { PARAMETER TracingBufferFullParam -- optional CODE local: 40 } -- call handling errors noRoamingNumberAvailable ERROR ::= { PARAMETER NoRoamingNbParam -- optional CODE local:39 } absentSubscriber ERROR ::= { PARAMETER AbsentSubscriberParam -- optional -- AbsentSubscriberParam must not be used in version <3 CODE local:27 } busySubscriber ERROR ::= { PARAMETER BusySubscriberParam -- optional CODE local:45 } noSubscriberReply ERROR ::= { PARAMETER NoSubscriberReplyParam -- optional CODE local:46 } callBarred ERROR ::= { PARAMETER CallBarredParam -- optional CODE local:13 } forwardingViolation ERROR ::= { PARAMETER ForwardingViolationParam -- optional CODE local:14 } forwardingFailed ERROR ::= { PARAMETER ForwardingFailedParam -- optional CODE local:47 } cug-Reject ERROR ::= { PARAMETER CUG-RejectParam -- optional CODE local:15 } or-NotAllowed ERROR ::= { PARAMETER OR-NotAllowedParam -- optional CODE local:48 } -- any time interrogation errors ati-NotAllowed ERROR ::= { PARAMETER ATI-NotAllowedParam -- optional CODE local:49 } -- any time information handling errors atsi-NotAllowed ERROR ::= { PARAMETER ATSI-NotAllowedParam -- optional CODE local:60 } atm-NotAllowed ERROR ::= { PARAMETER ATM-NotAllowedParam -- optional CODE local:61 } informationNotAvailable ERROR ::= { PARAMETER InformationNotAvailableParam -- optional CODE local:62 } -- supplementary service errors illegalSS-Operation ERROR ::= { PARAMETER IllegalSS-OperationParam -- optional -- IllegalSS-OperationParam must not be used in version <3 CODE local:16 } ss-ErrorStatus ERROR ::= { PARAMETER SS-Status -- optional CODE local:17 } ss-NotAvailable ERROR ::= { PARAMETER SS-NotAvailableParam -- optional -- SS-NotAvailableParam must not be used in version <3 CODE local:18 } ss-SubscriptionViolation ERROR ::= { PARAMETER SS-SubscriptionViolationParam -- optional -- SS-SubscriptionViolationParam must not be used in version <3 CODE local:19 } ss-Incompatibility ERROR ::= { PARAMETER SS-IncompatibilityCause -- optional CODE local:20 } unknownAlphabet ERROR ::= { CODE local:71 } ussd-Busy ERROR ::= { CODE local:72 } pw-RegistrationFailure ERROR ::= { PARAMETER PW-RegistrationFailureCause CODE local:37 } negativePW-Check ERROR ::= { CODE local:38 } numberOfPW-AttemptsViolation ERROR ::= { CODE local:43 } shortTermDenial ERROR ::= { PARAMETER ShortTermDenialParam -- optional CODE local:29 } longTermDenial ERROR ::= { PARAMETER LongTermDenialParam -- optional CODE local:30 } -- short message service errors subscriberBusyForMT-SMS ERROR ::= { PARAMETER SubBusyForMT-SMS-Param -- optional CODE local:31 } sm-DeliveryFailure ERROR ::= { PARAMETER SM-DeliveryFailureCause CODE local:32 } messageWaitingListFull ERROR ::= { PARAMETER MessageWaitListFullParam -- optional CODE local:33 } absentSubscriberSM ERROR ::= { PARAMETER AbsentSubscriberSM-Param -- optional CODE local:6 } -- Group Call errors noGroupCallNumberAvailable ERROR ::= { PARAMETER NoGroupCallNbParam -- optional CODE local:50 } ongoingGroupCall ERROR ::= { PARAMETER OngoingGroupCallParam -- optional CODE local:22 } -- location service errors unauthorizedRequestingNetwork ERROR ::= { PARAMETER UnauthorizedRequestingNetwork-Param -- optional CODE local:52 } unauthorizedLCSClient ERROR ::= { PARAMETER UnauthorizedLCSClient-Param -- optional CODE local:53 } positionMethodFailure ERROR ::= { PARAMETER PositionMethodFailure-Param -- optional CODE local:54 } unknownOrUnreachableLCSClient ERROR ::= { PARAMETER UnknownOrUnreachableLCSClient-Param -- optional CODE local:58 } mm-EventNotSupported ERROR ::= { PARAMETER MM-EventNotSupported-Param -- optional CODE local:59 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-ExtensionDataTypes.asn
-- MAP-ExtensionDataTypes.asn -- -- Taken from 3GPP TS 29.002 V17.1.0 (2021-06) -- -- 17.7.11 Extension data types -- MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS PrivateExtension, ExtensionContainer, SLR-ArgExtensionContainer; -- IOC for private MAP extensions MAP-EXTENSION ::= CLASS { &ExtensionType OPTIONAL, &extensionId OBJECT IDENTIFIER } -- The length of the Object Identifier shall not exceed 16 octets and the -- number of components of the Object Identifier shall not exceed 16 -- data types ExtensionContainer ::= SEQUENCE { privateExtensionList [0]PrivateExtensionList OPTIONAL, pcs-Extensions [1]PCS-Extensions OPTIONAL, ...} SLR-ArgExtensionContainer ::= SEQUENCE { privateExtensionList [0]PrivateExtensionList OPTIONAL, slr-Arg-PCS-Extensions [1]SLR-Arg-PCS-Extensions OPTIONAL, ...} PrivateExtensionList ::= SEQUENCE SIZE (1..maxNumOfPrivateExtensions) OF PrivateExtension PrivateExtension ::= SEQUENCE { extId MAP-EXTENSION.&extensionId ({ExtensionSet}), extType MAP-EXTENSION.&ExtensionType ({ExtensionSet}{@extId}) OPTIONAL} maxNumOfPrivateExtensions INTEGER ::= 10 ExtensionSet MAP-EXTENSION ::= {... -- ExtensionSet is the set of all defined private extensions } -- Unsupported private extensions shall be discarded if received. PCS-Extensions ::= SEQUENCE { ...} SLR-Arg-PCS-Extensions ::= SEQUENCE { ..., na-ESRK-Request [0] NULL OPTIONAL } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-GR-DataTypes.asn
-- Taken from 3GPP TS 29.002 V17.1.0 (2021-06) -- --17.7.12 Group Call data types MAP-GR-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-GR-DataTypes (23) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS PrepareGroupCallArg, PrepareGroupCallRes, SendGroupCallEndSignalArg, SendGroupCallEndSignalRes, ForwardGroupCallSignallingArg, ProcessGroupCallSignallingArg, SendGroupCallInfoArg, SendGroupCallInfoRes ; IMPORTS ISDN-AddressString, IMSI, TMSI, EMLPP-Priority, ASCI-CallReference, SignalInfo, GlobalCellId, AccessNetworkSignalInfo FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} Ext-TeleserviceCode FROM MAP-TS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-TS-Code (19) version20 (20)} Kc, AdditionalInfo, GroupId, Long-GroupId, AdditionalSubscriptions, Cksn FROM MAP-MS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MS-DataTypes (11) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} ; PrepareGroupCallArg ::= SEQUENCE { teleservice Ext-TeleserviceCode, asciCallReference ASCI-CallReference, codec-Info CODEC-Info, cipheringAlgorithm CipheringAlgorithm, groupKeyNumber-Vk-Id [0] GroupKeyNumber OPTIONAL, groupKey [1] Kc OPTIONAL, -- this parameter shall not be sent and shall be discarded if received priority [2] EMLPP-Priority OPTIONAL, uplinkFree [3] NULL OPTIONAL, extensionContainer [4] ExtensionContainer OPTIONAL, ..., vstk [5] VSTK OPTIONAL, vstk-rand [6] VSTK-RAND OPTIONAL, talkerChannelParameter [7] NULL OPTIONAL, uplinkReplyIndicator [8] NULL OPTIONAL} VSTK ::= OCTET STRING (SIZE (16)) VSTK-RAND ::= OCTET STRING (SIZE (5)) -- The 36 bit value is carried in bit 7 of octet 1 to bit 4 of octet 5 -- bits 3, 2, 1, and 0 of octet 5 are padded with zeros. PrepareGroupCallRes ::= SEQUENCE { groupCallNumber ISDN-AddressString, extensionContainer ExtensionContainer OPTIONAL, ...} SendGroupCallEndSignalArg ::= SEQUENCE { imsi IMSI OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., talkerPriority [0]TalkerPriority OPTIONAL, additionalInfo [1]AdditionalInfo OPTIONAL } TalkerPriority ::= ENUMERATED { normal (0), privileged (1), emergency (2)} SendGroupCallEndSignalRes ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} ForwardGroupCallSignallingArg ::= SEQUENCE { imsi IMSI OPTIONAL, uplinkRequestAck [0] NULL OPTIONAL, uplinkReleaseIndication [1] NULL OPTIONAL, uplinkRejectCommand [2] NULL OPTIONAL, uplinkSeizedCommand [3] NULL OPTIONAL, uplinkReleaseCommand [4] NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., stateAttributes [5] StateAttributes OPTIONAL, talkerPriority [6] TalkerPriority OPTIONAL, additionalInfo [7] AdditionalInfo OPTIONAL, emergencyModeResetCommandFlag [8] NULL OPTIONAL, sm-RP-UI [9] SignalInfo OPTIONAL, an-APDU [10] AccessNetworkSignalInfo OPTIONAL } ProcessGroupCallSignallingArg ::= SEQUENCE { uplinkRequest [0] NULL OPTIONAL, uplinkReleaseIndication [1] NULL OPTIONAL, releaseGroupCall [2] NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., talkerPriority [3] TalkerPriority OPTIONAL, additionalInfo [4] AdditionalInfo OPTIONAL, emergencyModeResetCommandFlag [5] NULL OPTIONAL, an-APDU [6] AccessNetworkSignalInfo OPTIONAL } GroupKeyNumber ::= INTEGER (0..15) CODEC-Info ::= OCTET STRING (SIZE (5..10)) -- Refers to channel type -- coded according to 3GPP TS 48.008 [49] and including Element identifier and Length CipheringAlgorithm ::= OCTET STRING (SIZE (1)) -- Refers to 'permitted algorithms' in 'encryption information' -- coded according to 3GPP TS 48.008 [49]: -- Bits 8-1 -- 8765 4321 -- 0000 0001 No encryption -- 0000 0010 GSM A5/1 -- 0000 0100 GSM A5/2 -- 0000 1000 GSM A5/3 -- 0001 0000 GSM A5/4 -- 0010 0000 GSM A5/5 -- 0100 0000 GSM A5/6 -- 1000 0000 GSM A5/7 StateAttributes ::= SEQUENCE { downlinkAttached [5] NULL OPTIONAL, uplinkAttached [6] NULL OPTIONAL, dualCommunication [7] NULL OPTIONAL, callOriginator [8] NULL OPTIONAL } -- Refers to 3GPP TS 44.068 for definitions of StateAttributes fields. SendGroupCallInfoArg ::= SEQUENCE { requestedInfo RequestedInfo, groupId Long-GroupId, teleservice Ext-TeleserviceCode, cellId [0] GlobalCellId OPTIONAL, imsi [1] IMSI OPTIONAL, tmsi [2] TMSI OPTIONAL, additionalInfo [3] AdditionalInfo OPTIONAL, talkerPriority [4] TalkerPriority OPTIONAL, cksn [5] Cksn OPTIONAL, extensionContainer [6] ExtensionContainer OPTIONAL, ... } RequestedInfo ::= ENUMERATED { anchorMSC-AddressAndASCI-CallReference (0), imsiAndAdditionalInfoAndAdditionalSubscription (1), ... } -- exception handling: -- an unrecognized value shall be rejected by the receiver with a return error cause of -- unexpected data value SendGroupCallInfoRes ::= SEQUENCE { anchorMSC-Address [0] ISDN-AddressString OPTIONAL, asciCallReference [1] ASCI-CallReference OPTIONAL, imsi [2] IMSI OPTIONAL, additionalInfo [3] AdditionalInfo OPTIONAL, additionalSubscriptions [4] AdditionalSubscriptions OPTIONAL, kc [5] Kc OPTIONAL, extensionContainer [6] ExtensionContainer OPTIONAL, ... } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-Group-Call-Operations.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.6.7 Group Call operations MAP-Group-Call-Operations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Group-Call-Operations (22) version20 (20)} DEFINITIONS ::= BEGIN EXPORTS prepareGroupCall, sendGroupCallEndSignal, forwardGroupCallSignalling, processGroupCallSignalling, sendGroupCallInfo ; IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} systemFailure, unexpectedDataValue, noGroupCallNumberAvailable, ongoingGroupCall, unknownSubscriber, teleserviceNotProvisioned, dataMissing FROM MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version20 (20)} PrepareGroupCallArg, PrepareGroupCallRes, SendGroupCallEndSignalArg, SendGroupCallEndSignalRes, ForwardGroupCallSignallingArg, ProcessGroupCallSignallingArg, SendGroupCallInfoArg, SendGroupCallInfoRes FROM MAP-GR-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-GR-DataTypes (23) version20 (20)} ; prepareGroupCall OPERATION ::= { --Timer m ARGUMENT PrepareGroupCallArg RESULT PrepareGroupCallRes ERRORS { systemFailure | noGroupCallNumberAvailable | unexpectedDataValue} CODE local:39 } sendGroupCallEndSignal OPERATION ::= { --Timer l ARGUMENT SendGroupCallEndSignalArg RESULT SendGroupCallEndSignalRes CODE local:40 } processGroupCallSignalling OPERATION ::= { --Timer s ARGUMENT ProcessGroupCallSignallingArg CODE local:41 } forwardGroupCallSignalling OPERATION ::= { --Timer s ARGUMENT ForwardGroupCallSignallingArg CODE local:42 } sendGroupCallInfo OPERATION ::= { --Timer m ARGUMENT SendGroupCallInfoArg RESULT SendGroupCallInfoRes ERRORS { systemFailure | ongoingGroupCall | unexpectedDataValue | dataMissing | teleserviceNotProvisioned | unknownSubscriber} CODE local:84 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-LCS-DataTypes.asn
-- MAP-LCS-DataTypes.asn -- -- Taken from 3GPP TS 29.002 V17.1.0 (2021-06) -- -- 17.7.13 Location service data types -- MAP-LCS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-LCS-DataTypes (25) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS RoutingInfoForLCS-Arg, RoutingInfoForLCS-Res, ProvideSubscriberLocation-Arg, ProvideSubscriberLocation-Res, SubscriberLocationReport-Arg, SubscriberLocationReport-Res, LocationType, DeferredLocationEventType, LCSClientName, LCS-QoS, Horizontal-Accuracy, ResponseTime, Ext-GeographicalInformation, VelocityEstimate, SupportedGADShapes, Add-GeographicalInformation, LCSRequestorID, LCS-ReferenceNumber, LCSCodeword, AreaEventInfo, ReportingPLMNList, PeriodicLDRInfo, SequenceNumber, LCSClientType, LCS-Priority, OccurrenceInfo, IntervalTime ; IMPORTS AddressString, ISDN-AddressString, IMEI, IMSI, LMSI, SubscriberIdentity, AgeOfLocationInformation, LCSClientExternalID, LCSClientInternalID, LCSServiceTypeID, CellGlobalIdOrServiceAreaIdOrLAI, PLMN-Id, GSN-Address, DiameterIdentity FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} ExtensionContainer, SLR-ArgExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} USSD-DataCodingScheme, USSD-String FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version20 (20)} APN, SupportedLCS-CapabilitySets FROM MAP-MS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MS-DataTypes (11) version20 (20)} Additional-Number FROM MAP-SM-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SM-DataTypes (16) version20 (20)} ; RoutingInfoForLCS-Arg ::= SEQUENCE { mlcNumber [0] ISDN-AddressString, targetMS [1] SubscriberIdentity, extensionContainer [2] ExtensionContainer OPTIONAL, ...} RoutingInfoForLCS-Res ::= SEQUENCE { targetMS [0] SubscriberIdentity, lcsLocationInfo [1] LCSLocationInfo, extensionContainer [2] ExtensionContainer OPTIONAL, ..., v-gmlc-Address [3] GSN-Address OPTIONAL, h-gmlc-Address [4] GSN-Address OPTIONAL, ppr-Address [5] GSN-Address OPTIONAL, additional-v-gmlc-Address [6] GSN-Address OPTIONAL } LCSLocationInfo ::= SEQUENCE { networkNode-Number ISDN-AddressString, -- NetworkNode-number can be msc-number, sgsn-number or a dummy value of "0" lmsi [0] LMSI OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ... , gprsNodeIndicator [2] NULL OPTIONAL, -- gprsNodeIndicator is set only if the SGSN number is sent as the Network Node Number additional-Number [3] Additional-Number OPTIONAL, supportedLCS-CapabilitySets [4] SupportedLCS-CapabilitySets OPTIONAL, additional-LCS-CapabilitySets [5] SupportedLCS-CapabilitySets OPTIONAL, mme-Name [6] DiameterIdentity OPTIONAL, aaa-Server-Name [8] DiameterIdentity OPTIONAL, sgsn-Name [9] DiameterIdentity OPTIONAL, sgsn-Realm [10] DiameterIdentity OPTIONAL } ProvideSubscriberLocation-Arg ::= SEQUENCE { locationType LocationType, mlc-Number ISDN-AddressString, lcs-ClientID [0] LCS-ClientID OPTIONAL, privacyOverride [1] NULL OPTIONAL, imsi [2] IMSI OPTIONAL, msisdn [3] ISDN-AddressString OPTIONAL, lmsi [4] LMSI OPTIONAL, imei [5] IMEI OPTIONAL, lcs-Priority [6] LCS-Priority OPTIONAL, lcs-QoS [7] LCS-QoS OPTIONAL, extensionContainer [8] ExtensionContainer OPTIONAL, ... , supportedGADShapes [9] SupportedGADShapes OPTIONAL, lcs-ReferenceNumber [10] LCS-ReferenceNumber OPTIONAL, lcsServiceTypeID [11] LCSServiceTypeID OPTIONAL, lcsCodeword [12] LCSCodeword OPTIONAL, lcs-PrivacyCheck [13] LCS-PrivacyCheck OPTIONAL, areaEventInfo [14] AreaEventInfo OPTIONAL, h-gmlc-Address [15] GSN-Address OPTIONAL, mo-lrShortCircuitIndicator [16] NULL OPTIONAL, periodicLDRInfo [17] PeriodicLDRInfo OPTIONAL, reportingPLMNList [18] ReportingPLMNList OPTIONAL } -- one of imsi or msisdn is mandatory -- If a location estimate type indicates activate deferred location or cancel deferred -- location, a lcs-Reference number shall be included. LocationType ::= SEQUENCE { locationEstimateType [0] LocationEstimateType, ..., deferredLocationEventType [1] DeferredLocationEventType OPTIONAL } LocationEstimateType ::= ENUMERATED { currentLocation (0), currentOrLastKnownLocation (1), initialLocation (2), ..., activateDeferredLocation (3), cancelDeferredLocation (4) , notificationVerificationOnly (5) } -- exception handling: -- a ProvideSubscriberLocation-Arg containing an unrecognized LocationEstimateType -- shall be rejected by the receiver with a return error cause of unexpected data value DeferredLocationEventType ::= BIT STRING { msAvailable (0) , enteringIntoArea (1), leavingFromArea (2), beingInsideArea (3) , periodicLDR (4) } (SIZE (1..16)) -- beingInsideArea is always treated as oneTimeEvent regardless of the possible value -- of occurrenceInfo inside areaEventInfo. -- exception handling: -- a ProvideSubscriberLocation-Arg containing other values than listed above in -- DeferredLocationEventType shall be rejected by the receiver with a return error cause of -- unexpected data value. LCS-ClientID ::= SEQUENCE { lcsClientType [0] LCSClientType, lcsClientExternalID [1] LCSClientExternalID OPTIONAL, lcsClientDialedByMS [2] AddressString OPTIONAL, lcsClientInternalID [3] LCSClientInternalID OPTIONAL, lcsClientName [4] LCSClientName OPTIONAL, ..., lcsAPN [5] APN OPTIONAL, lcsRequestorID [6] LCSRequestorID OPTIONAL } LCSClientType ::= ENUMERATED { emergencyServices (0), valueAddedServices (1), plmnOperatorServices (2), lawfulInterceptServices (3), ... } -- exception handling: -- unrecognized values may be ignored if the LCS client uses the privacy override -- otherwise, an unrecognized value shall be treated as unexpected data by a receiver -- a return error shall then be returned if received in a MAP invoke LCSClientName ::= SEQUENCE { dataCodingScheme [0] USSD-DataCodingScheme, nameString [2] NameString, ..., lcs-FormatIndicator [3] LCS-FormatIndicator OPTIONAL } -- The USSD-DataCodingScheme shall indicate use of the default alphabet through the -- following encoding -- bit 7 6 5 4 3 2 1 0 -- 0 0 0 0 1 1 1 1 NameString ::= USSD-String (SIZE (1..maxNameStringLength)) maxNameStringLength INTEGER ::= 63 LCSRequestorID ::= SEQUENCE { dataCodingScheme [0] USSD-DataCodingScheme, requestorIDString [1] RequestorIDString, ..., lcs-FormatIndicator [2] LCS-FormatIndicator OPTIONAL } RequestorIDString ::= USSD-String (SIZE (1..maxRequestorIDStringLength)) maxRequestorIDStringLength INTEGER ::= 63 LCS-FormatIndicator ::= ENUMERATED { logicalName (0), e-mailAddress (1), msisdn (2), url (3), sipUrl (4), ... } LCS-Priority ::= OCTET STRING (SIZE (1)) -- 0 = highest priority -- 1 = normal priority -- all other values treated as 1 LCS-QoS ::= SEQUENCE { horizontal-accuracy [0] Horizontal-Accuracy OPTIONAL, verticalCoordinateRequest [1] NULL OPTIONAL, vertical-accuracy [2] Vertical-Accuracy OPTIONAL, responseTime [3] ResponseTime OPTIONAL, extensionContainer [4] ExtensionContainer OPTIONAL, ..., velocityRequest [5] NULL OPTIONAL } Horizontal-Accuracy ::= OCTET STRING (SIZE (1)) -- bit 8 = 0 -- bits 7-1 = 7 bit Uncertainty Code defined in 3GPP TS 23.032. The horizontal location -- error should be less than the error indicated by the uncertainty code with 67% -- confidence. Vertical-Accuracy ::= OCTET STRING (SIZE (1)) -- bit 8 = 0 -- bits 7-1 = 7 bit Vertical Uncertainty Code defined in 3GPP TS 23.032. -- The vertical location error should be less than the error indicated -- by the uncertainty code with 67% confidence. ResponseTime ::= SEQUENCE { responseTimeCategory ResponseTimeCategory, ...} -- note: an expandable SEQUENCE simplifies later addition of a numeric response time. ResponseTimeCategory ::= ENUMERATED { lowdelay (0), delaytolerant (1), ... } -- exception handling: -- an unrecognized value shall be treated the same as value 1 (delaytolerant) SupportedGADShapes ::= BIT STRING { ellipsoidPoint (0), ellipsoidPointWithUncertaintyCircle (1), ellipsoidPointWithUncertaintyEllipse (2), polygon (3), ellipsoidPointWithAltitude (4), ellipsoidPointWithAltitudeAndUncertaintyElipsoid (5), ellipsoidArc (6) } (SIZE (7..16)) -- A node shall mark in the BIT STRING all Shapes defined in 3GPP TS 23.032 it supports. -- exception handling: bits 7 to 15 shall be ignored if received. LCS-ReferenceNumber::= OCTET STRING (SIZE(1)) LCSCodeword ::= SEQUENCE { dataCodingScheme [0] USSD-DataCodingScheme, lcsCodewordString [1] LCSCodewordString, ...} LCSCodewordString ::= USSD-String (SIZE (1..maxLCSCodewordStringLength)) maxLCSCodewordStringLength INTEGER ::= 20 LCS-PrivacyCheck ::= SEQUENCE { callSessionUnrelated [0] PrivacyCheckRelatedAction, callSessionRelated [1] PrivacyCheckRelatedAction OPTIONAL, ...} PrivacyCheckRelatedAction ::= ENUMERATED { allowedWithoutNotification (0), allowedWithNotification (1), allowedIfNoResponse (2), restrictedIfNoResponse (3), notAllowed (4), ...} -- exception handling: -- a ProvideSubscriberLocation-Arg containing an unrecognized PrivacyCheckRelatedAction -- shall be rejected by the receiver with a return error cause of unexpected data value AreaEventInfo ::= SEQUENCE { areaDefinition [0] AreaDefinition, occurrenceInfo [1] OccurrenceInfo OPTIONAL, intervalTime [2] IntervalTime OPTIONAL, ...} AreaDefinition ::= SEQUENCE { areaList [0] AreaList, ...} AreaList ::= SEQUENCE SIZE (1..maxNumOfAreas) OF Area maxNumOfAreas INTEGER ::= 10 Area ::= SEQUENCE { areaType [0] AreaType, areaIdentification [1] AreaIdentification, ...} AreaType ::= ENUMERATED { countryCode (0), plmnId (1), locationAreaId (2), routingAreaId (3), cellGlobalId (4), ..., utranCellId (5) } AreaIdentification ::= OCTET STRING (SIZE (2..7)) -- The internal structure is defined as follows: -- octet 1 bits 4321 Mobile Country Code 1st digit -- bits 8765 Mobile Country Code 2nd digit -- octet 2 bits 4321 Mobile Country Code 3rd digit -- bits 8765 Mobile Network Code 3rd digit if 3 digit MNC included -- or filler (1111) -- octet 3 bits 4321 Mobile Network Code 1st digit -- bits 8765 Mobile Network Code 2nd digit -- octets 4 and 5 Location Area Code (LAC) for Local Area Id, -- Routing Area Id and Cell Global Id -- octet 6 Routing Area Code (RAC) for Routing Area Id -- octets 6 and 7 Cell Identity (CI) for Cell Global Id -- octets 4 until 7 Utran Cell Identity (UC-Id) for Utran Cell Id OccurrenceInfo ::= ENUMERATED { oneTimeEvent (0), multipleTimeEvent (1), ...} IntervalTime ::= INTEGER (1..32767) -- minimum interval time between area reports in seconds PeriodicLDRInfo ::= SEQUENCE { reportingAmount ReportingAmount, reportingInterval ReportingInterval, ...} -- reportingInterval x reportingAmount shall not exceed 8639999 (99 days, 23 hours, -- 59 minutes and 59 seconds) for compatibility with OMA MLP and RLP ReportingAmount ::= INTEGER (1..maxReportingAmount) maxReportingAmount INTEGER ::= 8639999 ReportingInterval ::= INTEGER (1..maxReportingInterval) -- ReportingInterval is in seconds maxReportingInterval INTEGER ::= 8639999 ReportingPLMNList::= SEQUENCE { plmn-ListPrioritized [0] NULL OPTIONAL, plmn-List [1] PLMNList, ...} PLMNList::= SEQUENCE SIZE (1..maxNumOfReportingPLMN) OF ReportingPLMN maxNumOfReportingPLMN INTEGER ::= 20 ReportingPLMN::= SEQUENCE { plmn-Id [0] PLMN-Id, ran-Technology [1] RAN-Technology OPTIONAL, ran-PeriodicLocationSupport [2] NULL OPTIONAL, ...} RAN-Technology ::= ENUMERATED { gsm (0), umts (1), ...} ProvideSubscriberLocation-Res ::= SEQUENCE { locationEstimate Ext-GeographicalInformation, ageOfLocationEstimate [0] AgeOfLocationInformation OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ... , add-LocationEstimate [2] Add-GeographicalInformation OPTIONAL, deferredmt-lrResponseIndicator [3] NULL OPTIONAL, geranPositioningData [4] PositioningDataInformation OPTIONAL, utranPositioningData [5] UtranPositioningDataInfo OPTIONAL, cellIdOrSai [6] CellGlobalIdOrServiceAreaIdOrLAI OPTIONAL, sai-Present [7] NULL OPTIONAL, accuracyFulfilmentIndicator [8] AccuracyFulfilmentIndicator OPTIONAL, velocityEstimate [9] VelocityEstimate OPTIONAL, mo-lrShortCircuitIndicator [10] NULL OPTIONAL, geranGANSSpositioningData [11] GeranGANSSpositioningData OPTIONAL, utranGANSSpositioningData [12] UtranGANSSpositioningData OPTIONAL, targetServingNodeForHandover [13] ServingNodeAddress OPTIONAL, utranAdditionalPositioningData [14] UtranAdditionalPositioningData OPTIONAL, utranBaroPressureMeas [15] UtranBaroPressureMeas OPTIONAL, utranCivicAddress [16] UtranCivicAddress OPTIONAL } -- if deferredmt-lrResponseIndicator is set, locationEstimate is ignored. -- the add-LocationEstimate parameter shall not be sent to a node that did not indicate the -- geographic shapes supported in the ProvideSubscriberLocation-Arg -- The locationEstimate and the add-locationEstimate parameters shall not be sent if -- the supportedGADShapes parameter has been received in ProvideSubscriberLocation-Arg -- and the shape encoded in locationEstimate or add-LocationEstimate is not marked -- as supported in supportedGADShapes. In such a case ProvideSubscriberLocation -- shall be rejected with error FacilityNotSupported with additional indication -- shapeOfLocationEstimateNotSupported. -- sai-Present indicates that the cellIdOrSai parameter contains a Service Area Identity. AccuracyFulfilmentIndicator ::= ENUMERATED { requestedAccuracyFulfilled (0), requestedAccuracyNotFulfilled (1), ... } Ext-GeographicalInformation ::= OCTET STRING (SIZE (1..maxExt-GeographicalInformation)) -- Refers to geographical Information defined in 3GPP TS 23.032. -- This is composed of 1 or more octets with an internal structure according to -- 3GPP TS 23.032 -- Octet 1: Type of shape, only the following shapes in 3GPP TS 23.032 are allowed: -- (a) Ellipsoid point with uncertainty circle -- (b) Ellipsoid point with uncertainty ellipse -- (c) Ellipsoid point with altitude and uncertainty ellipsoid -- (d) Ellipsoid Arc -- (e) Ellipsoid Point -- Any other value in octet 1 shall be treated as invalid -- Octets 2 to 8 for case (a) – Ellipsoid point with uncertainty circle -- Degrees of Latitude 3 octets -- Degrees of Longitude 3 octets -- Uncertainty code 1 octet -- Octets 2 to 11 for case (b) – Ellipsoid point with uncertainty ellipse: -- Degrees of Latitude 3 octets -- Degrees of Longitude 3 octets -- Uncertainty semi-major axis 1 octet -- Uncertainty semi-minor axis 1 octet -- Angle of major axis 1 octet -- Confidence 1 octet -- Octets 2 to 14 for case (c) – Ellipsoid point with altitude and uncertainty ellipsoid -- Degrees of Latitude 3 octets -- Degrees of Longitude 3 octets -- Altitude 2 octets -- Uncertainty semi-major axis 1 octet -- Uncertainty semi-minor axis 1 octet -- Angle of major axis 1 octet -- Uncertainty altitude 1 octet -- Confidence 1 octet -- Octets 2 to 13 for case (d) – Ellipsoid Arc -- Degrees of Latitude 3 octets -- Degrees of Longitude 3 octets -- Inner radius 2 octets -- Uncertainty radius 1 octet -- Offset angle 1 octet -- Included angle 1 octet -- Confidence 1 octet -- Octets 2 to 7 for case (e) – Ellipsoid Point -- Degrees of Latitude 3 octets -- Degrees of Longitude 3 octets -- -- An Ext-GeographicalInformation parameter comprising more than one octet and -- containing any other shape or an incorrect number of octets or coding according -- to 3GPP TS 23.032 shall be treated as invalid data by a receiver. -- -- An Ext-GeographicalInformation parameter comprising one octet shall be discarded -- by the receiver if an Add-GeographicalInformation parameter is received -- in the same message. -- -- An Ext-GeographicalInformation parameter comprising one octet shall be treated as -- invalid data by the receiver if an Add-GeographicalInformation parameter is not -- received in the same message. maxExt-GeographicalInformation INTEGER ::= 20 -- the maximum length allows for further shapes in 3GPP TS 23.032 to be included in later -- versions of 3GPP TS 29.002 VelocityEstimate ::= OCTET STRING (SIZE (4..7)) -- Refers to Velocity description defined in 3GPP TS 23.032. -- This is composed of 4 or more octets with an internal structure according to -- 3GPP TS 23.032 -- Octet 1: Type of velocity, only the following types in 3GPP TS 23.032 are allowed: -- (a) Horizontal Velocity -- (b) Horizontal with Vertical Velocity -- (c) Horizontal Velocity with Uncertainty -- (d) Horizontal with Vertical Velocity and Uncertainty -- For types Horizontal with Vertical Velocity and Horizontal with Vertical Velocity -- and Uncertainty, the direction of the Vertical Speed is also included in Octet 1 -- Any other value in octet 1 shall be treated as invalid -- Octets 2 to 4 for case (a) Horizontal velocity: -- Bearing 1 octet -- Horizontal Speed 2 octets -- Octets 2 to 5 for case (b) – Horizontal with Vertical Velocity: -- Bearing 1 octet -- Horizontal Speed 2 octets -- Vertical Speed 1 octet -- Octets 2 to 5 for case (c) – Horizontal velocity with Uncertainty: -- Bearing 1 octet -- Horizontal Speed 2 octets -- Uncertainty Speed 1 octet -- Octets 2 to 7 for case (d) – Horizontal with Vertical Velocity and Uncertainty: -- Bearing 1 octet -- Horizontal Speed 2 octets -- Vertical Speed 1 octet -- Horizontal Uncertainty Speed 1 octet -- Vertical Uncertainty Speed 1 octet PositioningDataInformation ::= OCTET STRING (SIZE (2..maxPositioningDataInformation)) -- Refers to the Positioning Data defined in 3GPP TS 49.031. -- This is composed of 2 or more octets with an internal structure according to -- 3GPP TS 49.031. maxPositioningDataInformation INTEGER ::= 10 -- UtranPositioningDataInfo ::= OCTET STRING (SIZE (3..maxUtranPositioningDataInfo)) -- Refers to the Position Data defined in 3GPP TS 25.413. -- This is composed of the positioningDataDiscriminator and the positioningDataSet -- included in positionData as defined in 3GPP TS 25.413. maxUtranPositioningDataInfo INTEGER ::= 11 -- GeranGANSSpositioningData ::= OCTET STRING (SIZE (2..maxGeranGANSSpositioningData)) -- Refers to the GANSS Positioning Data defined in 3GPP TS 49.031. -- This is composed of 2 or more octets with an internal structure according to -- 3GPP TS 49.031. maxGeranGANSSpositioningData INTEGER ::= 10 -- UtranGANSSpositioningData ::= OCTET STRING (SIZE (1..maxUtranGANSSpositioningData)) -- Refers to the Position Data defined in 3GPP TS 25.413. -- This is composed of the GANSS-PositioningDataSet only, included in PositionData -- as defined in 3GPP TS 25.413. maxUtranGANSSpositioningData INTEGER ::= 9 -- UtranAdditionalPositioningData ::= OCTET STRING (SIZE (1..maxUtranAdditionalPositioningData)) -- Refers to the Position Data defined in 3GPP TS 25.413. -- This is composed of the Additional-PositioningDataSet only, included in PositionData -- as defined in 3GPP TS 25.413. maxUtranAdditionalPositioningData INTEGER ::= 8 -- UtranBaroPressureMeas ::= INTEGER (30000..115000) -- Refers to the barometric pressure measurement defined in 3GPP TS 25.413. -- This is composed of the BarometricPressureMeasurement only as defined in 3GPP TS -- 25.413. UtranCivicAddress ::= OCTET STRING -- Refers to the civic address defined in 3GPP TS 25.413. -- This is composed of the CivicAddress only as defined in 3GPP TS 25.413. Add-GeographicalInformation ::= OCTET STRING (SIZE (1..maxAdd-GeographicalInformation)) -- Refers to geographical Information defined in 3GPP TS 23.032. -- This is composed of 1 or more octets with an internal structure according to -- 3GPP TS 23.032 -- Octet 1: Type of shape, all the shapes defined in 3GPP TS 23.032 are allowed: -- Octets 2 to n (where n is the total number of octets necessary to encode the shape -- according to 3GPP TS 23.032) are used to encode the shape itself in accordance with the -- encoding defined in 3GPP TS 23.032 -- -- An Add-GeographicalInformation parameter, whether valid or invalid, received -- together with a valid Ext-GeographicalInformation parameter in the same message -- shall be discarded. -- -- An Add-GeographicalInformation parameter containing any shape not defined in -- 3GPP TS 23.032 or an incorrect number of octets or coding according to -- 3GPP TS 23.032 shall be treated as invalid data by a receiver if not received -- together with a valid Ext-GeographicalInformation parameter in the same message. maxAdd-GeographicalInformation INTEGER ::= 91 -- the maximum length allows support for all the shapes currently defined in 3GPP TS 23.032 SubscriberLocationReport-Arg ::= SEQUENCE { lcs-Event LCS-Event, lcs-ClientID LCS-ClientID, lcsLocationInfo LCSLocationInfo, msisdn [0] ISDN-AddressString OPTIONAL, imsi [1] IMSI OPTIONAL, imei [2] IMEI OPTIONAL, na-ESRD [3] ISDN-AddressString OPTIONAL, na-ESRK [4] ISDN-AddressString OPTIONAL, locationEstimate [5] Ext-GeographicalInformation OPTIONAL, ageOfLocationEstimate [6] AgeOfLocationInformation OPTIONAL, slr-ArgExtensionContainer [7] SLR-ArgExtensionContainer OPTIONAL, ... , add-LocationEstimate [8] Add-GeographicalInformation OPTIONAL, deferredmt-lrData [9] Deferredmt-lrData OPTIONAL, lcs-ReferenceNumber [10] LCS-ReferenceNumber OPTIONAL, geranPositioningData [11] PositioningDataInformation OPTIONAL, utranPositioningData [12] UtranPositioningDataInfo OPTIONAL, cellIdOrSai [13] CellGlobalIdOrServiceAreaIdOrLAI OPTIONAL, h-gmlc-Address [14] GSN-Address OPTIONAL, lcsServiceTypeID [15] LCSServiceTypeID OPTIONAL, sai-Present [17] NULL OPTIONAL, pseudonymIndicator [18] NULL OPTIONAL, accuracyFulfilmentIndicator [19] AccuracyFulfilmentIndicator OPTIONAL, velocityEstimate [20] VelocityEstimate OPTIONAL, sequenceNumber [21] SequenceNumber OPTIONAL, periodicLDRInfo [22] PeriodicLDRInfo OPTIONAL, mo-lrShortCircuitIndicator [23] NULL OPTIONAL, geranGANSSpositioningData [24] GeranGANSSpositioningData OPTIONAL, utranGANSSpositioningData [25] UtranGANSSpositioningData OPTIONAL, targetServingNodeForHandover [26] ServingNodeAddress OPTIONAL, utranAdditionalPositioningData [27] UtranAdditionalPositioningData OPTIONAL, utranBaroPressureMeas [28] UtranBaroPressureMeas OPTIONAL, utranCivicAddress [29] UtranCivicAddress OPTIONAL } -- one of msisdn or imsi is mandatory -- a location estimate that is valid for the locationEstimate parameter should -- be transferred in this parameter in preference to the add-LocationEstimate. -- the deferredmt-lrData parameter shall be included if and only if the lcs-Event -- indicates a deferredmt-lrResponse. -- if the lcs-Event indicates a deferredmt-lrResponse then the locationEstimate -- and the add-locationEstimate parameters shall not be sent if the -- supportedGADShapes parameter had been received in ProvideSubscriberLocation-Arg -- and the shape encoded in locationEstimate or add-LocationEstimate was not marked -- as supported in supportedGADShapes. In such a case terminationCause -- in deferredmt-lrData shall be present with value -- shapeOfLocationEstimateNotSupported. -- If a lcs event indicates deferred mt-lr response, the lcs-Reference number shall be -- included. -- sai-Present indicates that the cellIdOrSai parameter contains a Service Area Identity. Deferredmt-lrData ::= SEQUENCE { deferredLocationEventType DeferredLocationEventType, terminationCause [0] TerminationCause OPTIONAL, lcsLocationInfo [1] LCSLocationInfo OPTIONAL, ...} -- lcsLocationInfo may be included only if a terminationCause is present -- indicating mt-lrRestart. LCS-Event ::= ENUMERATED { emergencyCallOrigination (0), emergencyCallRelease (1), mo-lr (2), ..., deferredmt-lrResponse (3) , deferredmo-lrTTTPInitiation (4), emergencyCallHandover (5) } -- deferredmt-lrResponse is applicable to the delivery of a location estimate -- for an LDR initiated earlier by either the network (via an MT-LR activate deferred -- location) or the UE (via a deferred MO-LR TTTP initiation) -- exception handling: -- a SubscriberLocationReport-Arg containing an unrecognized LCS-Event -- shall be rejected by a receiver with a return error cause of unexpected data value TerminationCause ::= ENUMERATED { normal (0), errorundefined (1), internalTimeout (2), congestion (3), mt-lrRestart (4), privacyViolation (5), ..., shapeOfLocationEstimateNotSupported (6) , subscriberTermination (7), uETermination (8), networkTermination (9) } -- mt-lrRestart shall be used to trigger the GMLC to restart the location procedure, -- either because the sending node knows that the terminal has moved under coverage -- of another MSC or SGSN (e.g. Send Identification received), or because the subscriber -- has been deregistered due to a Cancel Location received from HLR. -- -- exception handling -- an unrecognized value shall be treated the same as value 1 (errorundefined) SequenceNumber ::= INTEGER (1..maxReportingAmount) ServingNodeAddress ::= CHOICE { msc-Number [0] ISDN-AddressString, sgsn-Number [1] ISDN-AddressString, mme-Number [2] DiameterIdentity } SubscriberLocationReport-Res ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ..., na-ESRK [0] ISDN-AddressString OPTIONAL, na-ESRD [1] ISDN-AddressString OPTIONAL, h-gmlc-Address [2] GSN-Address OPTIONAL, mo-lrShortCircuitIndicator [3] NULL OPTIONAL, reportingPLMNList [4] ReportingPLMNList OPTIONAL, lcs-ReferenceNumber [5] LCS-ReferenceNumber OPTIONAL } -- na-ESRK and na-ESRD are mutually exclusive -- -- exception handling -- receipt of both na-ESRK and na-ESRD shall be treated the same as a return error END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-LocationServiceOperations.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.6.8 Location service operations MAP-LocationServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-LocationServiceOperations (24) version20 (20)} DEFINITIONS ::= BEGIN EXPORTS provideSubscriberLocation, sendRoutingInfoForLCS, subscriberLocationReport ; IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} systemFailure, dataMissing, unexpectedDataValue, facilityNotSupported, unknownSubscriber, absentSubscriber, unauthorizedRequestingNetwork, unauthorizedLCSClient, positionMethodFailure, resourceLimitation, unknownOrUnreachableLCSClient, unidentifiedSubscriber, illegalEquipment, illegalSubscriber FROM MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version20 (20)} RoutingInfoForLCS-Arg, RoutingInfoForLCS-Res, ProvideSubscriberLocation-Arg, ProvideSubscriberLocation-Res, SubscriberLocationReport-Arg, SubscriberLocationReport-Res FROM MAP-LCS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-LCS-DataTypes (25) version20 (20)} ; sendRoutingInfoForLCS OPERATION ::= { --Timer m ARGUMENT RoutingInfoForLCS-Arg RESULT RoutingInfoForLCS-Res ERRORS { systemFailure | dataMissing | unexpectedDataValue | facilityNotSupported | unknownSubscriber | absentSubscriber | unauthorizedRequestingNetwork } CODE local:85 } provideSubscriberLocation OPERATION ::= { --Timer ml ARGUMENT ProvideSubscriberLocation-Arg RESULT ProvideSubscriberLocation-Res ERRORS { systemFailure | dataMissing | unexpectedDataValue | facilityNotSupported | unidentifiedSubscriber | illegalSubscriber | illegalEquipment | absentSubscriber | unauthorizedRequestingNetwork | unauthorizedLCSClient | positionMethodFailure } CODE local:83 } subscriberLocationReport OPERATION ::= { --Timer m ARGUMENT SubscriberLocationReport-Arg RESULT SubscriberLocationReport-Res ERRORS { systemFailure | dataMissing | resourceLimitation | unexpectedDataValue | unknownSubscriber | unauthorizedRequestingNetwork | unknownOrUnreachableLCSClient} CODE local:86 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-MobileServiceOperations.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.6.1 Mobile Service Operations MAP-MobileServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MobileServiceOperations (5) version20 (20)} DEFINITIONS ::= BEGIN EXPORTS -- location registration operations updateLocation, cancelLocation, purgeMS, sendIdentification, -- gprs location registration operations updateGprsLocation, -- vcsg location registration operations updateVcsgLocation, cancelVcsgLocation, -- subscriber information enquiry operations provideSubscriberInfo, -- any time information enquiry operations anyTimeInterrogation, -- any time information handling operations anyTimeSubscriptionInterrogation, anyTimeModification, -- subscriber data modification notification operations noteSubscriberDataModified, -- handover operations prepareHandover, sendEndSignal, processAccessSignalling, forwardAccessSignalling, prepareSubsequentHandover, -- authentication management operations sendAuthenticationInfo, authenticationFailureReport, -- IMEI management operations checkIMEI, -- subscriber management operations insertSubscriberData, deleteSubscriberData, -- fault recovery operations reset, forwardCheckSS-Indication, restoreData, -- gprs location information retrieval operations sendRoutingInfoForGprs, -- failure reporting operations failureReport, -- gprs notification operations noteMsPresentForGprs, -- Mobility Management operations noteMM-Event ; IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} systemFailure, dataMissing, unexpectedDataValue, unknownSubscriber, unknownMSC, unidentifiedSubscriber, unknownEquipment, roamingNotAllowed, ati-NotAllowed, noHandoverNumberAvailable, subsequentHandoverFailure, absentSubscriber, mm-EventNotSupported, atsi-NotAllowed, atm-NotAllowed, bearerServiceNotProvisioned, teleserviceNotProvisioned, callBarred, illegalSS-Operation, ss-ErrorStatus, ss-NotAvailable, ss-Incompatibility, ss-SubscriptionViolation, informationNotAvailable, targetCellOutsideGroupCallArea FROM MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version20 (20)} UpdateLocationArg, UpdateLocationRes, CancelLocationArg, CancelLocationRes, PurgeMS-Arg, PurgeMS-Res, SendIdentificationArg, SendIdentificationRes, UpdateGprsLocationArg, UpdateGprsLocationRes, UpdateVcsgLocationArg, UpdateVcsgLocationRes, CancelVcsgLocationArg, CancelVcsgLocationRes, PrepareHO-Arg, PrepareHO-Res, ForwardAccessSignalling-Arg, ProcessAccessSignalling-Arg, SendEndSignal-Arg, SendEndSignal-Res, PrepareSubsequentHO-Res, PrepareSubsequentHO-Arg, SendAuthenticationInfoArg, SendAuthenticationInfoRes, AuthenticationFailureReportArg, AuthenticationFailureReportRes, CheckIMEI-Arg, CheckIMEI-Res, InsertSubscriberDataArg, InsertSubscriberDataRes, DeleteSubscriberDataArg, DeleteSubscriberDataRes, ResetArg, RestoreDataArg, RestoreDataRes, ProvideSubscriberInfoArg, ProvideSubscriberInfoRes, AnyTimeSubscriptionInterrogationArg, AnyTimeSubscriptionInterrogationRes, AnyTimeModificationArg, AnyTimeModificationRes, NoteSubscriberDataModifiedArg, NoteSubscriberDataModifiedRes, AnyTimeInterrogationArg, AnyTimeInterrogationRes, SendRoutingInfoForGprsArg, SendRoutingInfoForGprsRes, FailureReportArg, FailureReportRes, NoteMsPresentForGprsArg, NoteMsPresentForGprsRes, NoteMM-EventArg, NoteMM-EventRes FROM MAP-MS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MS-DataTypes (11) version20 (20)} ; -- location registration operations updateLocation OPERATION ::= { --Timer m ARGUMENT UpdateLocationArg RESULT UpdateLocationRes ERRORS { systemFailure | dataMissing | unexpectedDataValue | unknownSubscriber | roamingNotAllowed} CODE local:2 } cancelLocation OPERATION ::= { --Timer m ARGUMENT CancelLocationArg RESULT CancelLocationRes -- optional ERRORS { dataMissing | unexpectedDataValue} CODE local:3 } purgeMS OPERATION ::= { --Timer m ARGUMENT PurgeMS-Arg RESULT PurgeMS-Res -- optional ERRORS{ dataMissing | unexpectedDataValue| unknownSubscriber} CODE local:67 } sendIdentification OPERATION ::= { --Timer s ARGUMENT SendIdentificationArg RESULT SendIdentificationRes ERRORS { dataMissing | unidentifiedSubscriber} CODE local:55 } -- gprs location registration operations updateGprsLocation OPERATION ::= { --Timer m ARGUMENT UpdateGprsLocationArg RESULT UpdateGprsLocationRes ERRORS { systemFailure | unexpectedDataValue | unknownSubscriber | roamingNotAllowed} CODE local:23 } -- subscriber information enquiry operations provideSubscriberInfo OPERATION ::= { --Timer m ARGUMENT ProvideSubscriberInfoArg RESULT ProvideSubscriberInfoRes ERRORS { dataMissing | unexpectedDataValue} CODE local:70 } -- any time information enquiry operations anyTimeInterrogation OPERATION ::= { --Timer m ARGUMENT AnyTimeInterrogationArg RESULT AnyTimeInterrogationRes ERRORS { systemFailure | ati-NotAllowed | dataMissing | unexpectedDataValue | unknownSubscriber} CODE local:71 } -- any time information handling operations anyTimeSubscriptionInterrogation OPERATION ::= { --Timer m ARGUMENT AnyTimeSubscriptionInterrogationArg RESULT AnyTimeSubscriptionInterrogationRes ERRORS { atsi-NotAllowed | dataMissing | unexpectedDataValue | unknownSubscriber | bearerServiceNotProvisioned | teleserviceNotProvisioned | callBarred | illegalSS-Operation | ss-NotAvailable | informationNotAvailable} CODE local:62 } anyTimeModification OPERATION ::= { --Timer m ARGUMENT AnyTimeModificationArg RESULT AnyTimeModificationRes ERRORS { atm-NotAllowed | dataMissing | unexpectedDataValue | unknownSubscriber | bearerServiceNotProvisioned | teleserviceNotProvisioned | callBarred | illegalSS-Operation | ss-SubscriptionViolation | ss-ErrorStatus | ss-Incompatibility | informationNotAvailable} CODE local:65 } -- subscriber data modification notification operations noteSubscriberDataModified OPERATION ::= { --Timer m ARGUMENT NoteSubscriberDataModifiedArg RESULT NoteSubscriberDataModifiedRes -- optional ERRORS { dataMissing | unexpectedDataValue | unknownSubscriber} CODE local:5 } -- handover operations prepareHandover OPERATION ::= { --Timer m ARGUMENT PrepareHO-Arg RESULT PrepareHO-Res ERRORS { systemFailure | dataMissing | unexpectedDataValue | noHandoverNumberAvailable | targetCellOutsideGroupCallArea } CODE local:68 } sendEndSignal OPERATION ::= { --Timer l ARGUMENT SendEndSignal-Arg RESULT SendEndSignal-Res CODE local:29 } processAccessSignalling OPERATION ::= { --Timer s ARGUMENT ProcessAccessSignalling-Arg CODE local:33 } forwardAccessSignalling OPERATION ::= { --Timer s ARGUMENT ForwardAccessSignalling-Arg CODE local:34 } prepareSubsequentHandover OPERATION ::= { --Timer m ARGUMENT PrepareSubsequentHO-Arg RESULT PrepareSubsequentHO-Res ERRORS { unexpectedDataValue | dataMissing | unknownMSC | subsequentHandoverFailure} CODE local:69 } -- authentication management operations sendAuthenticationInfo OPERATION ::= { --Timer m ARGUMENT SendAuthenticationInfoArg -- optional -- within a dialogue sendAuthenticationInfoArg shall not be present in -- subsequent invoke components. If received in a subsequent invoke component -- it shall be discarded. RESULT SendAuthenticationInfoRes -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | unknownSubscriber} CODE local:56 } authenticationFailureReport OPERATION ::= { --Timer m ARGUMENT AuthenticationFailureReportArg RESULT AuthenticationFailureReportRes -- optional ERRORS { systemFailure | unexpectedDataValue | unknownSubscriber} CODE local:15 } -- IMEI management operations checkIMEI OPERATION ::= { --Timer m ARGUMENT CheckIMEI-Arg RESULT CheckIMEI-Res ERRORS { systemFailure | dataMissing | unknownEquipment} CODE local:43 } -- subscriber management operations insertSubscriberData OPERATION ::= { --Timer m ARGUMENT InsertSubscriberDataArg RESULT InsertSubscriberDataRes -- optional ERRORS { dataMissing | unexpectedDataValue | unidentifiedSubscriber} CODE local:7 } deleteSubscriberData OPERATION ::= { --Timer m ARGUMENT DeleteSubscriberDataArg RESULT DeleteSubscriberDataRes -- optional ERRORS { dataMissing | unexpectedDataValue | unidentifiedSubscriber} CODE local:8 } -- fault recovery operations reset OPERATION ::= { --Timer m ARGUMENT ResetArg CODE local:37 } forwardCheckSS-Indication OPERATION ::= { --Timer s CODE local:38 } restoreData OPERATION ::= { --Timer m ARGUMENT RestoreDataArg RESULT RestoreDataRes ERRORS { systemFailure | dataMissing | unexpectedDataValue | unknownSubscriber} CODE local:57 } -- gprs location information retrieval operations sendRoutingInfoForGprs OPERATION ::= { --Timer m ARGUMENT SendRoutingInfoForGprsArg RESULT SendRoutingInfoForGprsRes ERRORS { absentSubscriber | systemFailure | dataMissing | unexpectedDataValue | unknownSubscriber | callBarred } CODE local:24 } -- failure reporting operations failureReport OPERATION ::= { --Timer m ARGUMENT FailureReportArg RESULT FailureReportRes -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | unknownSubscriber} CODE local:25 } -- gprs notification operations noteMsPresentForGprs OPERATION ::= { --Timer m ARGUMENT NoteMsPresentForGprsArg RESULT NoteMsPresentForGprsRes -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | unknownSubscriber} CODE local:26 } noteMM-Event OPERATION ::= { --Timer m ARGUMENT NoteMM-EventArg RESULT NoteMM-EventRes ERRORS { dataMissing | unexpectedDataValue | unknownSubscriber | mm-EventNotSupported} CODE local:89 } -- vcsg location registration operations updateVcsgLocation OPERATION ::= { --Timer m ARGUMENT UpdateVcsgLocationArg RESULT UpdateVcsgLocationRes ERRORS { systemFailure | unexpectedDataValue | unknownSubscriber} CODE local:53 } cancelVcsgLocation OPERATION ::= { --Timer m ARGUMENT CancelVcsgLocationArg RESULT CancelVcsgLocationRes -- optional ERRORS { dataMissing | unexpectedDataValue} CODE local:36 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-MS-DataTypes.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.1 Mobile Service data types MAP-MS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MS-DataTypes (11) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS -- WS modification: for Ericsson proprietary extensions RequestedEquipmentInfo, TripletList, QuintupletList, -- End WS modification -- location registration types UpdateLocationArg, UpdateLocationRes, CancelLocationArg, CancelLocationRes, PurgeMS-Arg, PurgeMS-Res, SendIdentificationArg, SendIdentificationRes, UpdateGprsLocationArg, UpdateGprsLocationRes, IST-SupportIndicator, SupportedLCS-CapabilitySets, UpdateVcsgLocationArg, UpdateVcsgLocationRes, CancelVcsgLocationArg, CancelVcsgLocationRes, -- handover types ForwardAccessSignalling-Arg, PrepareHO-Arg, PrepareHO-Res, PrepareSubsequentHO-Arg, PrepareSubsequentHO-Res, ProcessAccessSignalling-Arg, SendEndSignal-Arg, SendEndSignal-Res, -- authentication management types SendAuthenticationInfoArg, SendAuthenticationInfoRes, AuthenticationFailureReportArg, AuthenticationFailureReportRes, -- security management types Kc, Cksn, -- equipment management types CheckIMEI-Arg, CheckIMEI-Res, -- subscriber management types InsertSubscriberDataArg, InsertSubscriberDataRes, LSAIdentity, DeleteSubscriberDataArg, DeleteSubscriberDataRes, Ext-QoS-Subscribed, Ext2-QoS-Subscribed, Ext3-QoS-Subscribed, Ext4-QoS-Subscribed, SubscriberData, ODB-Data, SubscriberStatus, ZoneCodeList, maxNumOfZoneCodes, O-CSI, D-CSI, O-BcsmCamelTDPCriteriaList, T-BCSM-CAMEL-TDP-CriteriaList, SS-CSI, ServiceKey, DefaultCallHandling, DefaultSMS-Handling, DefaultGPRS-Handling, CamelCapabilityHandling, BasicServiceCriteria, SupportedCamelPhases, OfferedCamel4CSIs, OfferedCamel4Functionalities, maxNumOfCamelTDPData, CUG-Index, CUG-Info, CUG-Interlock, InterCUG-Restrictions, IntraCUG-Options, NotificationToMSUser, QoS-Subscribed, IST-AlertTimerValue, T-CSI, T-BcsmTriggerDetectionPoint, APN, AdditionalInfo, -- fault recovery types ResetArg, RestoreDataArg, RestoreDataRes, -- provide subscriber info types GeographicalInformation, MS-Classmark2, GPRSMSClass, -- subscriber information enquiry types ProvideSubscriberInfoArg, ProvideSubscriberInfoRes, SubscriberInfo, LocationInformation, LocationInformationGPRS, SubscriberState, GPRSChargingID, MNPInfoRes, RouteingNumber, -- any time information enquiry types AnyTimeInterrogationArg, AnyTimeInterrogationRes, -- any time information handling types AnyTimeSubscriptionInterrogationArg, AnyTimeSubscriptionInterrogationRes, AnyTimeModificationArg, AnyTimeModificationRes, -- subscriber data modification notification types NoteSubscriberDataModifiedArg, NoteSubscriberDataModifiedRes, -- gprs location information retrieval types SendRoutingInfoForGprsArg, SendRoutingInfoForGprsRes, -- failure reporting types FailureReportArg, FailureReportRes, -- gprs notification types NoteMsPresentForGprsArg, NoteMsPresentForGprsRes, -- Mobility Management types NoteMM-EventArg, NoteMM-EventRes, NumberPortabilityStatus, PagingArea, -- VGCS / VBS types types GroupId, Long-GroupId, AdditionalSubscriptions ; IMPORTS maxNumOfSS, SS-SubscriptionOption, SS-List, SS-ForBS-Code, Password, OverrideCategory, CliRestrictionOption FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version20 (20)} SS-Code FROM MAP-SS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-Code (15) version20 (20)} Ext-BearerServiceCode FROM MAP-BS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-BS-Code (20) version20 (20)} Ext-TeleserviceCode FROM MAP-TS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-TS-Code (19) version20 (20)} AddressString, ISDN-AddressString, ISDN-SubaddressString, FTN-AddressString, AccessNetworkSignalInfo, IMSI, IMEI, TMSI, HLR-List, LMSI, Identity, GlobalCellId, CellGlobalIdOrServiceAreaIdOrLAI, Ext-BasicServiceCode, NAEA-PreferredCI, EMLPP-Info, MC-SS-Info, SubscriberIdentity, AgeOfLocationInformation, LCSClientExternalID, LCSClientInternalID, Ext-SS-Status, LCSServiceTypeID, ASCI-CallReference, TBCD-STRING, LAIFixedLength, PLMN-Id, EMLPP-Priority, GSN-Address, DiameterIdentity, Time, E-UTRAN-CGI, NR-CGI, TA-Id, NR-TA-Id, RAIdentity, NetworkNodeDiameterAddress FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} AbsentSubscriberDiagnosticSM FROM MAP-ER-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ER-DataTypes (17) version20 (20)} TracePropagationList FROM MAP-OM-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-OM-DataTypes (12) version20 (20)} ; -- location registration types UpdateLocationArg ::= SEQUENCE { imsi IMSI, msc-Number [1] ISDN-AddressString, vlr-Number ISDN-AddressString, lmsi [10] LMSI OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... , vlr-Capability [6] VLR-Capability OPTIONAL, informPreviousNetworkEntity [11] NULL OPTIONAL, cs-LCS-NotSupportedByUE [12] NULL OPTIONAL, v-gmlc-Address [2] GSN-Address OPTIONAL, add-info [13] ADD-Info OPTIONAL, pagingArea [14] PagingArea OPTIONAL, skipSubscriberDataUpdate [15] NULL OPTIONAL, -- The skipSubscriberDataUpdate parameter in the UpdateLocationArg and the ADD-Info -- structures carry the same semantic. restorationIndicator [16] NULL OPTIONAL, eplmn-List [3] EPLMN-List OPTIONAL, mme-DiameterAddress [4] NetworkNodeDiameterAddress OPTIONAL } VLR-Capability ::= SEQUENCE{ supportedCamelPhases [0] SupportedCamelPhases OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... , solsaSupportIndicator [2] NULL OPTIONAL, istSupportIndicator [1] IST-SupportIndicator OPTIONAL, superChargerSupportedInServingNetworkEntity [3] SuperChargerInfo OPTIONAL, longFTN-Supported [4] NULL OPTIONAL, supportedLCS-CapabilitySets [5] SupportedLCS-CapabilitySets OPTIONAL, offeredCamel4CSIs [6] OfferedCamel4CSIs OPTIONAL, supportedRAT-TypesIndicator [7] SupportedRAT-Types OPTIONAL, longGroupID-Supported [8] NULL OPTIONAL, mtRoamingForwardingSupported [9] NULL OPTIONAL, msisdn-lessOperation-Supported [10] NULL OPTIONAL, reset-ids-Supported [11] NULL OPTIONAL } SupportedRAT-Types::= BIT STRING { utran (0), geran (1), gan (2), i-hspa-evolution (3), e-utran (4), nb-iot (5)} (SIZE (2..8)) -- exception handling: bits 6 to 7 shall be ignored if received and not understood SuperChargerInfo ::= CHOICE { sendSubscriberData [0] NULL, subscriberDataStored [1] AgeIndicator } AgeIndicator ::= OCTET STRING (SIZE (1..6)) -- The internal structure of this parameter is implementation specific. IST-SupportIndicator ::= ENUMERATED { basicISTSupported (0), istCommandSupported (1), ...} -- exception handling: -- reception of values > 1 shall be mapped to ' istCommandSupported ' SupportedLCS-CapabilitySets ::= BIT STRING { lcsCapabilitySet1 (0), lcsCapabilitySet2 (1), lcsCapabilitySet3 (2), lcsCapabilitySet4 (3) , lcsCapabilitySet5 (4) } (SIZE (2..16)) -- Core network signalling capability set1 indicates LCS Release98 or Release99 version. -- Core network signalling capability set2 indicates LCS Release4. -- Core network signalling capability set3 indicates LCS Release5. -- Core network signalling capability set4 indicates LCS Release6. -- Core network signalling capability set5 indicates LCS Release7 or later version. -- A node shall mark in the BIT STRING all LCS capability sets it supports. -- If no bit is set then the sending node does not support LCS. -- If the parameter is not sent by an VLR then the VLR may support at most capability set1. -- If the parameter is not sent by an SGSN then no support for LCS is assumed. -- An SGSN is not allowed to indicate support of capability set1. -- Other bits than listed above shall be discarded. UpdateLocationRes ::= SEQUENCE { hlr-Number ISDN-AddressString, extensionContainer ExtensionContainer OPTIONAL, ..., add-Capability NULL OPTIONAL, pagingArea-Capability [0]NULL OPTIONAL } ADD-Info ::= SEQUENCE { imeisv [0] IMEI, skipSubscriberDataUpdate [1] NULL OPTIONAL, -- The skipSubscriberDataUpdate parameter in the UpdateLocationArg and the ADD-Info -- structures carry the same semantic. ...} PagingArea ::= SEQUENCE SIZE (1..5) OF LocationArea LocationArea ::= CHOICE { laiFixedLength [0] LAIFixedLength, lac [1] LAC} LAC ::= OCTET STRING (SIZE (2)) -- Refers to Location Area Code of the Location Area Identification defined in -- 3GPP TS 23.003 [17]. -- Location Area Code according to 3GPP TS 24.008 [35] CancelLocationArg ::= [3] SEQUENCE { identity Identity, cancellationType CancellationType OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., typeOfUpdate [0] TypeOfUpdate OPTIONAL, mtrf-SupportedAndAuthorized [1] NULL OPTIONAL, mtrf-SupportedAndNotAuthorized [2] NULL OPTIONAL, newMSC-Number [3] ISDN-AddressString OPTIONAL, newVLR-Number [4] ISDN-AddressString OPTIONAL, new-lmsi [5] LMSI OPTIONAL, reattach-Required [6] NULL OPTIONAL } --mtrf-SupportedAndAuthorized and mtrf-SupportedAndNotAuthorized shall not -- both be present TypeOfUpdate ::= ENUMERATED { sgsn-change (0), mme-change (1), ...} -- TypeOfUpdate shall be absent if CancellationType is different from updateProcedure -- and initialAttachProcedure CancellationType ::= ENUMERATED { updateProcedure (0), subscriptionWithdraw (1), ..., initialAttachProcedure (2)} -- The HLR shall not send values other than listed above CancelLocationRes ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} PurgeMS-Arg ::= [3] SEQUENCE { imsi IMSI, vlr-Number [0] ISDN-AddressString OPTIONAL, sgsn-Number [1] ISDN-AddressString OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., locationInformation [2] LocationInformation OPTIONAL, locationInformationGPRS [3] LocationInformationGPRS OPTIONAL, locationInformationEPS [4] LocationInformationEPS OPTIONAL } PurgeMS-Res ::= SEQUENCE { freezeTMSI [0] NULL OPTIONAL, freezeP-TMSI [1] NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., freezeM-TMSI [2] NULL OPTIONAL } SendIdentificationArg ::= SEQUENCE { tmsi TMSI, numberOfRequestedVectors NumberOfRequestedVectors OPTIONAL, -- within a dialogue numberOfRequestedVectors shall be present in -- the first service request and shall not be present in subsequent service requests. -- If received in a subsequent service request it shall be discarded. segmentationProhibited NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., msc-Number ISDN-AddressString OPTIONAL, previous-LAI [0] LAIFixedLength OPTIONAL, hopCounter [1] HopCounter OPTIONAL, mtRoamingForwardingSupported [2] NULL OPTIONAL, newVLR-Number [3] ISDN-AddressString OPTIONAL, new-lmsi [4] LMSI OPTIONAL } HopCounter ::= INTEGER (0..3) SendIdentificationRes ::= [3] SEQUENCE { imsi IMSI OPTIONAL, -- IMSI shall be present in the first (or only) service response of a dialogue. -- If multiple service requests are present in a dialogue then IMSI -- shall not be present in any service response other than the first one. authenticationSetList AuthenticationSetList OPTIONAL, currentSecurityContext [2]CurrentSecurityContext OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ..., lastUsedLtePLMN-Id [4] PLMN-Id OPTIONAL, mtCallPendingFlag [5] NULL OPTIONAL } -- authentication management types AuthenticationSetList ::= CHOICE { tripletList [0] TripletList, quintupletList [1] QuintupletList } TripletList ::= SEQUENCE SIZE (1..5) OF AuthenticationTriplet QuintupletList ::= SEQUENCE SIZE (1..5) OF AuthenticationQuintuplet AuthenticationTriplet ::= SEQUENCE { rand RAND, sres SRES, kc Kc, ...} AuthenticationQuintuplet ::= SEQUENCE { rand RAND, xres XRES, ck CK, ik IK, autn AUTN, ...} CurrentSecurityContext ::= CHOICE { gsm-SecurityContextData [0] GSM-SecurityContextData, umts-SecurityContextData [1] UMTS-SecurityContextData } GSM-SecurityContextData ::= SEQUENCE { kc Kc, cksn Cksn, ... } UMTS-SecurityContextData ::= SEQUENCE { ck CK, ik IK, ksi KSI, ... } RAND ::= OCTET STRING (SIZE (16)) SRES ::= OCTET STRING (SIZE (4)) Kc ::= OCTET STRING (SIZE (8)) XRES ::= OCTET STRING (SIZE (4..16)) CK ::= OCTET STRING (SIZE (16)) IK ::= OCTET STRING (SIZE (16)) AUTN ::= OCTET STRING (SIZE (16)) AUTS ::= OCTET STRING (SIZE (14)) Cksn ::= OCTET STRING (SIZE (1)) -- The internal structure is defined in 3GPP TS 24.008 KSI ::= OCTET STRING (SIZE (1)) -- The internal structure is defined in 3GPP TS 24.008 AuthenticationFailureReportArg ::= SEQUENCE { imsi IMSI, failureCause FailureCause, extensionContainer ExtensionContainer OPTIONAL, ... , re-attempt BOOLEAN OPTIONAL, accessType AccessType OPTIONAL, rand RAND OPTIONAL, vlr-Number [0] ISDN-AddressString OPTIONAL, sgsn-Number [1] ISDN-AddressString OPTIONAL } AccessType ::= ENUMERATED { call (0), emergencyCall (1), locationUpdating (2), supplementaryService (3), shortMessage (4), gprsAttach (5), routingAreaUpdating (6), serviceRequest (7), pdpContextActivation (8), pdpContextDeactivation (9), ..., gprsDetach (10)} -- exception handling: -- received values greater than 10 shall be ignored. AuthenticationFailureReportRes ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} FailureCause ::= ENUMERATED { wrongUserResponse (0), wrongNetworkSignature (1)} -- gprs location registration types UpdateGprsLocationArg ::= SEQUENCE { imsi IMSI, sgsn-Number ISDN-AddressString, sgsn-Address GSN-Address, extensionContainer ExtensionContainer OPTIONAL, ... , sgsn-Capability [0] SGSN-Capability OPTIONAL, informPreviousNetworkEntity [1] NULL OPTIONAL, ps-LCS-NotSupportedByUE [2] NULL OPTIONAL, v-gmlc-Address [3] GSN-Address OPTIONAL, add-info [4] ADD-Info OPTIONAL, eps-info [5] EPS-Info OPTIONAL, servingNodeTypeIndicator [6] NULL OPTIONAL, skipSubscriberDataUpdate [7] NULL OPTIONAL, usedRAT-Type [8] Used-RAT-Type OPTIONAL, gprsSubscriptionDataNotNeeded [9] NULL OPTIONAL, nodeTypeIndicator [10] NULL OPTIONAL, areaRestricted [11] NULL OPTIONAL, ue-reachableIndicator [12] NULL OPTIONAL, epsSubscriptionDataNotNeeded [13] NULL OPTIONAL, ue-srvcc-Capability [14] UE-SRVCC-Capability OPTIONAL, eplmn-List [15] EPLMN-List OPTIONAL, mmeNumberforMTSMS [16] ISDN-AddressString OPTIONAL, smsRegisterRequest [17] SMSRegisterRequest OPTIONAL, sms-Only [18] NULL OPTIONAL, removalofMMERegistrationforSMS [22] NULL OPTIONAL, sgsn-Name [19] DiameterIdentity OPTIONAL, sgsn-Realm [20] DiameterIdentity OPTIONAL, lgd-supportIndicator [21] NULL OPTIONAL, adjacentPLMN-List [23] AdjacentPLMN-List OPTIONAL } SMSRegisterRequest::= ENUMERATED { sms-registration-required (0), sms-registration-not-preferred (1), no-preference (2), ...} Used-RAT-Type::= ENUMERATED { utran (0), geran (1), gan (2), i-hspa-evolution (3), e-utran (4), ..., nb-iot (5)} -- The value e-utran indicates wide-band e-utran EPS-Info ::= CHOICE{ pdn-gw-update [0] PDN-GW-Update, isr-Information [1] ISR-Information } PDN-GW-Update ::= SEQUENCE{ apn [0] APN OPTIONAL, pdn-gw-Identity [1] PDN-GW-Identity OPTIONAL, contextId [2] ContextId OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ... } -- The pdn-gw-update IE shall include the pdn-gw-Identity, and the apn or/and the contextID. -- The HSS shall ignore the eps-info IE if it includes a pdn-gw-update IE which does not -- include pdn-gw-Identity. -- The pdn-gw-Identity is defined as OPTIONAL for backward compatility reason with -- outdated earlier versions of this specification. ISR-Information::= BIT STRING { updateLocation (0), cancelSGSN (1), initialAttachIndicator (2)} (SIZE (3..8)) -- exception handling: reception of unknown bit assignments in the -- ISR-Information data type shall be discarded by the receiver SGSN-Capability ::= SEQUENCE{ solsaSupportIndicator NULL OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ... , superChargerSupportedInServingNetworkEntity [2] SuperChargerInfo OPTIONAL , gprsEnhancementsSupportIndicator [3] NULL OPTIONAL, supportedCamelPhases [4] SupportedCamelPhases OPTIONAL, supportedLCS-CapabilitySets [5] SupportedLCS-CapabilitySets OPTIONAL, offeredCamel4CSIs [6] OfferedCamel4CSIs OPTIONAL, smsCallBarringSupportIndicator [7] NULL OPTIONAL, supportedRAT-TypesIndicator [8] SupportedRAT-Types OPTIONAL, supportedFeatures [9] SupportedFeatures OPTIONAL, t-adsDataRetrieval [10] NULL OPTIONAL, homogeneousSupportOfIMSVoiceOverPSSessions [11] BOOLEAN OPTIONAL, -- "true" indicates homogeneous support, "false" indicates homogeneous non-support -- in the complete SGSN or MME area cancellationTypeInitialAttach [12] NULL OPTIONAL, msisdn-lessOperation-Supported [14] NULL OPTIONAL, updateofHomogeneousSupportOfIMSVoiceOverPSSessions [15] NULL OPTIONAL, reset-ids-Supported [16] NULL OPTIONAL, ext-SupportedFeatures [17] Ext-SupportedFeatures OPTIONAL } -- the supportedFeatures , t-adsDataRetrieval, -- homogeneousSupportOfIMSVoiceOverPSSessions -- /updateofHomogeneousSupportOfIMSVoiceOverPSSessions and -- ext-SupportedFeatures are also applied to the MME/IWF SupportedFeatures::= BIT STRING { odb-all-apn (0), odb-HPLMN-APN (1), odb-VPLMN-APN (2), odb-all-og (3), odb-all-international-og (4), odb-all-int-og-not-to-HPLMN-country (5), odb-all-interzonal-og (6), odb-all-interzonal-og-not-to-HPLMN-country (7), odb-all-interzonal-og-and-internat-og-not-to-HPLMN-country (8), regSub (9), trace (10), lcs-all-PrivExcep (11), lcs-universal (12), lcs-CallSessionRelated (13), lcs-CallSessionUnrelated (14), lcs-PLMN-operator (15), lcs-ServiceType (16), lcs-all-MOLR-SS (17), lcs-basicSelfLocation (18), lcs-autonomousSelfLocation (19), lcs-transferToThirdParty (20), sm-mo-pp (21), barring-OutgoingCalls (22), baoc (23), boic (24), boicExHC (25), localTimeZoneRetrieval (26), additionalMsisdn (27), smsInMME (28), smsInSGSN (29), ue-Reachability-Notification (30), state-Location-Information-Retrieval (31), partialPurge (32), gddInSGSN (33), sgsnCAMELCapability (34), pcscf-Restoration (35), dedicatedCoreNetworks (36), non-IP-PDN-Type-APNs (37), non-IP-PDP-Type-APNs (38), nrAsSecondaryRAT (39) } (SIZE (26..40)) -- for the definition and usage of the above features see the 3GPP TS 29.272 [144]. -- Additional supported features are encoded in Ext-SupportedFeatures bit string. Ext-SupportedFeatures ::= BIT STRING { unlicensedSpectrumAsSecondaryRAT (0) } (SIZE (1..40)) UE-SRVCC-Capability::= ENUMERATED { ue-srvcc-not-supported (0), ue-srvcc-supported (1), ...} UpdateGprsLocationRes ::= SEQUENCE { hlr-Number ISDN-AddressString, extensionContainer ExtensionContainer OPTIONAL, ..., add-Capability NULL OPTIONAL, sgsn-mmeSeparationSupported [0] NULL OPTIONAL, mmeRegisteredforSMS [1] NULL OPTIONAL } EPLMN-List ::= SEQUENCE SIZE (1..50) OF PLMN-Id AdjacentPLMN-List ::= SEQUENCE SIZE (1..50) OF PLMN-Id -- handover types ForwardAccessSignalling-Arg ::= [3] SEQUENCE { an-APDU AccessNetworkSignalInfo, integrityProtectionInfo [0] IntegrityProtectionInformation OPTIONAL, encryptionInfo [1] EncryptionInformation OPTIONAL, keyStatus [2] KeyStatus OPTIONAL, allowedGSM-Algorithms [4] AllowedGSM-Algorithms OPTIONAL, allowedUMTS-Algorithms [5] AllowedUMTS-Algorithms OPTIONAL, radioResourceInformation [6] RadioResourceInformation OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ..., radioResourceList [7] RadioResourceList OPTIONAL, bssmap-ServiceHandover [9] BSSMAP-ServiceHandover OPTIONAL, ranap-ServiceHandover [8] RANAP-ServiceHandover OPTIONAL, bssmap-ServiceHandoverList [10] BSSMAP-ServiceHandoverList OPTIONAL, currentlyUsedCodec [11] Codec OPTIONAL, iuSupportedCodecsList [12] SupportedCodecsList OPTIONAL, rab-ConfigurationIndicator [13] NULL OPTIONAL, iuSelectedCodec [14] Codec OPTIONAL, alternativeChannelType [15] RadioResourceInformation OPTIONAL, tracePropagationList [17] TracePropagationList OPTIONAL, aoipSupportedCodecsListAnchor [18] AoIPCodecsList OPTIONAL, aoipSelectedCodecTarget [19] AoIPCodec OPTIONAL, uesbi-Iu [20] UESBI-Iu OPTIONAL, imeisv [21] IMEI OPTIONAL } AllowedGSM-Algorithms ::= OCTET STRING (SIZE (1)) -- internal structure is coded as Algorithm identifier octet from -- Permitted Algorithms defined in 3GPP TS 48.008 -- A node shall mark all GSM algorithms that are allowed in MSC-B AllowedUMTS-Algorithms ::= SEQUENCE { integrityProtectionAlgorithms [0] PermittedIntegrityProtectionAlgorithms OPTIONAL, encryptionAlgorithms [1] PermittedEncryptionAlgorithms OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ...} PermittedIntegrityProtectionAlgorithms ::= OCTET STRING (SIZE (1..maxPermittedIntegrityProtectionAlgorithmsLength)) -- Octets contain a complete PermittedIntegrityProtectionAlgorithms data type -- as defined in 3GPP TS 25.413, encoded according to the encoding scheme -- mandated by 3GPP TS 25.413. -- Padding bits are included, if needed, in the least significant bits of the -- last octet of the octet string. maxPermittedIntegrityProtectionAlgorithmsLength INTEGER ::= 9 PermittedEncryptionAlgorithms ::= OCTET STRING (SIZE (1..maxPermittedEncryptionAlgorithmsLength)) -- Octets contain a complete PermittedEncryptionAlgorithms data type -- as defined in 3GPP TS 25.413, encoded according to the encoding scheme -- mandated by 3GPP TS 25.413 -- Padding bits are included, if needed, in the least significant bits of the -- last octet of the octet string. maxPermittedEncryptionAlgorithmsLength INTEGER ::= 9 KeyStatus ::= ENUMERATED { old (0), new (1), ...} -- exception handling: -- received values in range 2-31 shall be treated as "old" -- received values greater than 31 shall be treated as "new" PrepareHO-Arg ::= [3] SEQUENCE { targetCellId [0] GlobalCellId OPTIONAL, ho-NumberNotRequired NULL OPTIONAL, targetRNCId [1] RNCId OPTIONAL, an-APDU [2] AccessNetworkSignalInfo OPTIONAL, multipleBearerRequested [3] NULL OPTIONAL, imsi [4] IMSI OPTIONAL, integrityProtectionInfo [5] IntegrityProtectionInformation OPTIONAL, encryptionInfo [6] EncryptionInformation OPTIONAL, radioResourceInformation [7] RadioResourceInformation OPTIONAL, allowedGSM-Algorithms [9] AllowedGSM-Algorithms OPTIONAL, allowedUMTS-Algorithms [10] AllowedUMTS-Algorithms OPTIONAL, radioResourceList [11] RadioResourceList OPTIONAL, extensionContainer [8] ExtensionContainer OPTIONAL, ... , rab-Id [12] RAB-Id OPTIONAL, bssmap-ServiceHandover [13] BSSMAP-ServiceHandover OPTIONAL, ranap-ServiceHandover [14] RANAP-ServiceHandover OPTIONAL, bssmap-ServiceHandoverList [15] BSSMAP-ServiceHandoverList OPTIONAL, asciCallReference [20] ASCI-CallReference OPTIONAL, geran-classmark [16] GERAN-Classmark OPTIONAL, iuCurrentlyUsedCodec [17] Codec OPTIONAL, iuSupportedCodecsList [18] SupportedCodecsList OPTIONAL, rab-ConfigurationIndicator [19] NULL OPTIONAL, uesbi-Iu [21] UESBI-Iu OPTIONAL, imeisv [22] IMEI OPTIONAL, alternativeChannelType [23] RadioResourceInformation OPTIONAL, tracePropagationList [25] TracePropagationList OPTIONAL, aoipSupportedCodecsListAnchor [26] AoIPCodecsList OPTIONAL, regionalSubscriptionData [27] ZoneCodeList OPTIONAL, lclsGlobalCallReference [28] LCLS-GlobalCallReference OPTIONAL, lcls-Negotiation [29] LCLS-Negotiation OPTIONAL, lcls-Configuration-Preference [30] LCLS-ConfigurationPreference OPTIONAL, csg-SubscriptionDataList [31] CSG-SubscriptionDataList OPTIONAL } LCLS-GlobalCallReference ::= OCTET STRING (SIZE (13..15)) -- Octets are coded as specified in 3GPP TS 29.205 [146] LCLS-Negotiation::= BIT STRING { permission-indicator-not-allowed-bit (0), permission-indicator-spare-bit (1)} (SIZE (2..8)) --for definition and allowed combination of bits 0 and 1 see 3GPP TS 29.205 -- exception handling: bits 2 to 7 shall be ignored if received and not understood LCLS-ConfigurationPreference::= BIT STRING { forward-data-sending-indicator (0), backward-data-sending-indicator (1), forward-data-reception-indicator (2), backward-data-reception-indicator (3)} (SIZE (4..8)) -- exception handling: bits 4 to 7 shall be ignored if received and not understood BSSMAP-ServiceHandoverList ::= SEQUENCE SIZE (1.. maxNumOfServiceHandovers) OF BSSMAP-ServiceHandoverInfo BSSMAP-ServiceHandoverInfo ::= SEQUENCE { bssmap-ServiceHandover BSSMAP-ServiceHandover, rab-Id RAB-Id, -- RAB Identity is needed to relate the service handovers with the radio access bearers. ...} maxNumOfServiceHandovers INTEGER ::= 7 BSSMAP-ServiceHandover ::= OCTET STRING (SIZE (1)) -- Octets are coded according the Service Handover information element in -- 3GPP TS 48.008. RANAP-ServiceHandover ::= OCTET STRING (SIZE (1)) -- Octet contains a complete Service-Handover data type -- as defined in 3GPP TS 25.413, encoded according to the encoding scheme -- mandated by 3GPP TS 25.413 -- Padding bits are included in the least significant bits. RadioResourceList ::= SEQUENCE SIZE (1.. maxNumOfRadioResources) OF RadioResource RadioResource ::= SEQUENCE { radioResourceInformation RadioResourceInformation, rab-Id RAB-Id, -- RAB Identity is needed to relate the radio resources with the radio access bearers. ...} maxNumOfRadioResources INTEGER ::= 7 PrepareHO-Res ::= [3] SEQUENCE { handoverNumber [0] ISDN-AddressString OPTIONAL, relocationNumberList [1] RelocationNumberList OPTIONAL, an-APDU [2] AccessNetworkSignalInfo OPTIONAL, multicallBearerInfo [3] MulticallBearerInfo OPTIONAL, multipleBearerNotSupported NULL OPTIONAL, selectedUMTS-Algorithms [5] SelectedUMTS-Algorithms OPTIONAL, chosenRadioResourceInformation [6] ChosenRadioResourceInformation OPTIONAL, extensionContainer [4] ExtensionContainer OPTIONAL, ..., iuSelectedCodec [7] Codec OPTIONAL, iuAvailableCodecsList [8] CodecList OPTIONAL, aoipSelectedCodecTarget [9] AoIPCodec OPTIONAL, aoipAvailableCodecsListMap [10] AoIPCodecsList OPTIONAL } SelectedUMTS-Algorithms ::= SEQUENCE { integrityProtectionAlgorithm [0] ChosenIntegrityProtectionAlgorithm OPTIONAL, encryptionAlgorithm [1] ChosenEncryptionAlgorithm OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ...} ChosenIntegrityProtectionAlgorithm ::= OCTET STRING (SIZE (1)) -- Octet contains a complete IntegrityProtectionAlgorithm data type -- as defined in 3GPP TS 25.413, encoded according to the encoding scheme -- mandated by 3GPP TS 25.413 -- Padding bits are included in the least significant bits. ChosenEncryptionAlgorithm ::= OCTET STRING (SIZE (1)) -- Octet contains a complete EncryptionAlgorithm data type -- as defined in 3GPP TS 25.413, encoded according to the encoding scheme -- mandated by 3GPP TS 25.413 -- Padding bits are included in the least significant bits. ChosenRadioResourceInformation ::= SEQUENCE { chosenChannelInfo [0] ChosenChannelInfo OPTIONAL, chosenSpeechVersion [1] ChosenSpeechVersion OPTIONAL, ...} ChosenChannelInfo ::= OCTET STRING (SIZE (1)) -- Octets are coded according the Chosen Channel information element in 3GPP TS 48.008 ChosenSpeechVersion ::= OCTET STRING (SIZE (1)) -- Octets are coded according the Speech Version (chosen) information element in 3GPP TS -- 48.008 PrepareSubsequentHO-Arg ::= [3] SEQUENCE { targetCellId [0] GlobalCellId OPTIONAL, targetMSC-Number [1] ISDN-AddressString, targetRNCId [2] RNCId OPTIONAL, an-APDU [3] AccessNetworkSignalInfo OPTIONAL, selectedRab-Id [4] RAB-Id OPTIONAL, extensionContainer [5] ExtensionContainer OPTIONAL, ..., geran-classmark [6] GERAN-Classmark OPTIONAL, rab-ConfigurationIndicator [7] NULL OPTIONAL } PrepareSubsequentHO-Res ::= [3] SEQUENCE { an-APDU AccessNetworkSignalInfo, extensionContainer [0] ExtensionContainer OPTIONAL, ...} ProcessAccessSignalling-Arg ::= [3] SEQUENCE { an-APDU AccessNetworkSignalInfo, selectedUMTS-Algorithms [1] SelectedUMTS-Algorithms OPTIONAL, selectedGSM-Algorithm [2] SelectedGSM-Algorithm OPTIONAL, chosenRadioResourceInformation [3] ChosenRadioResourceInformation OPTIONAL, selectedRab-Id [4] RAB-Id OPTIONAL, extensionContainer [0] ExtensionContainer OPTIONAL, ..., iUSelectedCodec [5] Codec OPTIONAL, iuAvailableCodecsList [6] CodecList OPTIONAL, aoipSelectedCodecTarget [7] AoIPCodec OPTIONAL, aoipAvailableCodecsListMap [8] AoIPCodecsList OPTIONAL } AoIPCodecsList ::= SEQUENCE { codec1 [1] AoIPCodec, codec2 [2] AoIPCodec OPTIONAL, codec3 [3] AoIPCodec OPTIONAL, codec4 [4] AoIPCodec OPTIONAL, codec5 [5] AoIPCodec OPTIONAL, codec6 [6] AoIPCodec OPTIONAL, codec7 [7] AoIPCodec OPTIONAL, codec8 [8] AoIPCodec OPTIONAL, extensionContainer [9] ExtensionContainer OPTIONAL, ...} -- Codecs are sent in priority order where codec1 has highest priority AoIPCodec ::= OCTET STRING (SIZE (1..3)) -- The internal structure is defined as follows: -- octet 1 Coded as Speech Codec Elements in 3GPP TS 48.008 -- with the exception that FI, PI, PT and TF bits shall -- be set to 0 -- octets 2,3 Optional; in case of AMR codec types it defines -- the supported codec configurations as defined in -- 3GPP TS 48.008 SupportedCodecsList ::= SEQUENCE { utranCodecList [0] CodecList OPTIONAL, geranCodecList [1] CodecList OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ...} CodecList ::= SEQUENCE { codec1 [1] Codec, codec2 [2] Codec OPTIONAL, codec3 [3] Codec OPTIONAL, codec4 [4] Codec OPTIONAL, codec5 [5] Codec OPTIONAL, codec6 [6] Codec OPTIONAL, codec7 [7] Codec OPTIONAL, codec8 [8] Codec OPTIONAL, extensionContainer [9] ExtensionContainer OPTIONAL, ...} -- Codecs are sent in priority order where codec1 has highest priority Codec ::= OCTET STRING (SIZE (1..4)) -- The internal structure is defined as follows: -- octet 1 Coded as Codec Identification code in 3GPP TS 26.103 -- octets 2,3,4 Parameters for the Codec as defined in 3GPP TS -- 26.103, if available, length depending on the codec GERAN-Classmark ::= OCTET STRING (SIZE (2..87)) -- Octets are coded according the GERAN Classmark information element in 3GPP TS 48.008 SelectedGSM-Algorithm ::= OCTET STRING (SIZE (1)) -- internal structure is coded as Algorithm identifier octet from Chosen Encryption -- Algorithm defined in 3GPP TS 48.008 -- A node shall mark only the selected GSM algorithm SendEndSignal-Arg ::= [3] SEQUENCE { an-APDU AccessNetworkSignalInfo, extensionContainer [0] ExtensionContainer OPTIONAL, ...} SendEndSignal-Res ::= SEQUENCE { extensionContainer [0] ExtensionContainer OPTIONAL, ...} RNCId ::= OCTET STRING (SIZE (7)) -- The internal structure is defined as follows: -- octet 1 bits 4321 Mobile Country Code 1st digit -- bits 8765 Mobile Country Code 2nd digit -- octet 2 bits 4321 Mobile Country Code 3rd digit -- bits 8765 Mobile Network Code 3rd digit -- or filler (1111) for 2 digit MNCs -- octet 3 bits 4321 Mobile Network Code 1st digit -- bits 8765 Mobile Network Code 2nd digit -- octets 4 and 5 Location Area Code according to 3GPP TS 24.008 -- octets 6 and 7 RNC Id or Extended RNC Id value according to -- 3GPP TS 25.413 RelocationNumberList ::= SEQUENCE SIZE (1..maxNumOfRelocationNumber) OF RelocationNumber MulticallBearerInfo ::= INTEGER (1..maxNumOfRelocationNumber) RelocationNumber ::= SEQUENCE { handoverNumber ISDN-AddressString, rab-Id RAB-Id, -- RAB Identity is needed to relate the calls with the radio access bearers. ...} RAB-Id ::= INTEGER (1..maxNrOfRABs) maxNrOfRABs INTEGER ::= 255 maxNumOfRelocationNumber INTEGER ::= 7 RadioResourceInformation ::= OCTET STRING (SIZE (3..13)) -- Octets are coded according the Channel Type information element in 3GPP TS 48.008 IntegrityProtectionInformation ::= OCTET STRING (SIZE (18..maxNumOfIntegrityInfo)) -- Octets contain a complete IntegrityProtectionInformation data type -- as defined in 3GPP TS 25.413, encoded according to the encoding scheme -- mandated by 3GPP TS 25.413 -- Padding bits are included, if needed, in the least significant bits of the -- last octet of the octet string. maxNumOfIntegrityInfo INTEGER ::= 100 EncryptionInformation ::= OCTET STRING (SIZE (18..maxNumOfEncryptionInfo)) -- Octets contain a complete EncryptionInformation data type -- as defined in 3GPP TS 25.413, encoded according to the encoding scheme -- mandated by 3GPP TS 25.413 -- Padding bits are included, if needed, in the least significant bits of the -- last octet of the octet string. maxNumOfEncryptionInfo INTEGER ::= 100 -- authentication management types SendAuthenticationInfoArg ::= SEQUENCE { imsi [0] IMSI, numberOfRequestedVectors NumberOfRequestedVectors, segmentationProhibited NULL OPTIONAL, immediateResponsePreferred [1] NULL OPTIONAL, re-synchronisationInfo Re-synchronisationInfo OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ..., requestingNodeType [3] RequestingNodeType OPTIONAL, requestingPLMN-Id [4] PLMN-Id OPTIONAL, numberOfRequestedAdditional-Vectors [5] NumberOfRequestedVectors OPTIONAL, additionalVectorsAreForEPS [6] NULL OPTIONAL, ueUsageTypeRequestIndication [7] NULL OPTIONAL } NumberOfRequestedVectors ::= INTEGER (1..5) Re-synchronisationInfo ::= SEQUENCE { rand RAND, auts AUTS, ...} SendAuthenticationInfoRes ::= [3] SEQUENCE { authenticationSetList AuthenticationSetList OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., eps-AuthenticationSetList [2] EPS-AuthenticationSetList OPTIONAL, ueUsageType [3] UE-UsageType OPTIONAL } EPS-AuthenticationSetList ::= SEQUENCE SIZE (1..5) OF EPC-AV UE-UsageType::= OCTET STRING (SIZE (4)) -- octets are coded as defined in 3GPP TS 29.272 [144] EPC-AV ::= SEQUENCE { rand RAND, xres XRES, autn AUTN, kasme KASME, extensionContainer ExtensionContainer OPTIONAL, ...} KASME ::= OCTET STRING (SIZE (32)) RequestingNodeType ::= ENUMERATED { vlr (0), sgsn (1), ..., s-cscf (2), bsf (3), gan-aaa-server (4), wlan-aaa-server (5), mme (16), mme-sgsn (17) } -- the values 2, 3, 4 and 5 shall not be used on the MAP-D or Gr interfaces -- exception handling: -- received values in the range (6-15) shall be treated as "vlr" -- received values greater than 17 shall be treated as "sgsn" -- equipment management types CheckIMEI-Arg ::= SEQUENCE { imei IMEI, requestedEquipmentInfo RequestedEquipmentInfo, extensionContainer ExtensionContainer OPTIONAL, ...} CheckIMEI-Res ::= SEQUENCE { equipmentStatus EquipmentStatus OPTIONAL, bmuef UESBI-Iu OPTIONAL, extensionContainer [0] ExtensionContainer OPTIONAL, ...} RequestedEquipmentInfo::= BIT STRING { equipmentStatus (0), bmuef (1)} (SIZE (2..8)) -- exception handling: reception of unknown bit assignments in the -- RequestedEquipmentInfo data type shall be discarded by the receiver UESBI-Iu ::= SEQUENCE { uesbi-IuA [0] UESBI-IuA OPTIONAL, uesbi-IuB [1] UESBI-IuB OPTIONAL, ...} UESBI-IuA ::= BIT STRING (SIZE(1..128)) -- See 3GPP TS 25.413 UESBI-IuB ::= BIT STRING (SIZE(1..128)) -- See 3GPP TS 25.413 EquipmentStatus ::= ENUMERATED { permittedListed (0), prohibitedListed (1), trackingListed (2)} -- subscriber management types InsertSubscriberDataArg ::= SEQUENCE { imsi [0] IMSI OPTIONAL, COMPONENTS OF SubscriberData, extensionContainer [14] ExtensionContainer OPTIONAL, ... , naea-PreferredCI [15] NAEA-PreferredCI OPTIONAL, -- naea-PreferredCI is included at the discretion of the HLR operator. gprsSubscriptionData [16] GPRSSubscriptionData OPTIONAL, roamingRestrictedInSgsnDueToUnsupportedFeature [23] NULL OPTIONAL, networkAccessMode [24] NetworkAccessMode OPTIONAL, lsaInformation [25] LSAInformation OPTIONAL, lmu-Indicator [21] NULL OPTIONAL, lcsInformation [22] LCSInformation OPTIONAL, istAlertTimer [26] IST-AlertTimerValue OPTIONAL, superChargerSupportedInHLR [27] AgeIndicator OPTIONAL, mc-SS-Info [28] MC-SS-Info OPTIONAL, cs-AllocationRetentionPriority [29] CS-AllocationRetentionPriority OPTIONAL, sgsn-CAMEL-SubscriptionInfo [17] SGSN-CAMEL-SubscriptionInfo OPTIONAL, chargingCharacteristics [18] ChargingCharacteristics OPTIONAL, accessRestrictionData [19] AccessRestrictionData OPTIONAL, ics-Indicator [20] BOOLEAN OPTIONAL, eps-SubscriptionData [31] EPS-SubscriptionData OPTIONAL, csg-SubscriptionDataList [32] CSG-SubscriptionDataList OPTIONAL, ue-ReachabilityRequestIndicator [33] NULL OPTIONAL, sgsn-Number [34] ISDN-AddressString OPTIONAL, mme-Name [35] DiameterIdentity OPTIONAL, subscribedPeriodicRAUTAUtimer [36] SubscribedPeriodicRAUTAUtimer OPTIONAL, vplmnLIPAAllowed [37] NULL OPTIONAL, mdtUserConsent [38] BOOLEAN OPTIONAL, subscribedPeriodicLAUtimer [39] SubscribedPeriodicLAUtimer OPTIONAL, vplmn-Csg-SubscriptionDataList [40] VPLMN-CSG-SubscriptionDataList OPTIONAL, additionalMSISDN [41] ISDN-AddressString OPTIONAL, psAndSMS-OnlyServiceProvision [42] NULL OPTIONAL, smsInSGSNAllowed [43] NULL OPTIONAL, cs-to-ps-SRVCC-Allowed-Indicator [44] NULL OPTIONAL, pcscf-Restoration-Request [45] NULL OPTIONAL, adjacentAccessRestrictionDataList [46] AdjacentAccessRestrictionDataList OPTIONAL, imsi-Group-Id-List [47] IMSI-GroupIdList OPTIONAL, ueUsageType [48] UE-UsageType OPTIONAL, userPlaneIntegrityProtectionIndicator [49] NULL OPTIONAL, dl-Buffering-Suggested-Packet-Count [50] DL-Buffering-Suggested-Packet-Count OPTIONAL, reset-Id-List [51] Reset-Id-List OPTIONAL, eDRX-Cycle-Length-List [52] EDRX-Cycle-Length-List OPTIONAL, ext-AccessRestrictionData [53] Ext-AccessRestrictionData OPTIONAL, iab-Operation-Allowed-Indicator [54] NULL OPTIONAL } -- If the Network Access Mode parameter is sent, it shall be present only in -- the first sequence if seqmentation is used EDRX-Cycle-Length-List ::= SEQUENCE SIZE (1..8) OF EDRX-Cycle-Length EDRX-Cycle-Length ::= SEQUENCE { rat-Type [0] Used-RAT-Type, eDRX-Cycle-Length-Value [1] EDRX-Cycle-Length-Value, ...} -- The eDRX-Cycle-Length contains the subscribed eDRX-Cycle-Length applicable to a -- a specific RAT Type. EDRX-Cycle-Length-Value ::= OCTET STRING (SIZE (1)) -- The EDRX-Cycle-Length-Value shall be encoded as specified in clause 7.3.216 of -- 3GPP TS 29.272 [144]. Reset-Id-List ::= SEQUENCE SIZE (1..50) OF Reset-Id Reset-Id ::= OCTET STRING (SIZE (1..4)) -- Reset-Ids shall be unique within the HPLMN. DL-Buffering-Suggested-Packet-Count ::= INTEGER (-1..2147483647) -- values are defined in 3GPP TS 29.272 [144] Group-Service-ID ::= INTEGER (0..4294967295) -- values are defined in 3GPP TS 29.272 [144] Local-GroupID ::= OCTET STRING (SIZE (1..10)) -- Refers to Local group ID defined by an operator identified by the PLMN-ID. -- for details see 3GPP TS 29.272 [144] IMSI-GroupIdList ::= SEQUENCE SIZE (1..50) OF IMSI-GroupId IMSI-GroupId ::= SEQUENCE { group-Service-Id [0] Group-Service-ID, plmnId [1] PLMN-Id, local-Group-ID [2] Local-GroupID, ...} SubscribedPeriodicRAUTAUtimer ::= INTEGER (0..4294967295) -- This parameter carries the subscribed periodic TAU/RAU timer value in seconds as -- specified in 3GPP TS 24.008 [35]. SubscribedPeriodicLAUtimer ::= INTEGER (0..4294967295) -- This parameter carries the subscribed periodic LAU timer value in seconds as -- specified in 3GPP TS 24.008 [35]. CSG-SubscriptionDataList ::= SEQUENCE SIZE (1..50) OF CSG-SubscriptionData CSG-SubscriptionData ::= SEQUENCE { csg-Id CSG-Id, expirationDate Time OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., lipa-AllowedAPNList [0] LIPA-AllowedAPNList OPTIONAL, plmn-Id [1] PLMN-Id OPTIONAL } VPLMN-CSG-SubscriptionDataList ::= SEQUENCE SIZE (1..50) OF CSG-SubscriptionData CSG-Id ::= BIT STRING (SIZE (27)) -- coded according to 3GPP TS 23.003 [17]. LIPA-AllowedAPNList ::= SEQUENCE SIZE (1..maxNumOfLIPAAllowedAPN) OF APN maxNumOfLIPAAllowedAPN INTEGER ::= 50 EPS-SubscriptionData ::= SEQUENCE { apn-oi-Replacement [0] APN-OI-Replacement OPTIONAL, -- this apn-oi-Replacement refers to the UE level apn-oi-Replacement. rfsp-id [2] RFSP-ID OPTIONAL, ambr [3] AMBR OPTIONAL, apn-ConfigurationProfile [4] APN-ConfigurationProfile OPTIONAL, stn-sr [6] ISDN-AddressString OPTIONAL, extensionContainer [5] ExtensionContainer OPTIONAL, ..., mps-CSPriority [7] NULL OPTIONAL, mps-EPSPriority [8] NULL OPTIONAL, subscribed-vsrvcc [9] NULL OPTIONAL } -- mps-CSPriority by its presence indicates that the UE is subscribed to the eMLPP in -- the CS domain, referring to the 3GPP TS 29.272 [144] for details. -- mps-EPSPriority by its presence indicates that the UE is subscribed to the MPS in -- the EPS domain, referring to the 3GPP TS 29.272 [144] for details. -- -- subscribed-vsrvcc by its presence indicates that the UE is subscribed to the vSRVCC in -- the EPS domain, referring to the 3GPP TS 29.272 [144] for details. APN-OI-Replacement ::= OCTET STRING (SIZE (9..100)) -- Octets are coded as APN Operator Identifier according to TS 3GPP TS 23.003 [17] RFSP-ID ::= INTEGER (1..256) APN-ConfigurationProfile ::= SEQUENCE { defaultContext ContextId, completeDataListIncluded NULL OPTIONAL, -- If segmentation is used, completeDataListIncluded may only be present in the -- first segment of APN-ConfigurationProfile. epsDataList [1] EPS-DataList, extensionContainer [2] ExtensionContainer OPTIONAL, ... , additionalDefaultContext [3] ContextId OPTIONAL -- for details see the 3GPP TS 29.272 [144]. } EPS-DataList ::= SEQUENCE SIZE (1..maxNumOfAPN-Configurations) OF APN-Configuration maxNumOfAPN-Configurations INTEGER ::= 50 APN-Configuration ::= SEQUENCE { contextId [0] ContextId, pdn-Type [1] PDN-Type, servedPartyIP-IPv4-Address [2] PDP-Address OPTIONAL, apn [3] APN, eps-qos-Subscribed [4] EPS-QoS-Subscribed, pdn-gw-Identity [5] PDN-GW-Identity OPTIONAL, pdn-gw-AllocationType [6] PDN-GW-AllocationType OPTIONAL, vplmnAddressAllowed [7] NULL OPTIONAL, chargingCharacteristics [8] ChargingCharacteristics OPTIONAL, ambr [9] AMBR OPTIONAL, specificAPNInfoList [10] SpecificAPNInfoList OPTIONAL, extensionContainer [11] ExtensionContainer OPTIONAL, servedPartyIP-IPv6-Address [12] PDP-Address OPTIONAL, ..., apn-oi-Replacement [13] APN-OI-Replacement OPTIONAL, -- this apn-oi-Replacement refers to the APN level apn-oi-Replacement. sipto-Permission [14] SIPTO-Permission OPTIONAL, lipa-Permission [15] LIPA-Permission OPTIONAL, restoration-Priority [16] Restoration-Priority OPTIONAL, sipto-local-network-Permission [17] SIPTO-Local-Network-Permission OPTIONAL, wlan-offloadability [18] WLAN-Offloadability OPTIONAL, non-IP-PDN-Type-Indicator [19] NULL OPTIONAL, nIDD-Mechanism [20] NIDD-Mechanism OPTIONAL, sCEF-ID [21] FQDN OPTIONAL, pdn-ConnectionContinuity [22] PDN-ConnectionContinuity OPTIONAL -- absence of pdn-ConnectionContinuity indicates that the handling is left to -- local VPLMN policy } PDN-ConnectionContinuity ::= ENUMERATED { maintainPDN-Connection (0), disconnectPDN-ConnectionWithReactivationRequest (1), disconnectPDN-ConnectionWithoutReactivationRequest (2) } NIDD-Mechanism ::= ENUMERATED { sGi-based-data-delivery (0), sCEF-based-data-delivery (1) -- The default value, when this information element is not present, is -- sGi-based-data-delivery (0) } PDN-Type ::= OCTET STRING (SIZE (1)) -- Octet is coded as follows: -- Bits -- 3 2 1 -- 0 0 1 IPv4 -- 0 1 0 IPv6 -- 0 1 1 IPv4v6 -- 1 0 0 IPv4_or_IPv6 -- Bits 8-4 shall be coded as zero. -- for details see 3GPP TS 29.272 [144] EPS-QoS-Subscribed ::= SEQUENCE { qos-Class-Identifier [0] QoS-Class-Identifier, allocation-Retention-Priority [1] Allocation-Retention-Priority, extensionContainer [2] ExtensionContainer OPTIONAL, ... } AMBR ::= SEQUENCE { max-RequestedBandwidth-UL [0] Bandwidth, max-RequestedBandwidth-DL [1] Bandwidth, extensionContainer [2] ExtensionContainer OPTIONAL, ..., extended-Max-RequestedBandwidth-UL [3] BandwidthExt OPTIONAL, extended-Max-RequestedBandwidth-DL [4] BandwidthExt OPTIONAL -- extended-Max-RequestedBandwidth-UL/DL shall be populated according to the -- description of the corresponding parameters in 3GPP TS 29.272 [144] } SpecificAPNInfoList ::= SEQUENCE SIZE (1..maxNumOfSpecificAPNInfos) OF SpecificAPNInfo maxNumOfSpecificAPNInfos INTEGER ::= 50 SpecificAPNInfo ::= SEQUENCE { apn [0] APN, pdn-gw-Identity [1] PDN-GW-Identity, extensionContainer [2] ExtensionContainer OPTIONAL, ... } Bandwidth ::= INTEGER -- bits per second BandwidthExt ::= INTEGER -- kilobits per second QoS-Class-Identifier ::= INTEGER (1..9) -- values are defined in 3GPP TS 29.212 Allocation-Retention-Priority ::= SEQUENCE { priority-level [0] INTEGER, pre-emption-capability [1] BOOLEAN OPTIONAL, pre-emption-vulnerability [2] BOOLEAN OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ... } PDN-GW-Identity ::= SEQUENCE { pdn-gw-ipv4-Address [0] PDP-Address OPTIONAL, pdn-gw-ipv6-Address [1] PDP-Address OPTIONAL, pdn-gw-name [2] FQDN OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ... } FQDN ::= OCTET STRING (SIZE (9..255)) PDN-GW-AllocationType ::= ENUMERATED { static (0), dynamic (1)} WLAN-Offloadability ::= SEQUENCE { wlan-offloadability-EUTRAN [0] WLAN-Offloadability-Indication OPTIONAL, wlan-offloadability-UTRAN [1] WLAN-Offloadability-Indication OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ... } WLAN-Offloadability-Indication ::= ENUMERATED { notAllowed (0), allowed (1)} AccessRestrictionData ::= BIT STRING { utranNotAllowed (0), geranNotAllowed (1), ganNotAllowed (2), i-hspa-evolutionNotAllowed (3), wb-e-utranNotAllowed (4), ho-toNon3GPP-AccessNotAllowed (5), nb-iotNotAllowed (6), enhancedCoverageNotAllowed (7) } (SIZE (2..8)) -- exception handling: -- The VLR shall ignore the access restriction data related to an access type not -- supported by the node. -- The handling of the access restriction data by the SGSN is described in clause -- 5.3.19 of TS 23.060, in clause 7.5.3 of TS 29.060 and clause 7.3.6 of TS 29.274. -- Additional access restrictions are encoded in Ext-AccessRestrictionData bit string. Ext-AccessRestrictionData ::= BIT STRING { nrAsSecondaryRATNotAllowed (0), unlicensedSpectrumAsSecondaryRATNotAllowed (1) } (SIZE (1..32)) AdjacentAccessRestrictionDataList ::= SEQUENCE SIZE (1..50) OF AdjacentAccessRestrictionData AdjacentAccessRestrictionData ::= SEQUENCE { plmnId [0] PLMN-Id, accessRestrictionData [1] AccessRestrictionData, ... , ext-AccessRestrictionData [2] Ext-AccessRestrictionData OPTIONAL } CS-AllocationRetentionPriority ::= OCTET STRING (SIZE (1)) -- This data type encodes each priority level defined in TS 23.107 as the binary value -- of the priority level. IST-AlertTimerValue ::= INTEGER (15..255) LCSInformation ::= SEQUENCE { gmlc-List [0] GMLC-List OPTIONAL, lcs-PrivacyExceptionList [1] LCS-PrivacyExceptionList OPTIONAL, molr-List [2] MOLR-List OPTIONAL, ..., add-lcs-PrivacyExceptionList [3] LCS-PrivacyExceptionList OPTIONAL } -- add-lcs-PrivacyExceptionList may be sent only if lcs-PrivacyExceptionList is -- present and contains four instances of LCS-PrivacyClass. If the mentioned condition -- is not satisfied the receiving node shall discard add-lcs-PrivacyExceptionList. -- If an LCS-PrivacyClass is received both in lcs-PrivacyExceptionList and in -- add-lcs-PrivacyExceptionList with the same SS-Code, then the error unexpected -- data value shall be returned. GMLC-List ::= SEQUENCE SIZE (1..maxNumOfGMLC) OF ISDN-AddressString -- if segmentation is used, the complete GMLC-List shall be sent in one segment maxNumOfGMLC INTEGER ::= 5 NetworkAccessMode ::= ENUMERATED { packetAndCircuit (0), onlyCircuit (1), onlyPacket (2), ...} -- if unknown values are received in NetworkAccessMode -- they shall be discarded. GPRSDataList ::= SEQUENCE SIZE (1..maxNumOfPDP-Contexts) OF PDP-Context maxNumOfPDP-Contexts INTEGER ::= 50 PDP-Context ::= SEQUENCE { pdp-ContextId ContextId, pdp-Type [16] PDP-Type, pdp-Address [17] PDP-Address OPTIONAL, qos-Subscribed [18] QoS-Subscribed, vplmnAddressAllowed [19] NULL OPTIONAL, apn [20] APN, extensionContainer [21] ExtensionContainer OPTIONAL, ... , ext-QoS-Subscribed [0] Ext-QoS-Subscribed OPTIONAL, pdp-ChargingCharacteristics [1] ChargingCharacteristics OPTIONAL, ext2-QoS-Subscribed [2] Ext2-QoS-Subscribed OPTIONAL, -- ext2-QoS-Subscribed may be present only if ext-QoS-Subscribed is present. ext3-QoS-Subscribed [3] Ext3-QoS-Subscribed OPTIONAL, -- ext3-QoS-Subscribed may be present only if ext2-QoS-Subscribed is present. ext4-QoS-Subscribed [4] Ext4-QoS-Subscribed OPTIONAL, -- ext4-QoS-Subscribed may be present only if ext3-QoS-Subscribed is present. apn-oi-Replacement [5] APN-OI-Replacement OPTIONAL, -- this apn-oi-Replacement refers to the APN level apn-oi-Replacement and has -- higher priority than UE level apn-oi-Replacement. ext-pdp-Type [6] Ext-PDP-Type OPTIONAL, -- contains the value IPv4v6 defined in 3GPP TS 29.060 [105], if the PDP can be -- accessed by dual-stack UEs ext-pdp-Address [7] PDP-Address OPTIONAL, -- contains an additional IP address in case of dual-stack static IP address assignment -- for the UE. -- it may contain an IPv4 or an IPv6 address/prefix, and it may be present -- only if pdp-Address is present; if both are present, each parameter shall -- contain a different type of address (IPv4 or IPv6). ambr [10] AMBR OPTIONAL, -- this ambr contains the AMBR associated to the APN included in the -- PDP-Context (APN-AMBR). sipto-Permission [8] SIPTO-Permission OPTIONAL, lipa-Permission [9] LIPA-Permission OPTIONAL, restoration-Priority [11] Restoration-Priority OPTIONAL, sipto-local-network-Permission [12] SIPTO-Local-Network-Permission OPTIONAL, nIDD-Mechanism [13] NIDD-Mechanism OPTIONAL, sCEF-ID [14] FQDN OPTIONAL } Restoration-Priority ::= OCTET STRING (SIZE (1)) -- Octet 1: -- Restoration Priority. This octet encodes the Restoration Priority, -- as the binary value of the Restoration-Priority described in 3GPP TS 29.272 [144]. SIPTO-Permission ::= ENUMERATED { siptoAboveRanAllowed (0), siptoAboveRanNotAllowed (1) } SIPTO-Local-Network-Permission ::= ENUMERATED { siptoAtLocalNetworkAllowed (0), siptoAtLocalNetworkNotAllowed (1) } LIPA-Permission ::= ENUMERATED { lipaProhibited (0), lipaOnly (1), lipaConditional (2) } ContextId ::= INTEGER (1..maxNumOfPDP-Contexts) GPRSSubscriptionData ::= SEQUENCE { completeDataListIncluded NULL OPTIONAL, -- If segmentation is used, completeDataListIncluded may only be present in the -- first segment of GPRSSubscriptionData. gprsDataList [1] GPRSDataList, extensionContainer [2] ExtensionContainer OPTIONAL, ..., apn-oi-Replacement [3] APN-OI-Replacement OPTIONAL -- this apn-oi-Replacement refers to the UE level apn-oi-Replacement. } SGSN-CAMEL-SubscriptionInfo ::= SEQUENCE { gprs-CSI [0] GPRS-CSI OPTIONAL, mo-sms-CSI [1] SMS-CSI OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ..., mt-sms-CSI [3] SMS-CSI OPTIONAL, mt-smsCAMELTDP-CriteriaList [4] MT-smsCAMELTDP-CriteriaList OPTIONAL, mg-csi [5] MG-CSI OPTIONAL } GPRS-CSI ::= SEQUENCE { gprs-CamelTDPDataList [0] GPRS-CamelTDPDataList OPTIONAL, camelCapabilityHandling [1] CamelCapabilityHandling OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, notificationToCSE [3] NULL OPTIONAL, csi-Active [4] NULL OPTIONAL, ...} -- notificationToCSE and csi-Active shall not be present when GPRS-CSI is sent to SGSN. -- They may only be included in ATSI/ATM ack/NSDC message. -- GPRS-CamelTDPData and camelCapabilityHandling shall be present in -- the GPRS-CSI sequence. -- If GPRS-CSI is segmented, gprs-CamelTDPDataList and camelCapabilityHandling shall be -- present in the first segment GPRS-CamelTDPDataList ::= SEQUENCE SIZE (1..maxNumOfCamelTDPData) OF GPRS-CamelTDPData -- GPRS-CamelTDPDataList shall not contain more than one instance of -- GPRS-CamelTDPData containing the same value for gprs-TriggerDetectionPoint. GPRS-CamelTDPData ::= SEQUENCE { gprs-TriggerDetectionPoint [0] GPRS-TriggerDetectionPoint, serviceKey [1] ServiceKey, gsmSCF-Address [2] ISDN-AddressString, defaultSessionHandling [3] DefaultGPRS-Handling, extensionContainer [4] ExtensionContainer OPTIONAL, ... } DefaultGPRS-Handling ::= ENUMERATED { continueTransaction (0) , releaseTransaction (1) , ...} -- exception handling: -- reception of values in range 2-31 shall be treated as "continueTransaction" -- reception of values greater than 31 shall be treated as "releaseTransaction" GPRS-TriggerDetectionPoint ::= ENUMERATED { attach (1), attachChangeOfPosition (2), pdp-ContextEstablishment (11), pdp-ContextEstablishmentAcknowledgement (12), pdp-ContextChangeOfPosition (14), ... } -- exception handling: -- For GPRS-CamelTDPData sequences containing this parameter with any -- other value than the ones listed the receiver shall ignore the whole -- GPRS-CamelTDPDatasequence. APN ::= OCTET STRING (SIZE (2..63)) -- Octets are coded according to TS 3GPP TS 23.003 [17] PDP-Type ::= OCTET STRING (SIZE (2)) -- Octets are coded according to TS 3GPP TS 29.060 [105] -- Only the values PPP, IPv4, IPv6 and Non-IP are allowed for this parameter. Ext-PDP-Type ::= OCTET STRING (SIZE (2)) -- Octets are coded, similarly to PDP-Type, according to TS 3GPP TS 29.060 [105]. -- Only the value IPv4v6 is allowed for this parameter. PDP-Address ::= OCTET STRING (SIZE (1..16)) -- Octets are coded according to TS 3GPP TS 29.060 [105] -- The possible size values are: -- 1-7 octets X.25 address type -- 4 octets IPv4 address type -- 16 octets Ipv6 address type QoS-Subscribed ::= OCTET STRING (SIZE (3)) -- Octets are coded according to TS 3GPP TS 24.008 [35] Quality of Service Octets -- 3-5. Ext-QoS-Subscribed ::= OCTET STRING (SIZE (1..9)) -- OCTET 1: -- Allocation/Retention Priority (This octet encodes each priority level defined in -- 23.107 as the binary value of the priority level, declaration in 29.060) -- Octets 2-9 are coded according to 3GPP TS 24.008 [35] Quality of Service Octets -- 6-13. Ext2-QoS-Subscribed ::= OCTET STRING (SIZE (1..3)) -- Octets 1-3 are coded according to 3GPP TS 24.008 [35] Quality of Service Octets 14-16. -- If Quality of Service information is structured with 14 octet length, then -- Octet 1 is coded according to 3GPP TS 24.008 [35] Quality of Service Octet 14. Ext3-QoS-Subscribed ::= OCTET STRING (SIZE (1..2)) -- Octets 1-2 are coded according to 3GPP TS 24.008 [35] Quality of Service Octets 17-18. Ext4-QoS-Subscribed ::= OCTET STRING (SIZE (1)) -- Octet 1: -- Evolved Allocation/Retention Priority. This octet encodes the Priority Level (PL), -- the Preemption Capability (PCI) and Preemption Vulnerability (PVI) values, as -- described in 3GPP TS 29.060 [105]. ChargingCharacteristics ::= OCTET STRING (SIZE (2)) -- Octets are coded according to 3GPP TS 32.215. LSAOnlyAccessIndicator ::= ENUMERATED { accessOutsideLSAsAllowed (0), accessOutsideLSAsRestricted (1)} LSADataList ::= SEQUENCE SIZE (1..maxNumOfLSAs) OF LSAData maxNumOfLSAs INTEGER ::= 20 LSAData ::= SEQUENCE { lsaIdentity [0] LSAIdentity, lsaAttributes [1] LSAAttributes, lsaActiveModeIndicator [2] NULL OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} LSAInformation ::= SEQUENCE { completeDataListIncluded NULL OPTIONAL, -- If segmentation is used, completeDataListIncluded may only be present in the -- first segment. lsaOnlyAccessIndicator [1] LSAOnlyAccessIndicator OPTIONAL, lsaDataList [2] LSADataList OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} LSAIdentity ::= OCTET STRING (SIZE (3)) -- Octets are coded according to TS 3GPP TS 23.003 [17] LSAAttributes ::= OCTET STRING (SIZE (1)) -- Octets are coded according to TS 3GPP TS 48.008 [49] SubscriberData ::= SEQUENCE { msisdn [1] ISDN-AddressString OPTIONAL, category [2] Category OPTIONAL, subscriberStatus [3] SubscriberStatus OPTIONAL, bearerServiceList [4] BearerServiceList OPTIONAL, -- The exception handling for reception of unsupported / not allocated -- bearerServiceCodes is defined in clause 8.8.1 teleserviceList [6] TeleserviceList OPTIONAL, -- The exception handling for reception of unsupported / not allocated -- teleserviceCodes is defined in clause 8.8.1 provisionedSS [7] Ext-SS-InfoList OPTIONAL, odb-Data [8] ODB-Data OPTIONAL, roamingRestrictionDueToUnsupportedFeature [9] NULL OPTIONAL, regionalSubscriptionData [10] ZoneCodeList OPTIONAL, vbsSubscriptionData [11] VBSDataList OPTIONAL, vgcsSubscriptionData [12] VGCSDataList OPTIONAL, vlrCamelSubscriptionInfo [13] VlrCamelSubscriptionInfo OPTIONAL } Category ::= OCTET STRING (SIZE (1)) -- The internal structure is defined in ITU-T Rec Q.763. SubscriberStatus ::= ENUMERATED { serviceGranted (0), operatorDeterminedBarring (1)} BearerServiceList ::= SEQUENCE SIZE (1..maxNumOfBearerServices) OF Ext-BearerServiceCode maxNumOfBearerServices INTEGER ::= 50 TeleserviceList ::= SEQUENCE SIZE (1..maxNumOfTeleservices) OF Ext-TeleserviceCode maxNumOfTeleservices INTEGER ::= 20 ODB-Data ::= SEQUENCE { odb-GeneralData ODB-GeneralData, odb-HPLMN-Data ODB-HPLMN-Data OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} ODB-GeneralData ::= BIT STRING { allOG-CallsBarred (0), internationalOGCallsBarred (1), internationalOGCallsNotToHPLMN-CountryBarred (2), interzonalOGCallsBarred (6), interzonalOGCallsNotToHPLMN-CountryBarred (7), interzonalOGCallsAndInternationalOGCallsNotToHPLMN-CountryBarred (8), premiumRateInformationOGCallsBarred (3), premiumRateEntertainementOGCallsBarred (4), ss-AccessBarred (5), allECT-Barred (9), chargeableECT-Barred (10), internationalECT-Barred (11), interzonalECT-Barred (12), doublyChargeableECT-Barred (13), multipleECT-Barred (14), allPacketOrientedServicesBarred (15), roamerAccessToHPLMN-AP-Barred (16), roamerAccessToVPLMN-AP-Barred (17), roamingOutsidePLMNOG-CallsBarred (18), allIC-CallsBarred (19), roamingOutsidePLMNIC-CallsBarred (20), roamingOutsidePLMNICountryIC-CallsBarred (21), roamingOutsidePLMN-Barred (22), roamingOutsidePLMN-CountryBarred (23), registrationAllCF-Barred (24), registrationCFNotToHPLMN-Barred (25), registrationInterzonalCF-Barred (26), registrationInterzonalCFNotToHPLMN-Barred (27), registrationInternationalCF-Barred (28)} (SIZE (15..32)) -- exception handling: reception of unknown bit assignments in the -- ODB-GeneralData type shall be treated like unsupported ODB-GeneralData -- When the ODB-GeneralData type is removed from the HLR for a given subscriber, -- in NoteSubscriberDataModified operation sent toward the gsmSCF -- all bits shall be set to "O". ODB-HPLMN-Data ::= BIT STRING { plmn-SpecificBarringType1 (0), plmn-SpecificBarringType2 (1), plmn-SpecificBarringType3 (2), plmn-SpecificBarringType4 (3)} (SIZE (4..32)) -- exception handling: reception of unknown bit assignments in the -- ODB-HPLMN-Data type shall be treated like unsupported ODB-HPLMN-Data -- When the ODB-HPLMN-Data type is removed from the HLR for a given subscriber, -- in NoteSubscriberDataModified operation sent toward the gsmSCF -- all bits shall be set to "O". Ext-SS-InfoList ::= SEQUENCE SIZE (1..maxNumOfSS) OF Ext-SS-Info Ext-SS-Info ::= CHOICE { forwardingInfo [0] Ext-ForwInfo, callBarringInfo [1] Ext-CallBarInfo, cug-Info [2] CUG-Info, ss-Data [3] Ext-SS-Data, emlpp-Info [4] EMLPP-Info} Ext-ForwInfo ::= SEQUENCE { ss-Code SS-Code, forwardingFeatureList Ext-ForwFeatureList, extensionContainer [0] ExtensionContainer OPTIONAL, ...} Ext-ForwFeatureList ::= SEQUENCE SIZE (1..maxNumOfExt-BasicServiceGroups) OF Ext-ForwFeature Ext-ForwFeature ::= SEQUENCE { basicService Ext-BasicServiceCode OPTIONAL, ss-Status [4] Ext-SS-Status, forwardedToNumber [5] ISDN-AddressString OPTIONAL, -- When this data type is sent from an HLR which supports CAMEL Phase 2 -- to a VLR that supports CAMEL Phase 2 the VLR shall not check the -- format of the number forwardedToSubaddress [8] ISDN-SubaddressString OPTIONAL, forwardingOptions [6] Ext-ForwOptions OPTIONAL, noReplyConditionTime [7] Ext-NoRepCondTime OPTIONAL, extensionContainer [9] ExtensionContainer OPTIONAL, ..., longForwardedToNumber [10] FTN-AddressString OPTIONAL } Ext-ForwOptions ::= OCTET STRING (SIZE (1..5)) -- OCTET 1: -- bit 8: notification to forwarding party -- 0 no notification -- 1 notification -- bit 7: redirecting presentation -- 0 no presentation -- 1 presentation -- bit 6: notification to calling party -- 0 no notification -- 1 notification -- bit 5: 0 (unused) -- bits 43: forwarding reason -- 00 ms not reachable -- 01 ms busy -- 10 no reply -- 11 unconditional -- bits 21: 00 (unused) -- OCTETS 2-5: reserved for future use. They shall be discarded if -- received and not understood. Ext-NoRepCondTime ::= INTEGER (1..100) -- Only values 5-30 are used. -- Values in the ranges 1-4 and 31-100 are reserved for future use -- If received: -- values 1-4 shall be mapped on to value 5 -- values 31-100 shall be mapped on to value 30 Ext-CallBarInfo ::= SEQUENCE { ss-Code SS-Code, callBarringFeatureList Ext-CallBarFeatureList, extensionContainer ExtensionContainer OPTIONAL, ...} Ext-CallBarFeatureList ::= SEQUENCE SIZE (1..maxNumOfExt-BasicServiceGroups) OF Ext-CallBarringFeature Ext-CallBarringFeature ::= SEQUENCE { basicService Ext-BasicServiceCode OPTIONAL, ss-Status [4] Ext-SS-Status, extensionContainer ExtensionContainer OPTIONAL, ...} CUG-Info ::= SEQUENCE { cug-SubscriptionList CUG-SubscriptionList, cug-FeatureList CUG-FeatureList OPTIONAL, extensionContainer [0] ExtensionContainer OPTIONAL, ...} CUG-SubscriptionList ::= SEQUENCE SIZE (0..maxNumOfCUG) OF CUG-Subscription CUG-Subscription ::= SEQUENCE { cug-Index CUG-Index, cug-Interlock CUG-Interlock, intraCUG-Options IntraCUG-Options, basicServiceGroupList Ext-BasicServiceGroupList OPTIONAL, extensionContainer [0] ExtensionContainer OPTIONAL, ...} CUG-Index ::= INTEGER (0..32767) -- The internal structure is defined in ETS 300 138. CUG-Interlock ::= OCTET STRING (SIZE (4)) IntraCUG-Options ::= ENUMERATED { noCUG-Restrictions (0), cugIC-CallBarred (1), cugOG-CallBarred (2)} maxNumOfCUG INTEGER ::= 10 CUG-FeatureList ::= SEQUENCE SIZE (1..maxNumOfExt-BasicServiceGroups) OF CUG-Feature Ext-BasicServiceGroupList ::= SEQUENCE SIZE (1..maxNumOfExt-BasicServiceGroups) OF Ext-BasicServiceCode maxNumOfExt-BasicServiceGroups INTEGER ::= 32 CUG-Feature ::= SEQUENCE { basicService Ext-BasicServiceCode OPTIONAL, preferentialCUG-Indicator CUG-Index OPTIONAL, interCUG-Restrictions InterCUG-Restrictions, extensionContainer ExtensionContainer OPTIONAL, ...} InterCUG-Restrictions ::= OCTET STRING (SIZE (1)) -- bits 876543: 000000 (unused) -- Exception handling: -- bits 876543 shall be ignored if received and not understood -- bits 21 -- 00 CUG only facilities -- 01 CUG with outgoing access -- 10 CUG with incoming access -- 11 CUG with both outgoing and incoming access Ext-SS-Data ::= SEQUENCE { ss-Code SS-Code, ss-Status [4] Ext-SS-Status, ss-SubscriptionOption SS-SubscriptionOption OPTIONAL, basicServiceGroupList Ext-BasicServiceGroupList OPTIONAL, extensionContainer [5] ExtensionContainer OPTIONAL, ...} LCS-PrivacyExceptionList ::= SEQUENCE SIZE (1..maxNumOfPrivacyClass) OF LCS-PrivacyClass maxNumOfPrivacyClass INTEGER ::= 4 LCS-PrivacyClass ::= SEQUENCE { ss-Code SS-Code, ss-Status Ext-SS-Status, notificationToMSUser [0] NotificationToMSUser OPTIONAL, -- notificationToMSUser may be sent only for SS-codes callSessionRelated -- and callSessionUnrelated. If not received for SS-codes callSessionRelated -- and callSessionUnrelated, -- the default values according to 3GPP TS 23.271 shall be assumed. externalClientList [1] ExternalClientList OPTIONAL, -- externalClientList may be sent only for SS-code callSessionUnrelated to a -- visited node that does not support LCS Release 4 or later versions. -- externalClientList may be sent only for SS-codes callSessionUnrelated and -- callSessionRelated to a visited node that supports LCS Release 4 or later versions. plmnClientList [2] PLMNClientList OPTIONAL, -- plmnClientList may be sent only for SS-code plmnoperator. extensionContainer [3] ExtensionContainer OPTIONAL, ..., ext-externalClientList [4] Ext-ExternalClientList OPTIONAL, -- Ext-externalClientList may be sent only if the visited node supports LCS Release 4 or -- later versions, the user did specify more than 5 clients, and White Book SCCP is used. serviceTypeList [5] ServiceTypeList OPTIONAL -- serviceTypeList may be sent only for SS-code serviceType and if the visited node -- supports LCS Release 5 or later versions. -- -- if segmentation is used, the complete LCS-PrivacyClass shall be sent in one segment } ExternalClientList ::= SEQUENCE SIZE (0..maxNumOfExternalClient) OF ExternalClient maxNumOfExternalClient INTEGER ::= 5 PLMNClientList ::= SEQUENCE SIZE (1..maxNumOfPLMNClient) OF LCSClientInternalID maxNumOfPLMNClient INTEGER ::= 5 Ext-ExternalClientList ::= SEQUENCE SIZE (1..maxNumOfExt-ExternalClient) OF ExternalClient maxNumOfExt-ExternalClient INTEGER ::= 35 ExternalClient ::= SEQUENCE { clientIdentity LCSClientExternalID, gmlc-Restriction [0] GMLC-Restriction OPTIONAL, notificationToMSUser [1] NotificationToMSUser OPTIONAL, -- If notificationToMSUser is not received, the default value according to -- 3GPP TS 23.271 shall be assumed. extensionContainer [2] ExtensionContainer OPTIONAL, ... } GMLC-Restriction ::= ENUMERATED { gmlc-List (0), home-Country (1) , ... } -- exception handling: -- At reception of any other value than the ones listed the receiver shall ignore -- GMLC-Restriction. NotificationToMSUser ::= ENUMERATED { notifyLocationAllowed (0), notifyAndVerify-LocationAllowedIfNoResponse (1), notifyAndVerify-LocationNotAllowedIfNoResponse (2), ..., locationNotAllowed (3) } -- exception handling: -- At reception of any other value than the ones listed the receiver shall ignore -- NotificationToMSUser. ServiceTypeList ::= SEQUENCE SIZE (1..maxNumOfServiceType) OF ServiceType maxNumOfServiceType INTEGER ::= 32 ServiceType ::= SEQUENCE { serviceTypeIdentity LCSServiceTypeID, gmlc-Restriction [0] GMLC-Restriction OPTIONAL, notificationToMSUser [1] NotificationToMSUser OPTIONAL, -- If notificationToMSUser is not received, the default value according to -- 3GPP TS 23.271 shall be assumed. extensionContainer [2] ExtensionContainer OPTIONAL, ... } MOLR-List ::= SEQUENCE SIZE (1..maxNumOfMOLR-Class) OF MOLR-Class maxNumOfMOLR-Class INTEGER ::= 3 MOLR-Class ::= SEQUENCE { ss-Code SS-Code, ss-Status Ext-SS-Status, extensionContainer [0] ExtensionContainer OPTIONAL, ...} ZoneCodeList ::= SEQUENCE SIZE (1..maxNumOfZoneCodes) OF ZoneCode ZoneCode ::= OCTET STRING (SIZE (2)) -- internal structure is defined in TS 3GPP TS 23.003 [17] maxNumOfZoneCodes INTEGER ::= 10 InsertSubscriberDataRes ::= SEQUENCE { teleserviceList [1] TeleserviceList OPTIONAL, bearerServiceList [2] BearerServiceList OPTIONAL, ss-List [3] SS-List OPTIONAL, odb-GeneralData [4] ODB-GeneralData OPTIONAL, regionalSubscriptionResponse [5] RegionalSubscriptionResponse OPTIONAL, supportedCamelPhases [6] SupportedCamelPhases OPTIONAL, extensionContainer [7] ExtensionContainer OPTIONAL, ... , offeredCamel4CSIs [8] OfferedCamel4CSIs OPTIONAL, supportedFeatures [9] SupportedFeatures OPTIONAL, ext-SupportedFeatures [10] Ext-SupportedFeatures OPTIONAL } RegionalSubscriptionResponse ::= ENUMERATED { networkNode-AreaRestricted (0), tooManyZoneCodes (1), zoneCodesConflict (2), regionalSubscNotSupported (3)} DeleteSubscriberDataArg ::= SEQUENCE { imsi [0] IMSI, basicServiceList [1] BasicServiceList OPTIONAL, -- The exception handling for reception of unsupported/not allocated -- basicServiceCodes is defined in clause 6.8.2 ss-List [2] SS-List OPTIONAL, roamingRestrictionDueToUnsupportedFeature [4] NULL OPTIONAL, regionalSubscriptionIdentifier [5] ZoneCode OPTIONAL, vbsGroupIndication [7] NULL OPTIONAL, vgcsGroupIndication [8] NULL OPTIONAL, camelSubscriptionInfoWithdraw [9] NULL OPTIONAL, extensionContainer [6] ExtensionContainer OPTIONAL, ..., gprsSubscriptionDataWithdraw [10] GPRSSubscriptionDataWithdraw OPTIONAL, roamingRestrictedInSgsnDueToUnsuppportedFeature [11] NULL OPTIONAL, lsaInformationWithdraw [12] LSAInformationWithdraw OPTIONAL, gmlc-ListWithdraw [13] NULL OPTIONAL, istInformationWithdraw [14] NULL OPTIONAL, specificCSI-Withdraw [15] SpecificCSI-Withdraw OPTIONAL, chargingCharacteristicsWithdraw [16] NULL OPTIONAL, stn-srWithdraw [17] NULL OPTIONAL, epsSubscriptionDataWithdraw [18] EPS-SubscriptionDataWithdraw OPTIONAL, apn-oi-replacementWithdraw [19] NULL OPTIONAL, csg-SubscriptionDeleted [20] NULL OPTIONAL, subscribedPeriodicTAU-RAU-TimerWithdraw [22] NULL OPTIONAL, subscribedPeriodicLAU-TimerWithdraw [23] NULL OPTIONAL, subscribed-vsrvccWithdraw [21] NULL OPTIONAL, vplmn-Csg-SubscriptionDeleted [24] NULL OPTIONAL, additionalMSISDN-Withdraw [25] NULL OPTIONAL, cs-to-ps-SRVCC-Withdraw [26] NULL OPTIONAL, imsiGroupIdList-Withdraw [27] NULL OPTIONAL, userPlaneIntegrityProtectionWithdraw [28] NULL OPTIONAL, dl-Buffering-Suggested-Packet-Count-Withdraw [29] NULL OPTIONAL, ue-UsageTypeWithdraw [30] NULL OPTIONAL, reset-idsWithdraw [31] NULL OPTIONAL, iab-OperationWithdraw [32] NULL OPTIONAL } SpecificCSI-Withdraw ::= BIT STRING { o-csi (0), ss-csi (1), tif-csi (2), d-csi (3), vt-csi (4), mo-sms-csi (5), m-csi (6), gprs-csi (7), t-csi (8), mt-sms-csi (9), mg-csi (10), o-IM-CSI (11), d-IM-CSI (12), vt-IM-CSI (13) } (SIZE(8..32)) -- exception handling: -- bits 11 to 31 shall be ignored if received by a non-IP Multimedia Core Network entity. -- bits 0-10 and 14-31 shall be ignored if received by an IP Multimedia Core Network entity. -- bits 11-13 are only applicable in an IP Multimedia Core Network. -- Bit 8 and bits 11-13 are only applicable for the NoteSubscriberDataModified operation. GPRSSubscriptionDataWithdraw ::= CHOICE { allGPRSData NULL, contextIdList ContextIdList} EPS-SubscriptionDataWithdraw ::= CHOICE { allEPS-Data NULL, contextIdList ContextIdList} ContextIdList ::= SEQUENCE SIZE (1..maxNumOfPDP-Contexts) OF ContextId LSAInformationWithdraw ::= CHOICE { allLSAData NULL, lsaIdentityList LSAIdentityList } LSAIdentityList ::= SEQUENCE SIZE (1..maxNumOfLSAs) OF LSAIdentity BasicServiceList ::= SEQUENCE SIZE (1..maxNumOfBasicServices) OF Ext-BasicServiceCode maxNumOfBasicServices INTEGER ::= 70 DeleteSubscriberDataRes ::= SEQUENCE { regionalSubscriptionResponse [0] RegionalSubscriptionResponse OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} VlrCamelSubscriptionInfo ::= SEQUENCE { o-CSI [0] O-CSI OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ..., ss-CSI [2] SS-CSI OPTIONAL, o-BcsmCamelTDP-CriteriaList [4] O-BcsmCamelTDPCriteriaList OPTIONAL, tif-CSI [3] NULL OPTIONAL, m-CSI [5] M-CSI OPTIONAL, mo-sms-CSI [6] SMS-CSI OPTIONAL, vt-CSI [7] T-CSI OPTIONAL, t-BCSM-CAMEL-TDP-CriteriaList [8] T-BCSM-CAMEL-TDP-CriteriaList OPTIONAL, d-CSI [9] D-CSI OPTIONAL, mt-sms-CSI [10] SMS-CSI OPTIONAL, mt-smsCAMELTDP-CriteriaList [11] MT-smsCAMELTDP-CriteriaList OPTIONAL } MT-smsCAMELTDP-CriteriaList ::= SEQUENCE SIZE (1.. maxNumOfCamelTDPData) OF MT-smsCAMELTDP-Criteria MT-smsCAMELTDP-Criteria ::= SEQUENCE { sms-TriggerDetectionPoint SMS-TriggerDetectionPoint, tpdu-TypeCriterion [0] TPDU-TypeCriterion OPTIONAL, ... } TPDU-TypeCriterion ::= SEQUENCE SIZE (1..maxNumOfTPDUTypes) OF MT-SMS-TPDU-Type maxNumOfTPDUTypes INTEGER ::= 5 MT-SMS-TPDU-Type ::= ENUMERATED { sms-DELIVER (0), sms-SUBMIT-REPORT (1), sms-STATUS-REPORT (2), ... } -- exception handling: -- For TPDU-TypeCriterion sequences containing this parameter with any -- other value than the ones listed above the receiver shall ignore -- the whole TPDU-TypeCriterion sequence. -- In CAMEL phase 4, sms-SUBMIT-REPORT shall not be used and a received TPDU-TypeCriterion -- sequence containing sms-SUBMIT-REPORT shall be wholly ignored. D-CSI ::= SEQUENCE { dp-AnalysedInfoCriteriaList [0] DP-AnalysedInfoCriteriaList OPTIONAL, camelCapabilityHandling [1] CamelCapabilityHandling OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, notificationToCSE [3] NULL OPTIONAL, csi-Active [4] NULL OPTIONAL, ...} -- notificationToCSE and csi-Active shall not be present when D-CSI is sent to VLR/GMSC. -- They may only be included in ATSI/ATM ack/NSDC message. -- DP-AnalysedInfoCriteria and camelCapabilityHandling shall be present in -- the D-CSI sequence. -- If D-CSI is segmented, then the first segment shall contain dp-AnalysedInfoCriteriaList -- and camelCapabilityHandling. Subsequent segments shall not contain -- camelCapabilityHandling, but may contain dp-AnalysedInfoCriteriaList. DP-AnalysedInfoCriteriaList ::= SEQUENCE SIZE (1..maxNumOfDP-AnalysedInfoCriteria) OF DP-AnalysedInfoCriterium maxNumOfDP-AnalysedInfoCriteria INTEGER ::= 10 DP-AnalysedInfoCriterium ::= SEQUENCE { dialledNumber ISDN-AddressString, serviceKey ServiceKey, gsmSCF-Address ISDN-AddressString, defaultCallHandling DefaultCallHandling, extensionContainer ExtensionContainer OPTIONAL, ...} SS-CSI ::= SEQUENCE { ss-CamelData SS-CamelData, extensionContainer ExtensionContainer OPTIONAL, ..., notificationToCSE [0] NULL OPTIONAL, csi-Active [1] NULL OPTIONAL -- notificationToCSE and csi-Active shall not be present when SS-CSI is sent to VLR. -- They may only be included in ATSI/ATM ack/NSDC message. } SS-CamelData ::= SEQUENCE { ss-EventList SS-EventList, gsmSCF-Address ISDN-AddressString, extensionContainer [0] ExtensionContainer OPTIONAL, ...} SS-EventList ::= SEQUENCE SIZE (1..maxNumOfCamelSSEvents) OF SS-Code -- Actions for the following SS-Code values are defined in CAMEL Phase 3: -- ect SS-Code ::= '00110001'B -- multiPTY SS-Code ::= '01010001'B -- cd SS-Code ::= '00100100'B -- ccbs SS-Code ::= '01000100'B -- all other SS codes shall be ignored -- When SS-CSI is sent to the VLR, it shall not contain a marking for ccbs. -- If the VLR receives SS-CSI containing a marking for ccbs, the VLR shall discard the -- ccbs marking in SS-CSI. maxNumOfCamelSSEvents INTEGER ::= 10 O-CSI ::= SEQUENCE { o-BcsmCamelTDPDataList O-BcsmCamelTDPDataList, extensionContainer ExtensionContainer OPTIONAL, ..., camelCapabilityHandling [0] CamelCapabilityHandling OPTIONAL, notificationToCSE [1] NULL OPTIONAL, csiActive [2] NULL OPTIONAL} -- notificationtoCSE and csiActive shall not be present when O-CSI is sent to VLR/GMSC. -- They may only be included in ATSI/ATM ack/NSDC message. -- O-CSI shall not be segmented. O-BcsmCamelTDPDataList ::= SEQUENCE SIZE (1..maxNumOfCamelTDPData) OF O-BcsmCamelTDPData -- O-BcsmCamelTDPDataList shall not contain more than one instance of -- O-BcsmCamelTDPData containing the same value for o-BcsmTriggerDetectionPoint. -- For CAMEL Phase 2, this means that only one instance of O-BcsmCamelTDPData is allowed -- with o-BcsmTriggerDetectionPoint being equal to DP2. maxNumOfCamelTDPData INTEGER ::= 10 O-BcsmCamelTDPData ::= SEQUENCE { o-BcsmTriggerDetectionPoint O-BcsmTriggerDetectionPoint, serviceKey ServiceKey, gsmSCF-Address [0] ISDN-AddressString, defaultCallHandling [1] DefaultCallHandling, extensionContainer [2] ExtensionContainer OPTIONAL, ... } ServiceKey ::= INTEGER (0..2147483647) O-BcsmTriggerDetectionPoint ::= ENUMERATED { collectedInfo (2), ..., routeSelectFailure (4) } -- exception handling: -- For O-BcsmCamelTDPData sequences containing this parameter with any -- other value than the ones listed the receiver shall ignore the whole -- O-BcsmCamelTDPDatasequence. -- For O-BcsmCamelTDP-Criteria sequences containing this parameter with any -- other value than the ones listed the receiver shall ignore the whole -- O-BcsmCamelTDP-Criteria sequence. O-BcsmCamelTDPCriteriaList ::= SEQUENCE SIZE (1..maxNumOfCamelTDPData) OF O-BcsmCamelTDP-Criteria T-BCSM-CAMEL-TDP-CriteriaList ::= SEQUENCE SIZE (1..maxNumOfCamelTDPData) OF T-BCSM-CAMEL-TDP-Criteria O-BcsmCamelTDP-Criteria ::= SEQUENCE { o-BcsmTriggerDetectionPoint O-BcsmTriggerDetectionPoint, destinationNumberCriteria [0] DestinationNumberCriteria OPTIONAL, basicServiceCriteria [1] BasicServiceCriteria OPTIONAL, callTypeCriteria [2] CallTypeCriteria OPTIONAL, ..., o-CauseValueCriteria [3] O-CauseValueCriteria OPTIONAL, extensionContainer [4] ExtensionContainer OPTIONAL } T-BCSM-CAMEL-TDP-Criteria ::= SEQUENCE { t-BCSM-TriggerDetectionPoint T-BcsmTriggerDetectionPoint, basicServiceCriteria [0] BasicServiceCriteria OPTIONAL, t-CauseValueCriteria [1] T-CauseValueCriteria OPTIONAL, ... } DestinationNumberCriteria ::= SEQUENCE { matchType [0] MatchType, destinationNumberList [1] DestinationNumberList OPTIONAL, destinationNumberLengthList [2] DestinationNumberLengthList OPTIONAL, -- one or both of destinationNumberList and destinationNumberLengthList -- shall be present ...} DestinationNumberList ::= SEQUENCE SIZE (1..maxNumOfCamelDestinationNumbers) OF ISDN-AddressString -- The receiving entity shall not check the format of a number in -- the dialled number list DestinationNumberLengthList ::= SEQUENCE SIZE (1..maxNumOfCamelDestinationNumberLengths) OF INTEGER(1..maxNumOfISDN-AddressDigits) BasicServiceCriteria ::= SEQUENCE SIZE(1..maxNumOfCamelBasicServiceCriteria) OF Ext-BasicServiceCode maxNumOfISDN-AddressDigits INTEGER ::= 15 maxNumOfCamelDestinationNumbers INTEGER ::= 10 maxNumOfCamelDestinationNumberLengths INTEGER ::= 3 maxNumOfCamelBasicServiceCriteria INTEGER ::= 5 CallTypeCriteria ::= ENUMERATED { forwarded (0), notForwarded (1)} MatchType ::= ENUMERATED { inhibiting (0), enabling (1)} O-CauseValueCriteria ::= SEQUENCE SIZE(1..maxNumOfCAMEL-O-CauseValueCriteria) OF CauseValue T-CauseValueCriteria ::= SEQUENCE SIZE(1..maxNumOfCAMEL-T-CauseValueCriteria) OF CauseValue maxNumOfCAMEL-O-CauseValueCriteria INTEGER ::= 5 maxNumOfCAMEL-T-CauseValueCriteria INTEGER ::= 5 CauseValue ::= OCTET STRING (SIZE(1)) -- Type extracted from Cause parameter in ITU-T Recommendation Q.763. -- For the use of cause value refer to ITU-T Recommendation Q.850. DefaultCallHandling ::= ENUMERATED { continueCall (0) , releaseCall (1) , ...} -- exception handling: -- reception of values in range 2-31 shall be treated as "continueCall" -- reception of values greater than 31 shall be treated as "releaseCall" CamelCapabilityHandling ::= INTEGER(1..16) -- value 1 = CAMEL phase 1, -- value 2 = CAMEL phase 2, -- value 3 = CAMEL Phase 3, -- value 4 = CAMEL phase 4: -- reception of values greater than 4 shall be treated as CAMEL phase 4. SupportedCamelPhases ::= BIT STRING { phase1 (0), phase2 (1), phase3 (2), phase4 (3)} (SIZE (1..16)) -- A node shall mark in the BIT STRING all CAMEL Phases it supports. -- Other values than listed above shall be discarded. OfferedCamel4CSIs ::= BIT STRING { o-csi (0), d-csi (1), vt-csi (2), t-csi (3), mt-sms-csi (4), mg-csi (5), psi-enhancements (6) } (SIZE (7..16)) -- A node supporting Camel phase 4 shall mark in the BIT STRING all Camel4 CSIs -- it offers. -- Other values than listed above shall be discarded. OfferedCamel4Functionalities ::= BIT STRING { initiateCallAttempt (0), splitLeg (1), moveLeg (2), disconnectLeg (3), entityReleased (4), dfc-WithArgument (5), playTone (6), dtmf-MidCall (7), chargingIndicator (8), alertingDP (9), locationAtAlerting (10), changeOfPositionDP (11), or-Interactions (12), warningToneEnhancements (13), cf-Enhancements (14), subscribedEnhancedDialledServices (15), servingNetworkEnhancedDialledServices (16), criteriaForChangeOfPositionDP (17), serviceChangeDP (18), collectInformation (19) } (SIZE (15..64)) -- A node supporting Camel phase 4 shall mark in the BIT STRING all CAMEL4 -- functionalities it offers. -- Other values than listed above shall be discarded. SMS-CSI ::= SEQUENCE { sms-CAMEL-TDP-DataList [0] SMS-CAMEL-TDP-DataList OPTIONAL, camelCapabilityHandling [1] CamelCapabilityHandling OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, notificationToCSE [3] NULL OPTIONAL, csi-Active [4] NULL OPTIONAL, ...} -- notificationToCSE and csi-Active shall not be present -- when MO-SMS-CSI or MT-SMS-CSI is sent to VLR or SGSN. -- They may only be included in ATSI/ATM ack/NSDC message. -- SMS-CAMEL-TDP-Data and camelCapabilityHandling shall be present in -- the SMS-CSI sequence. -- If SMS-CSI is segmented, sms-CAMEL-TDP-DataList and camelCapabilityHandling shall be -- present in the first segment SMS-CAMEL-TDP-DataList ::= SEQUENCE SIZE (1..maxNumOfCamelTDPData) OF SMS-CAMEL-TDP-Data -- SMS-CAMEL-TDP-DataList shall not contain more than one instance of -- SMS-CAMEL-TDP-Data containing the same value for sms-TriggerDetectionPoint. SMS-CAMEL-TDP-Data ::= SEQUENCE { sms-TriggerDetectionPoint [0] SMS-TriggerDetectionPoint, serviceKey [1] ServiceKey, gsmSCF-Address [2] ISDN-AddressString, defaultSMS-Handling [3] DefaultSMS-Handling, extensionContainer [4] ExtensionContainer OPTIONAL, ... } SMS-TriggerDetectionPoint ::= ENUMERATED { sms-CollectedInfo (1), ..., sms-DeliveryRequest (2) } -- exception handling: -- For SMS-CAMEL-TDP-Data and MT-smsCAMELTDP-Criteria sequences containing this -- parameter with any other value than the ones listed the receiver shall ignore -- the whole sequence. -- -- If this parameter is received with any other value than sms-CollectedInfo -- in an SMS-CAMEL-TDP-Data sequence contained in mo-sms-CSI, then the receiver shall -- ignore the whole SMS-CAMEL-TDP-Data sequence. -- -- If this parameter is received with any other value than sms-DeliveryRequest -- in an SMS-CAMEL-TDP-Data sequence contained in mt-sms-CSI then the receiver shall -- ignore the whole SMS-CAMEL-TDP-Data sequence. -- -- If this parameter is received with any other value than sms-DeliveryRequest -- in an MT-smsCAMELTDP-Criteria sequence then the receiver shall -- ignore the whole MT-smsCAMELTDP-Criteria sequence. DefaultSMS-Handling ::= ENUMERATED { continueTransaction (0) , releaseTransaction (1) , ...} -- exception handling: -- reception of values in range 2-31 shall be treated as "continueTransaction" -- reception of values greater than 31 shall be treated as "releaseTransaction" M-CSI ::= SEQUENCE { mobilityTriggers MobilityTriggers, serviceKey ServiceKey, gsmSCF-Address [0] ISDN-AddressString, extensionContainer [1] ExtensionContainer OPTIONAL, notificationToCSE [2] NULL OPTIONAL, csi-Active [3] NULL OPTIONAL, ...} -- notificationToCSE and csi-Active shall not be present when M-CSI is sent to VLR. -- They may only be included in ATSI/ATM ack/NSDC message. MG-CSI ::= SEQUENCE { mobilityTriggers MobilityTriggers, serviceKey ServiceKey, gsmSCF-Address [0] ISDN-AddressString, extensionContainer [1] ExtensionContainer OPTIONAL, notificationToCSE [2] NULL OPTIONAL, csi-Active [3] NULL OPTIONAL, ...} -- notificationToCSE and csi-Active shall not be present when MG-CSI is sent to SGSN. -- They may only be included in ATSI/ATM ack/NSDC message. MobilityTriggers ::= SEQUENCE SIZE (1..maxNumOfMobilityTriggers) OF MM-Code maxNumOfMobilityTriggers INTEGER ::= 10 MM-Code ::= OCTET STRING (SIZE (1)) -- This type is used to indicate a Mobility Management event. -- Actions for the following MM-Code values are defined in CAMEL Phase 4: -- -- CS domain MM events: -- Location-update-in-same-VLR MM-Code ::= '00000000'B -- Location-update-to-other-VLR MM-Code ::= '00000001'B -- IMSI-Attach MM-Code ::= '00000010'B -- MS-initiated-IMSI-Detach MM-Code ::= '00000011'B -- Network-initiated-IMSI-Detach MM-Code ::= '00000100'B -- -- PS domain MM events: -- Routeing-Area-update-in-same-SGSN MM-Code ::= '10000000'B -- Routeing-Area-update-to-other-SGSN-update-from-new-SGSN -- MM-Code ::= '10000001'B -- Routeing-Area-update-to-other-SGSN-disconnect-by-detach -- MM-Code ::= '10000010'B -- GPRS-Attach MM-Code ::= '10000011'B -- MS-initiated-GPRS-Detach MM-Code ::= '10000100'B -- Network-initiated-GPRS-Detach MM-Code ::= '10000101'B -- Network-initiated-transfer-to-MS-not-reachable-for-paging -- MM-Code ::= '10000110'B -- -- If the MSC receives any other MM-code than the ones listed above for the -- CS domain, then the MSC shall ignore that MM-code. -- If the SGSN receives any other MM-code than the ones listed above for the -- PS domain, then the SGSN shall ignore that MM-code. T-CSI ::= SEQUENCE { t-BcsmCamelTDPDataList T-BcsmCamelTDPDataList, extensionContainer ExtensionContainer OPTIONAL, ..., camelCapabilityHandling [0] CamelCapabilityHandling OPTIONAL, notificationToCSE [1] NULL OPTIONAL, csi-Active [2] NULL OPTIONAL} -- notificationToCSE and csi-Active shall not be present when VT-CSI/T-CSI is sent -- to VLR/GMSC. -- They may only be included in ATSI/ATM ack/NSDC message. -- T-CSI shall not be segmented. T-BcsmCamelTDPDataList ::= SEQUENCE SIZE (1..maxNumOfCamelTDPData) OF T-BcsmCamelTDPData --- T-BcsmCamelTDPDataList shall not contain more than one instance of --- T-BcsmCamelTDPData containing the same value for t-BcsmTriggerDetectionPoint. --- For CAMEL Phase 2, this means that only one instance of T-BcsmCamelTDPData is allowed --- with t-BcsmTriggerDetectionPoint being equal to DP12. --- For CAMEL Phase 3, more TDP's are allowed. T-BcsmCamelTDPData ::= SEQUENCE { t-BcsmTriggerDetectionPoint T-BcsmTriggerDetectionPoint, serviceKey ServiceKey, gsmSCF-Address [0] ISDN-AddressString, defaultCallHandling [1] DefaultCallHandling, extensionContainer [2] ExtensionContainer OPTIONAL, ...} T-BcsmTriggerDetectionPoint ::= ENUMERATED { termAttemptAuthorized (12), ... , tBusy (13), tNoAnswer (14)} -- exception handling: -- For T-BcsmCamelTDPData sequences containing this parameter with any other -- value than the ones listed above, the receiver shall ignore the whole -- T-BcsmCamelTDPData sequence. -- gprs location information retrieval types SendRoutingInfoForGprsArg ::= SEQUENCE { imsi [0] IMSI, ggsn-Address [1] GSN-Address OPTIONAL, ggsn-Number [2] ISDN-AddressString, extensionContainer [3] ExtensionContainer OPTIONAL, ...} SendRoutingInfoForGprsRes ::= SEQUENCE { sgsn-Address [0] GSN-Address, ggsn-Address [1] GSN-Address OPTIONAL, mobileNotReachableReason [2] AbsentSubscriberDiagnosticSM OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} -- failure report types FailureReportArg ::= SEQUENCE { imsi [0] IMSI, ggsn-Number [1] ISDN-AddressString , ggsn-Address [2] GSN-Address OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} FailureReportRes ::= SEQUENCE { ggsn-Address [0] GSN-Address OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ...} -- gprs notification types NoteMsPresentForGprsArg ::= SEQUENCE { imsi [0] IMSI, sgsn-Address [1] GSN-Address, ggsn-Address [2] GSN-Address OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} NoteMsPresentForGprsRes ::= SEQUENCE { extensionContainer [0] ExtensionContainer OPTIONAL, ...} -- fault recovery types ResetArg ::= SEQUENCE { sendingNodenumber SendingNode-Number, hlr-List HLR-List OPTIONAL, -- The hlr-List parameter shall only be applicable for a restart of the HSS/HLR. extensionContainer [0] ExtensionContainer OPTIONAL, ..., reset-Id-List [1] Reset-Id-List OPTIONAL, subscriptionData [2] InsertSubscriberDataArg OPTIONAL, subscriptionDataDeletion [3] DeleteSubscriberDataArg OPTIONAL} SendingNode-Number ::= CHOICE { hlr-Number ISDN-AddressString, css-Number [1] ISDN-AddressString} RestoreDataArg ::= SEQUENCE { imsi IMSI, lmsi LMSI OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... , vlr-Capability [6] VLR-Capability OPTIONAL, restorationIndicator [7] NULL OPTIONAL } RestoreDataRes ::= SEQUENCE { hlr-Number ISDN-AddressString, msNotReachable NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} -- VBS/VGCS types VBSDataList ::= SEQUENCE SIZE (1..maxNumOfVBSGroupIds) OF VoiceBroadcastData VGCSDataList ::= SEQUENCE SIZE (1..maxNumOfVGCSGroupIds) OF VoiceGroupCallData maxNumOfVBSGroupIds INTEGER ::= 50 maxNumOfVGCSGroupIds INTEGER ::= 50 VoiceGroupCallData ::= SEQUENCE { groupId GroupId, -- groupId shall be filled with six TBCD fillers (1111)if the longGroupId is present extensionContainer ExtensionContainer OPTIONAL, ..., additionalSubscriptions AdditionalSubscriptions OPTIONAL, additionalInfo [0] AdditionalInfo OPTIONAL, longGroupId [1] Long-GroupId OPTIONAL } -- VoiceGroupCallData containing a longGroupId shall not be sent to VLRs that did not -- indicate support of long Group IDs within the Update Location or Restore Data -- request message AdditionalInfo ::= BIT STRING (SIZE (1..136)) -- Refers to Additional Info as specified in 3GPP TS 43.068 AdditionalSubscriptions ::= BIT STRING { privilegedUplinkRequest (0), emergencyUplinkRequest (1), emergencyReset (2)} (SIZE (3..8)) -- Other bits than listed above shall be discarded. VoiceBroadcastData ::= SEQUENCE { groupid GroupId, -- groupId shall be filled with six TBCD fillers (1111)if the longGroupId is present broadcastInitEntitlement NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., longGroupId [0] Long-GroupId OPTIONAL } -- VoiceBroadcastData containing a longGroupId shall not be sent to VLRs that did not -- indicate support of long Group IDs within the Update Location or Restore Data -- request message GroupId ::= TBCD-STRING (SIZE (3)) -- When Group-Id is less than six characters in length, the TBCD filler (1111) -- is used to fill unused half octets. -- Refers to the Group Identification as specified in 3GPP TS 23.003 -- and 3GPP TS 43.068/ 43.069 Long-GroupId ::= TBCD-STRING (SIZE (4)) -- When Long-Group-Id is less than eight characters in length, the TBCD filler (1111) -- is used to fill unused half octets. -- Refers to the Group Identification as specified in 3GPP TS 23.003 -- and 3GPP TS 43.068/ 43.069 -- provide subscriber info types ProvideSubscriberInfoArg ::= SEQUENCE { imsi [0] IMSI, lmsi [1] LMSI OPTIONAL, requestedInfo [2] RequestedInfo, extensionContainer [3] ExtensionContainer OPTIONAL, ..., callPriority [4] EMLPP-Priority OPTIONAL } ProvideSubscriberInfoRes ::= SEQUENCE { subscriberInfo SubscriberInfo, extensionContainer ExtensionContainer OPTIONAL, ...} SubscriberInfo ::= SEQUENCE { locationInformation [0] LocationInformation OPTIONAL, subscriberState [1] SubscriberState OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ... , locationInformationGPRS [3] LocationInformationGPRS OPTIONAL, ps-SubscriberState [4] PS-SubscriberState OPTIONAL, imei [5] IMEI OPTIONAL, ms-Classmark2 [6] MS-Classmark2 OPTIONAL, gprs-MS-Class [7] GPRSMSClass OPTIONAL, mnpInfoRes [8] MNPInfoRes OPTIONAL, imsVoiceOverPS-SessionsIndication [9] IMS-VoiceOverPS-SessionsInd OPTIONAL, lastUE-ActivityTime [10] Time OPTIONAL, lastRAT-Type [11] Used-RAT-Type OPTIONAL, eps-SubscriberState [12] PS-SubscriberState OPTIONAL, locationInformationEPS [13] LocationInformationEPS OPTIONAL, timeZone [14] TimeZone OPTIONAL, daylightSavingTime [15] DaylightSavingTime OPTIONAL, locationInformation5GS [16] LocationInformation5GS OPTIONAL } -- If the HLR receives locationInformation, subscriberState or ms-Classmark2 from an SGSN or -- MME (via an IWF), it shall discard them. -- If the HLR receives locationInformationGPRS, ps-SubscriberState, gprs-MS-Class or -- locationInformationEPS (outside the locationInformation IE) from a VLR, it shall -- discard them. -- If the HLR receives parameters which it has not requested, it shall discard them. -- The locationInformation5GS IE should be absent if UE did not access via 5GS and IM-SSF. IMS-VoiceOverPS-SessionsInd ::= ENUMERATED { imsVoiceOverPS-SessionsNotSupported (0), imsVoiceOverPS-SessionsSupported (1), unknown (2) } -- "unknown" shall not be used within ProvideSubscriberInfoRes TimeZone ::= OCTET STRING (SIZE (2..3)) -- Refer to the 3GPP TS 29.272 [144] for details. DaylightSavingTime ::= ENUMERATED { noAdjustment (0), plusOneHourAdjustment (1), plusTwoHoursAdjustment (2) } -- Refer to the 3GPP TS 29.272 [144] for details. MNPInfoRes ::= SEQUENCE { routeingNumber [0] RouteingNumber OPTIONAL, imsi [1] IMSI OPTIONAL, msisdn [2] ISDN-AddressString OPTIONAL, numberPortabilityStatus [3] NumberPortabilityStatus OPTIONAL, extensionContainer [4] ExtensionContainer OPTIONAL, ... } -- The IMSI parameter contains a generic IMSI, i.e. it is not tied necessarily to the -- Subscriber. MCC and MNC values in this IMSI shall point to the Subscription Network of -- the Subscriber. See 3GPP TS 23.066 [108]. RouteingNumber ::= TBCD-STRING (SIZE (1..5)) NumberPortabilityStatus ::= ENUMERATED { notKnownToBePorted (0), ownNumberPortedOut (1), foreignNumberPortedToForeignNetwork (2), ..., ownNumberNotPortedOut (4), foreignNumberPortedIn (5) } -- exception handling: -- reception of other values than the ones listed the receiver shall ignore the -- whole NumberPortabilityStatus; -- ownNumberNotPortedOut or foreignNumberPortedIn may only be included in Any Time -- Interrogation message. MS-Classmark2 ::= OCTET STRING (SIZE (3)) -- This parameter carries the value part of the MS Classmark 2 IE defined in -- 3GPP TS 24.008 [35]. GPRSMSClass ::= SEQUENCE { mSNetworkCapability [0] MSNetworkCapability, mSRadioAccessCapability [1] MSRadioAccessCapability OPTIONAL } MSNetworkCapability ::= OCTET STRING (SIZE (1..8)) -- This parameter carries the value part of the MS Network Capability IE defined in -- 3GPP TS 24.008 [35]. MSRadioAccessCapability ::= OCTET STRING (SIZE (1..50)) -- This parameter carries the value part of the MS Radio Access Capability IE defined in -- 3GPP TS 24.008 [35]. RequestedInfo ::= SEQUENCE { locationInformation [0] NULL OPTIONAL, subscriberState [1] NULL OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ..., currentLocation [3] NULL OPTIONAL, requestedDomain [4] DomainType OPTIONAL, imei [6] NULL OPTIONAL, ms-classmark [5] NULL OPTIONAL, mnpRequestedInfo [7] NULL OPTIONAL, locationInformationEPS-Supported [11] NULL OPTIONAL, t-adsData [8] NULL OPTIONAL, requestedNodes [9] RequestedNodes OPTIONAL, servingNodeIndication [10] NULL OPTIONAL, localTimeZoneRequest [12] NULL OPTIONAL } -- currentLocation and locationInformationEPS-Supported shall be absent if -- locationInformation is absent -- t-adsData shall be absent in messages sent to the VLR -- requestedNodes shall be absent if requestedDomain is "cs-Domain" -- servingNodeIndication shall be absent if locationInformation is absent; -- servingNodeIndication shall be absent if current location is present; -- servingNodeIndication indicates by its presence that only the serving node's -- address (MME-Name or SGSN-Number or VLR-Number) is requested. DomainType ::= ENUMERATED { cs-Domain (0), ps-Domain (1), ...} -- exception handling: -- reception of values > 1 shall be mapped to 'cs-Domain' RequestedNodes ::= BIT STRING { mme (0), sgsn (1)} (SIZE (1..8)) -- Other bits than listed above shall be discarded. LocationInformation ::= SEQUENCE { ageOfLocationInformation AgeOfLocationInformation OPTIONAL, geographicalInformation [0] GeographicalInformation OPTIONAL, vlr-number [1] ISDN-AddressString OPTIONAL, locationNumber [2] LocationNumber OPTIONAL, cellGlobalIdOrServiceAreaIdOrLAI [3] CellGlobalIdOrServiceAreaIdOrLAI OPTIONAL, extensionContainer [4] ExtensionContainer OPTIONAL, ... , selectedLSA-Id [5] LSAIdentity OPTIONAL, msc-Number [6] ISDN-AddressString OPTIONAL, geodeticInformation [7] GeodeticInformation OPTIONAL, currentLocationRetrieved [8] NULL OPTIONAL, sai-Present [9] NULL OPTIONAL, locationInformationEPS [10] LocationInformationEPS OPTIONAL, userCSGInformation [11] UserCSGInformation OPTIONAL } -- sai-Present indicates that the cellGlobalIdOrServiceAreaIdOrLAI parameter contains -- a Service Area Identity. -- currentLocationRetrieved shall be present -- if the location information were retrieved after a successfull paging. -- if the locationinformationEPS IE is present then the cellGlobalIdOrServiceAreaIdOrLAI IE, -- the ageOfLocationInformation IE, the geographicalInformation IE, the geodeticInformation IE -- and the currentLocationRetrieved IE (outside the locationInformationEPS IE) shall be -- absent. As an exception, both the cellGlobalIdOrServiceAreaIdOrLAI IE including an LAI and -- the locationinformationEPS IE may be present in a MAP-NOTE-MM-EVENT. -- UserCSGInformation contains the CSG ID, Access mode, and the CSG Membership Indication in -- the case the Access mode is Hybrid Mode. -- The locationInformationEPS IE should be absent if locationInformationEPS-Supported was not -- received in the RequestedInfo IE. LocationInformationEPS ::= SEQUENCE { e-utranCellGlobalIdentity [0] E-UTRAN-CGI OPTIONAL, trackingAreaIdentity [1] TA-Id OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, geographicalInformation [3] GeographicalInformation OPTIONAL, geodeticInformation [4] GeodeticInformation OPTIONAL, currentLocationRetrieved [5] NULL OPTIONAL, ageOfLocationInformation [6] AgeOfLocationInformation OPTIONAL, ..., mme-Name [7] DiameterIdentity OPTIONAL } -- currentLocationRetrieved shall be present if the location information -- was retrieved after successful paging. LocationInformationGPRS ::= SEQUENCE { cellGlobalIdOrServiceAreaIdOrLAI [0] CellGlobalIdOrServiceAreaIdOrLAI OPTIONAL, routeingAreaIdentity [1] RAIdentity OPTIONAL, geographicalInformation [2] GeographicalInformation OPTIONAL, sgsn-Number [3] ISDN-AddressString OPTIONAL, selectedLSAIdentity [4] LSAIdentity OPTIONAL, extensionContainer [5] ExtensionContainer OPTIONAL, ..., sai-Present [6] NULL OPTIONAL, geodeticInformation [7] GeodeticInformation OPTIONAL, currentLocationRetrieved [8] NULL OPTIONAL, ageOfLocationInformation [9] AgeOfLocationInformation OPTIONAL, userCSGInformation [10] UserCSGInformation OPTIONAL } -- sai-Present indicates that the cellGlobalIdOrServiceAreaIdOrLAI parameter contains -- a Service Area Identity. -- currentLocationRetrieved shall be present if the location information -- was retrieved after successful paging. -- UserCSGInformation contains the CSG ID, Access mode, and the CSG Membership Indication in -- the case the Access mode is Hybrid Mode. LocationInformation5GS ::= SEQUENCE { nrCellGlobalIdentity [0] NR-CGI OPTIONAL, e-utranCellGlobalIdentity [1] E-UTRAN-CGI OPTIONAL, geographicalInformation [2] GeographicalInformation OPTIONAL, geodeticInformation [3] GeodeticInformation OPTIONAL, amf-address [4] FQDN OPTIONAL, trackingAreaIdentity [5] TA-Id OPTIONAL, currentLocationRetrieved [6] NULL OPTIONAL, ageOfLocationInformation [7] AgeOfLocationInformation OPTIONAL, vplmnId [8] PLMN-Id OPTIONAL, localtimeZone [9] TimeZone OPTIONAL, rat-Type [10] Used-RAT-Type OPTIONAL, extensionContainer [11] ExtensionContainer OPTIONAL, ..., nrTrackingAreaIdentity [12] NR-TA-Id OPTIONAL } -- currentLocationRetrieved shall be present if the location information -- was retrieved after successful paging. UserCSGInformation ::= SEQUENCE { csg-Id [0] CSG-Id, extensionContainer [1] ExtensionContainer OPTIONAL, ..., accessMode [2] OCTET STRING (SIZE(1)) OPTIONAL, cmi [3] OCTET STRING (SIZE(1)) OPTIONAL } -- The encoding of the accessMode and cmi parameters are as defined in 3GPP TS 29.060 [105]. GeographicalInformation ::= OCTET STRING (SIZE (8)) -- Refers to geographical Information defined in 3GPP TS 23.032. -- Only the description of an ellipsoid point with uncertainty circle -- as specified in 3GPP TS 23.032 is allowed to be used -- The internal structure according to 3GPP TS 23.032 is as follows: -- Type of shape (ellipsoid point with uncertainty circle) 1 octet -- Degrees of Latitude 3 octets -- Degrees of Longitude 3 octets -- Uncertainty code 1 octet GeodeticInformation ::= OCTET STRING (SIZE (10)) -- Refers to Calling Geodetic Location defined in Q.763 (1999). -- Only the description of an ellipsoid point with uncertainty circle -- as specified in Q.763 (1999) is allowed to be used -- The internal structure according to Q.763 (1999) is as follows: -- Screening and presentation indicators 1 octet -- Type of shape (ellipsoid point with uncertainty circle) 1 octet -- Degrees of Latitude 3 octets -- Degrees of Longitude 3 octets -- Uncertainty code 1 octet -- Confidence 1 octet LocationNumber ::= OCTET STRING (SIZE (2..10)) -- the internal structure is defined in ITU-T Rec Q.763 SubscriberState ::= CHOICE { assumedIdle [0] NULL, camelBusy [1] NULL, netDetNotReachable NotReachableReason, notProvidedFromVLR [2] NULL} PS-SubscriberState ::= CHOICE { notProvidedFromSGSNorMME [0] NULL, ps-Detached [1] NULL, ps-AttachedNotReachableForPaging [2] NULL, ps-AttachedReachableForPaging [3] NULL, ps-PDP-ActiveNotReachableForPaging [4] PDP-ContextInfoList, ps-PDP-ActiveReachableForPaging [5] PDP-ContextInfoList, netDetNotReachable NotReachableReason } PDP-ContextInfoList ::= SEQUENCE SIZE (1..maxNumOfPDP-Contexts) OF PDP-ContextInfo PDP-ContextInfo ::= SEQUENCE { pdp-ContextIdentifier [0] ContextId, pdp-ContextActive [1] NULL OPTIONAL, pdp-Type [2] PDP-Type, pdp-Address [3] PDP-Address OPTIONAL, apn-Subscribed [4] APN OPTIONAL, apn-InUse [5] APN OPTIONAL, nsapi [6] NSAPI OPTIONAL, transactionId [7] TransactionId OPTIONAL, teid-ForGnAndGp [8] TEID OPTIONAL, teid-ForIu [9] TEID OPTIONAL, ggsn-Address [10] GSN-Address OPTIONAL, qos-Subscribed [11] Ext-QoS-Subscribed OPTIONAL, qos-Requested [12] Ext-QoS-Subscribed OPTIONAL, qos-Negotiated [13] Ext-QoS-Subscribed OPTIONAL, chargingId [14] GPRSChargingID OPTIONAL, chargingCharacteristics [15] ChargingCharacteristics OPTIONAL, rnc-Address [16] GSN-Address OPTIONAL, extensionContainer [17] ExtensionContainer OPTIONAL, ..., qos2-Subscribed [18] Ext2-QoS-Subscribed OPTIONAL, -- qos2-Subscribed may be present only if qos-Subscribed is present. qos2-Requested [19] Ext2-QoS-Subscribed OPTIONAL, -- qos2-Requested may be present only if qos-Requested is present. qos2-Negotiated [20] Ext2-QoS-Subscribed OPTIONAL, -- qos2-Negotiated may be present only if qos-Negotiated is present. qos3-Subscribed [21] Ext3-QoS-Subscribed OPTIONAL, -- qos3-Subscribed may be present only if qos2-Subscribed is present. qos3-Requested [22] Ext3-QoS-Subscribed OPTIONAL, -- qos3-Requested may be present only if qos2-Requested is present. qos3-Negotiated [23] Ext3-QoS-Subscribed OPTIONAL, -- qos3-Negotiated may be present only if qos2-Negotiated is present. qos4-Subscribed [25] Ext4-QoS-Subscribed OPTIONAL, -- qos4-Subscribed may be present only if qos3-Subscribed is present. qos4-Requested [26] Ext4-QoS-Subscribed OPTIONAL, -- qos4-Requested may be present only if qos3-Requested is present. qos4-Negotiated [27] Ext4-QoS-Subscribed OPTIONAL, -- qos4-Negotiated may be present only if qos3-Negotiated is present. ext-pdp-Type [28] Ext-PDP-Type OPTIONAL, -- contains the value IPv4v6 defined in 3GPP TS 29.060 [105], if the PDP can be -- accessed by dual-stack UEs. ext-pdp-Address [29] PDP-Address OPTIONAL -- contains an additional IP address in case of dual-stack static IP address assignment -- for the UE. -- it may contain an IPv4 or an IPv6 address/prefix, and it may be present -- only if pdp-Address is present; if both are present, each parameter shall -- contain a different type of address (IPv4 or IPv6). } NSAPI ::= INTEGER (0..15) -- This type is used to indicate the Network layer Service Access Point TransactionId ::= OCTET STRING (SIZE (1..2)) -- This type carries the value part of the transaction identifier which is used in the -- session management messages on the access interface. The encoding is defined in -- 3GPP TS 24.008 TEID ::= OCTET STRING (SIZE (4)) -- This type carries the value part of the Tunnel Endpoint Identifier which is used to -- distinguish between different tunnels between the same pair of entities which communicate -- using the GPRS Tunnelling Protocol The encoding is defined in 3GPP TS 29.060. GPRSChargingID ::= OCTET STRING (SIZE (4)) -- The Charging ID is a unique four octet value generated by the GGSN when -- a PDP Context is activated. A Charging ID is generated for each activated context. -- The encoding is defined in 3GPP TS 29.060. NotReachableReason ::= ENUMERATED { msPurged (0), imsiDetached (1), restrictedArea (2), notRegistered (3)} -- any time interrogation info types AnyTimeInterrogationArg ::= SEQUENCE { subscriberIdentity [0] SubscriberIdentity, requestedInfo [1] RequestedInfo, gsmSCF-Address [3] ISDN-AddressString, extensionContainer [2] ExtensionContainer OPTIONAL, ...} AnyTimeInterrogationRes ::= SEQUENCE { subscriberInfo SubscriberInfo, extensionContainer ExtensionContainer OPTIONAL, ...} -- any time information handling types AnyTimeSubscriptionInterrogationArg ::= SEQUENCE { subscriberIdentity [0] SubscriberIdentity, requestedSubscriptionInfo [1] RequestedSubscriptionInfo, gsmSCF-Address [2] ISDN-AddressString, extensionContainer [3] ExtensionContainer OPTIONAL, longFTN-Supported [4] NULL OPTIONAL, ...} AnyTimeSubscriptionInterrogationRes ::= SEQUENCE { callForwardingData [1] CallForwardingData OPTIONAL, callBarringData [2] CallBarringData OPTIONAL, odb-Info [3] ODB-Info OPTIONAL, camel-SubscriptionInfo [4] CAMEL-SubscriptionInfo OPTIONAL, supportedVLR-CAMEL-Phases [5] SupportedCamelPhases OPTIONAL, supportedSGSN-CAMEL-Phases [6] SupportedCamelPhases OPTIONAL, extensionContainer [7] ExtensionContainer OPTIONAL, ... , offeredCamel4CSIsInVLR [8] OfferedCamel4CSIs OPTIONAL, offeredCamel4CSIsInSGSN [9] OfferedCamel4CSIs OPTIONAL, msisdn-BS-List [10] MSISDN-BS-List OPTIONAL, csg-SubscriptionDataList [11] CSG-SubscriptionDataList OPTIONAL, cw-Data [12] CallWaitingData OPTIONAL, ch-Data [13] CallHoldData OPTIONAL, clip-Data [14] ClipData OPTIONAL, clir-Data [15] ClirData OPTIONAL, ect-data [16] EctData OPTIONAL } CallWaitingData ::= SEQUENCE { cwFeatureList [1] Ext-CwFeatureList, notificationToCSE [2] NULL OPTIONAL, ... } Ext-CwFeatureList ::= SEQUENCE SIZE (1..maxNumOfExt-BasicServiceGroups) OF Ext-CwFeature Ext-CwFeature ::= SEQUENCE { basicService [1] Ext-BasicServiceCode, ss-Status [2] Ext-SS-Status, ... } ClipData ::= SEQUENCE { ss-Status [1] Ext-SS-Status, overrideCategory [2] OverrideCategory, notificationToCSE [3] NULL OPTIONAL, ... } ClirData ::= SEQUENCE { ss-Status [1] Ext-SS-Status, cliRestrictionOption [2] CliRestrictionOption OPTIONAL, notificationToCSE [3] NULL OPTIONAL, ... } CallHoldData ::= SEQUENCE { ss-Status [1] Ext-SS-Status, notificationToCSE [2] NULL OPTIONAL, ... } EctData ::= SEQUENCE { ss-Status [1] Ext-SS-Status, notificationToCSE [2] NULL OPTIONAL, ... } RequestedSubscriptionInfo ::= SEQUENCE { requestedSS-Info [1] SS-ForBS-Code OPTIONAL, odb [2] NULL OPTIONAL, requestedCAMEL-SubscriptionInfo [3] RequestedCAMEL-SubscriptionInfo OPTIONAL, supportedVLR-CAMEL-Phases [4] NULL OPTIONAL, supportedSGSN-CAMEL-Phases [5] NULL OPTIONAL, extensionContainer [6] ExtensionContainer OPTIONAL, ..., additionalRequestedCAMEL-SubscriptionInfo [7] AdditionalRequestedCAMEL-SubscriptionInfo OPTIONAL, msisdn-BS-List [8] NULL OPTIONAL, csg-SubscriptionDataRequested [9] NULL OPTIONAL, cw-Info [10] NULL OPTIONAL, clip-Info [11] NULL OPTIONAL, clir-Info [12] NULL OPTIONAL, hold-Info [13] NULL OPTIONAL, ect-Info [14] NULL OPTIONAL } MSISDN-BS-List ::= SEQUENCE SIZE (1..maxNumOfMSISDN) OF MSISDN-BS maxNumOfMSISDN INTEGER ::= 50 MSISDN-BS ::= SEQUENCE { msisdn ISDN-AddressString, basicServiceList [0] BasicServiceList OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ...} RequestedCAMEL-SubscriptionInfo ::= ENUMERATED { o-CSI (0), t-CSI (1), vt-CSI (2), tif-CSI (3), gprs-CSI (4), mo-sms-CSI (5), ss-CSI (6), m-CSI (7), d-csi (8)} AdditionalRequestedCAMEL-SubscriptionInfo ::= ENUMERATED { mt-sms-CSI (0), mg-csi (1), o-IM-CSI (2), d-IM-CSI (3), vt-IM-CSI (4), ...} -- exception handling: unknown values shall be discarded by the receiver. CallForwardingData ::= SEQUENCE { forwardingFeatureList Ext-ForwFeatureList, notificationToCSE NULL OPTIONAL, extensionContainer [0] ExtensionContainer OPTIONAL, ...} CallBarringData ::= SEQUENCE { callBarringFeatureList Ext-CallBarFeatureList, password Password OPTIONAL, wrongPasswordAttemptsCounter WrongPasswordAttemptsCounter OPTIONAL, notificationToCSE NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} WrongPasswordAttemptsCounter ::= INTEGER (0..4) ODB-Info ::= SEQUENCE { odb-Data ODB-Data, notificationToCSE NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} CAMEL-SubscriptionInfo ::= SEQUENCE { o-CSI [0] O-CSI OPTIONAL, o-BcsmCamelTDP-CriteriaList [1] O-BcsmCamelTDPCriteriaList OPTIONAL, d-CSI [2] D-CSI OPTIONAL, t-CSI [3] T-CSI OPTIONAL, t-BCSM-CAMEL-TDP-CriteriaList [4] T-BCSM-CAMEL-TDP-CriteriaList OPTIONAL, vt-CSI [5] T-CSI OPTIONAL, vt-BCSM-CAMEL-TDP-CriteriaList [6] T-BCSM-CAMEL-TDP-CriteriaList OPTIONAL, tif-CSI [7] NULL OPTIONAL, tif-CSI-NotificationToCSE [8] NULL OPTIONAL, gprs-CSI [9] GPRS-CSI OPTIONAL, mo-sms-CSI [10] SMS-CSI OPTIONAL, ss-CSI [11] SS-CSI OPTIONAL, m-CSI [12] M-CSI OPTIONAL, extensionContainer [13] ExtensionContainer OPTIONAL, ..., specificCSIDeletedList [14] SpecificCSI-Withdraw OPTIONAL, mt-sms-CSI [15] SMS-CSI OPTIONAL, mt-smsCAMELTDP-CriteriaList [16] MT-smsCAMELTDP-CriteriaList OPTIONAL, mg-csi [17] MG-CSI OPTIONAL, o-IM-CSI [18] O-CSI OPTIONAL, o-IM-BcsmCamelTDP-CriteriaList [19] O-BcsmCamelTDPCriteriaList OPTIONAL, d-IM-CSI [20] D-CSI OPTIONAL, vt-IM-CSI [21] T-CSI OPTIONAL, vt-IM-BCSM-CAMEL-TDP-CriteriaList [22] T-BCSM-CAMEL-TDP-CriteriaList OPTIONAL } AnyTimeModificationArg ::= SEQUENCE { subscriberIdentity [0] SubscriberIdentity, gsmSCF-Address [1] ISDN-AddressString, modificationRequestFor-CF-Info [2] ModificationRequestFor-CF-Info OPTIONAL, modificationRequestFor-CB-Info [3] ModificationRequestFor-CB-Info OPTIONAL, modificationRequestFor-CSI [4] ModificationRequestFor-CSI OPTIONAL, extensionContainer [5] ExtensionContainer OPTIONAL, longFTN-Supported [6] NULL OPTIONAL, ..., modificationRequestFor-ODB-data [7] ModificationRequestFor-ODB-data OPTIONAL, modificationRequestFor-IP-SM-GW-Data [8] ModificationRequestFor-IP-SM-GW-Data OPTIONAL, activationRequestForUE-reachability [9] RequestedServingNode OPTIONAL, modificationRequestFor-CSG [10] ModificationRequestFor-CSG OPTIONAL, modificationRequestFor-CW-Data [11] ModificationRequestFor-CW-Info OPTIONAL, modificationRequestFor-CLIP-Data [12] ModificationRequestFor-CLIP-Info OPTIONAL, modificationRequestFor-CLIR-Data [13] ModificationRequestFor-CLIR-Info OPTIONAL, modificationRequestFor-HOLD-Data [14] ModificationRequestFor-CH-Info OPTIONAL, modificationRequestFor-ECT-Data [15] ModificationRequestFor-ECT-Info OPTIONAL } ModificationRequestFor-CW-Info ::= SEQUENCE { basicService [0] Ext-BasicServiceCode OPTIONAL, ss-Status [1] Ext-SS-Status OPTIONAL, modifyNotificationToCSE [2] ModificationInstruction OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} ModificationRequestFor-CH-Info ::= SEQUENCE { ss-Status [0] Ext-SS-Status OPTIONAL, modifyNotificationToCSE [1] ModificationInstruction OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ...} ModificationRequestFor-ECT-Info ::= SEQUENCE { ss-Status [0] Ext-SS-Status OPTIONAL, modifyNotificationToCSE [1] ModificationInstruction OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ...} ModificationRequestFor-CLIR-Info ::= SEQUENCE { ss-Status [0] Ext-SS-Status OPTIONAL, cliRestrictionOption [1] CliRestrictionOption OPTIONAL, modifyNotificationToCSE [2] ModificationInstruction OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} ModificationRequestFor-CLIP-Info ::= SEQUENCE { ss-Status [0] Ext-SS-Status OPTIONAL, overrideCategory [1] OverrideCategory OPTIONAL, modifyNotificationToCSE [2] ModificationInstruction OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} ModificationRequestFor-CSG ::= SEQUENCE { modifyNotificationToCSE [0] ModificationInstruction OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ...} RequestedServingNode ::= BIT STRING { mmeAndSgsn (0)} (SIZE (1..8)) ServingNode ::= BIT STRING { mme (0), sgsn (1)} (SIZE (2..8)) -- Other bits than listed above shall be discarded. AnyTimeModificationRes ::= SEQUENCE { ss-InfoFor-CSE [0] Ext-SS-InfoFor-CSE OPTIONAL, camel-SubscriptionInfo [1] CAMEL-SubscriptionInfo OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ..., odb-Info [3] ODB-Info OPTIONAL, cw-Data [4] CallWaitingData OPTIONAL, ch-Data [5] CallHoldData OPTIONAL, clip-Data [6] ClipData OPTIONAL, clir-Data [7] ClirData OPTIONAL, ect-data [8] EctData OPTIONAL, serviceCentreAddress [9] AddressString OPTIONAL } ModificationRequestFor-CF-Info ::= SEQUENCE { ss-Code [0] SS-Code, basicService [1] Ext-BasicServiceCode OPTIONAL, ss-Status [2] Ext-SS-Status OPTIONAL, forwardedToNumber [3] AddressString OPTIONAL, forwardedToSubaddress [4] ISDN-SubaddressString OPTIONAL, noReplyConditionTime [5] Ext-NoRepCondTime OPTIONAL, modifyNotificationToCSE [6] ModificationInstruction OPTIONAL, extensionContainer [7] ExtensionContainer OPTIONAL, ...} ModificationRequestFor-CB-Info ::= SEQUENCE { ss-Code [0] SS-Code, basicService [1] Ext-BasicServiceCode OPTIONAL, ss-Status [2] Ext-SS-Status OPTIONAL, password [3] Password OPTIONAL, wrongPasswordAttemptsCounter [4] WrongPasswordAttemptsCounter OPTIONAL, modifyNotificationToCSE [5] ModificationInstruction OPTIONAL, extensionContainer [6] ExtensionContainer OPTIONAL, ...} ModificationRequestFor-ODB-data ::= SEQUENCE { odb-data [0] ODB-Data OPTIONAL, modifyNotificationToCSE [1] ModificationInstruction OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ...} ModificationRequestFor-CSI ::= SEQUENCE { requestedCamel-SubscriptionInfo [0] RequestedCAMEL-SubscriptionInfo, modifyNotificationToCSE [1] ModificationInstruction OPTIONAL, modifyCSI-State [2] ModificationInstruction OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ..., additionalRequestedCAMEL-SubscriptionInfo [4] AdditionalRequestedCAMEL-SubscriptionInfo OPTIONAL } -- requestedCamel-SubscriptionInfo shall be discarded if -- additionalRequestedCAMEL-SubscriptionInfo is received ModificationRequestFor-IP-SM-GW-Data ::= SEQUENCE { modifyRegistrationStatus [0] ModificationInstruction OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ..., ip-sm-gw-DiameterAddress [2] NetworkNodeDiameterAddress OPTIONAL -- ip-sm-gw-DiameterAddress may be present when ModificationInstruction is "activate" } ModificationInstruction ::= ENUMERATED { deactivate (0), activate (1)} -- subscriber data modification notification types NoteSubscriberDataModifiedArg ::= SEQUENCE { imsi IMSI, msisdn ISDN-AddressString, forwardingInfoFor-CSE [0] Ext-ForwardingInfoFor-CSE OPTIONAL, callBarringInfoFor-CSE [1] Ext-CallBarringInfoFor-CSE OPTIONAL, odb-Info [2] ODB-Info OPTIONAL, camel-SubscriptionInfo [3] CAMEL-SubscriptionInfo OPTIONAL, allInformationSent [4] NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., ue-reachable [5] ServingNode OPTIONAL, csg-SubscriptionDataList [6] CSG-SubscriptionDataList OPTIONAL, cw-Data [7] CallWaitingData OPTIONAL, ch-Data [8] CallHoldData OPTIONAL, clip-Data [9] ClipData OPTIONAL, clir-Data [10] ClirData OPTIONAL, ect-data [11] EctData OPTIONAL } NoteSubscriberDataModifiedRes ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} -- mobility management event notificatioon info types NoteMM-EventArg::= SEQUENCE { serviceKey ServiceKey, eventMet [0] MM-Code, imsi [1] IMSI, msisdn [2] ISDN-AddressString, locationInformation [3] LocationInformation OPTIONAL, supportedCAMELPhases [5] SupportedCamelPhases OPTIONAL, extensionContainer [6] ExtensionContainer OPTIONAL, ..., locationInformationGPRS [7] LocationInformationGPRS OPTIONAL, offeredCamel4Functionalities [8] OfferedCamel4Functionalities OPTIONAL } NoteMM-EventRes ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} Ext-SS-InfoFor-CSE ::= CHOICE { forwardingInfoFor-CSE [0] Ext-ForwardingInfoFor-CSE, callBarringInfoFor-CSE [1] Ext-CallBarringInfoFor-CSE } Ext-ForwardingInfoFor-CSE ::= SEQUENCE { ss-Code [0] SS-Code, forwardingFeatureList [1] Ext-ForwFeatureList, notificationToCSE [2] NULL OPTIONAL, extensionContainer [3] ExtensionContainer OPTIONAL, ...} Ext-CallBarringInfoFor-CSE ::= SEQUENCE { ss-Code [0] SS-Code, callBarringFeatureList [1] Ext-CallBarFeatureList, password [2] Password OPTIONAL, wrongPasswordAttemptsCounter [3] WrongPasswordAttemptsCounter OPTIONAL, notificationToCSE [4] NULL OPTIONAL, extensionContainer [5] ExtensionContainer OPTIONAL, ...} -- vcsg location registration types UpdateVcsgLocationArg ::= SEQUENCE { imsi IMSI, msisdn [2] ISDN-AddressString OPTIONAL, vlr-Number [0] ISDN-AddressString OPTIONAL, sgsn-Number [1] ISDN-AddressString OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... } UpdateVcsgLocationRes ::= SEQUENCE { temporaryEmptySubscriptiondataIndicator NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... } CancelVcsgLocationArg ::= SEQUENCE { identity Identity, extensionContainer ExtensionContainer OPTIONAL, ... } CancelVcsgLocationRes ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ... } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-OM-DataTypes.asn
-- 17.7.2 Operation and maintenance data types -- 3GPP TS 29.002 V17.1.0 (2021-06) MAP-OM-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-OM-DataTypes (12) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS ActivateTraceModeArg, ActivateTraceModeRes, DeactivateTraceModeArg, DeactivateTraceModeRes, TracePropagationList ; IMPORTS AddressString, IMSI, GSN-Address, GlobalCellId, E-UTRAN-CGI, TA-Id, RAIdentity, LAIFixedLength, PLMN-Id FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} ; ActivateTraceModeArg ::= SEQUENCE { imsi [0] IMSI OPTIONAL, traceReference [1] TraceReference, traceType [2] TraceType, omc-Id [3] AddressString OPTIONAL, extensionContainer [4] ExtensionContainer OPTIONAL, ..., traceReference2 [5] TraceReference2 OPTIONAL, traceDepthList [6] TraceDepthList OPTIONAL, traceNE-TypeList [7] TraceNE-TypeList OPTIONAL, traceInterfaceList [8] TraceInterfaceList OPTIONAL, traceEventList [9] TraceEventList OPTIONAL, traceCollectionEntity [10] GSN-Address OPTIONAL, mdt-Configuration [11] MDT-Configuration OPTIONAL } MDT-Configuration ::= SEQUENCE { jobType JobType, areaScope AreaScope OPTIONAL, listOfMeasurements ListOfMeasurements OPTIONAL, reportingTrigger [0] ReportingTrigger OPTIONAL, reportInterval ReportInterval OPTIONAL, reportAmount [1] ReportAmount OPTIONAL, eventThresholdRSRP EventThresholdRSRP OPTIONAL, eventThresholdRSRQ [2] EventThresholdRSRQ OPTIONAL, loggingInterval [3] LoggingInterval OPTIONAL, loggingDuration [4] LoggingDuration OPTIONAL, extensionContainer [5] ExtensionContainer OPTIONAL, ..., measurementPeriodUMTS [6] PeriodUMTS OPTIONAL, measurementPeriodLTE [7] PeriodLTE OPTIONAL, collectionPeriodRRM-UMTS [8] PeriodUMTS OPTIONAL, collectionPeriodRRM-LTE [9] PeriodLTE OPTIONAL, positioningMethod [10] PositioningMethod OPTIONAL, measurementQuantity [11] MeasurementQuantity OPTIONAL, eventThreshold1F [12] EventThreshold1F OPTIONAL, eventThreshold1I [13] EventThreshold1I OPTIONAL, mdt-Allowed-PLMN-List [14] MDT-Allowed-PLMNId-List OPTIONAL } MDT-Allowed-PLMNId-List ::= SEQUENCE SIZE (1..16) OF PLMN-Id PeriodUMTS ::= ENUMERATED { d250ms (0), d500ms (1), d1000ms (2), d2000ms (3), d3000ms (4), d4000ms (5), d6000ms (6), d8000ms (7), d12000ms (8), d16000ms (9), d20000ms (10), d24000ms (11), d28000ms (12), d32000ms (13), d64000ms (14)} PeriodLTE ::= ENUMERATED { d1024ms (0), d1280ms (1), d2048ms (2), d2560ms (3), d5120ms (4), d10240ms (5), d1min (6)} PositioningMethod ::= OCTET STRING (SIZE (1)) -- Octet is coded as described in 3GPP TS 32.422 [132]. MeasurementQuantity ::= OCTET STRING (SIZE (1)) -- Octet is coded as described in 3GPP TS 32.422 [132]. EventThreshold1F ::= INTEGER (-120..165) EventThreshold1I ::= INTEGER (-120..-25) JobType ::= ENUMERATED { immediate-MDT-only (0), logged-MDT-only (1), trace-only (2), immediate-MDT-and-trace (3)} AreaScope ::= SEQUENCE { cgi-List [0] CGI-List OPTIONAL, e-utran-cgi-List [1] E-UTRAN-CGI-List OPTIONAL, routingAreaId-List [2] RoutingAreaId-List OPTIONAL, locationAreaId-List [3] LocationAreaId-List OPTIONAL, trackingAreaId-List [4] TrackingAreaId-List OPTIONAL, extensionContainer [5] ExtensionContainer OPTIONAL, ... } CGI-List ::= SEQUENCE SIZE (1..32) OF GlobalCellId E-UTRAN-CGI-List ::= SEQUENCE SIZE (1..32) OF E-UTRAN-CGI RoutingAreaId-List ::= SEQUENCE SIZE (1..8) OF RAIdentity LocationAreaId-List ::= SEQUENCE SIZE (1..8) OF LAIFixedLength TrackingAreaId-List ::= SEQUENCE SIZE (1..8) OF TA-Id ListOfMeasurements ::= OCTET STRING (SIZE (4)) -- Octets are coded as described in 3GPP TS 32.422. ReportingTrigger ::= OCTET STRING (SIZE (1)) -- Octet is coded as described in 3GPP TS 32.422. ReportInterval ::= ENUMERATED { umts250ms (0), umts500ms (1), umts1000ms (2), umts2000ms (3), umts3000ms (4), umts4000ms (5), umts6000ms (6), umts8000ms (7), umts12000ms (8), umts16000ms (9), umts20000ms (10), umts24000ms (11), umts28000ms (12), umts32000ms (13), umts64000ms (14), lte120ms (15), lte240ms (16), lte480ms (17), lte640ms (18), lte1024ms (19), lte2048ms (20), lte5120ms (21), lte10240ms (22), lte1min (23), lte6min (24), lte12min (25), lte30min (26), lte60min (27)} ReportAmount ::= ENUMERATED { d1 (0), d2 (1), d4 (2), d8 (3), d16 (4), d32 (5), d64 (6), infinity (7)} EventThresholdRSRP ::= INTEGER (0..97) EventThresholdRSRQ ::= INTEGER (0..34) LoggingInterval ::= ENUMERATED { d1dot28 (0), d2dot56 (1), d5dot12 (2), d10dot24 (3), d20dot48 (4), d30dot72 (5), d40dot96 (6), d61dot44 (7)} LoggingDuration ::= ENUMERATED { d600sec (0), d1200sec (1), d2400sec (2), d3600sec (3), d5400sec (4), d7200sec (5)} TraceReference ::= OCTET STRING (SIZE (1..2)) TraceReference2 ::= OCTET STRING (SIZE (3)) TraceRecordingSessionReference ::= OCTET STRING (SIZE (2)) TraceType ::= INTEGER (0..255) -- Trace types are fully defined in 3GPP TS 52.008. [61] TraceDepthList ::= SEQUENCE { msc-s-TraceDepth [0] TraceDepth OPTIONAL, mgw-TraceDepth [1] TraceDepth OPTIONAL, sgsn-TraceDepth [2] TraceDepth OPTIONAL, ggsn-TraceDepth [3] TraceDepth OPTIONAL, rnc-TraceDepth [4] TraceDepth OPTIONAL, bmsc-TraceDepth [5] TraceDepth OPTIONAL, ... , mme-TraceDepth [6] TraceDepth OPTIONAL, sgw-TraceDepth [7] TraceDepth OPTIONAL, pgw-TraceDepth [8] TraceDepth OPTIONAL, eNB-TraceDepth [9] TraceDepth OPTIONAL, msc-s-TraceDepthExtension [10] TraceDepthExtension OPTIONAL, mgw-TraceDepthExtension [11] TraceDepthExtension OPTIONAL, sgsn-TraceDepthExtension [12] TraceDepthExtension OPTIONAL, ggsn-TraceDepthExtension [13] TraceDepthExtension OPTIONAL, rnc-TraceDepthExtension [14] TraceDepthExtension OPTIONAL, bmsc-TraceDepthExtension [15] TraceDepthExtension OPTIONAL, mme-TraceDepthExtension [16] TraceDepthExtension OPTIONAL, sgw-TraceDepthExtension [17] TraceDepthExtension OPTIONAL, pgw-TraceDepthExtension [18] TraceDepthExtension OPTIONAL, eNB-TraceDepthExtension [19] TraceDepthExtension OPTIONAL } -- If one of the TraceDepthExtension types is sent, the corresponding TraceDepth type -- shall also be sent with the same enumeration value to allow the receiver not supporting -- the Extension to fall back to the non extended type. -- If one of the TraceDepthExtension types is received and supported, the corresponding -- TraceDepth type shall be ignored. TraceDepth ::= ENUMERATED { minimum (0), medium (1), maximum (2), ...} -- The value medium is applicable only for RNC. For other network elements, if value medium -- is received, value minimum shall be applied. TraceDepthExtension ::= ENUMERATED { minimumWithoutVendorSpecificExtension (0), mediumWithoutVendorSpecificExtension (1), maximumWithoutVendorSpecificExtension (2), ...} -- The value mediumWithoutVendorSpecificExtension is applicable only for RNC. For other -- network elements, if value mediumWithoutVendorSpecificExtension is received, value -- minimumWithoutVendorSpecificExtension shall be applied. TraceNE-TypeList ::= BIT STRING { msc-s (0), mgw (1), sgsn (2), ggsn (3), rnc (4), bm-sc (5) , mme (6), sgw (7), pgw (8), eNB (9)} (SIZE (6..16)) -- Other bits than listed above shall be discarded. TraceInterfaceList ::= SEQUENCE { msc-s-List [0] MSC-S-InterfaceList OPTIONAL, mgw-List [1] MGW-InterfaceList OPTIONAL, sgsn-List [2] SGSN-InterfaceList OPTIONAL, ggsn-List [3] GGSN-InterfaceList OPTIONAL, rnc-List [4] RNC-InterfaceList OPTIONAL, bmsc-List [5] BMSC-InterfaceList OPTIONAL, ..., mme-List [6] MME-InterfaceList OPTIONAL, sgw-List [7] SGW-InterfaceList OPTIONAL, pgw-List [8] PGW-InterfaceList OPTIONAL, eNB-List [9] ENB-InterfaceList OPTIONAL} MSC-S-InterfaceList ::= BIT STRING { a (0), iu (1), mc (2), map-g (3), map-b (4), map-e (5), map-f (6), cap (7), map-d (8), map-c (9)} (SIZE (10..16)) -- Other bits than listed above shall be discarded. MGW-InterfaceList ::= BIT STRING { mc (0), nb-up (1), iu-up (2)} (SIZE (3..8)) -- Other bits than listed above shall be discarded. SGSN-InterfaceList ::= BIT STRING { gb (0), iu (1), gn (2), map-gr (3), map-gd (4), map-gf (5), gs (6), ge (7), s3 (8), s4 (9), s6d (10)} (SIZE (8..16)) -- Other bits than listed above shall be discarded. GGSN-InterfaceList ::= BIT STRING { gn (0), gi (1), gmb (2)} (SIZE (3..8)) -- Other bits than listed above shall be discarded. RNC-InterfaceList ::= BIT STRING { iu (0), iur (1), iub (2), uu (3)} (SIZE (4..8)) -- Other bits than listed above shall be discarded. BMSC-InterfaceList ::= BIT STRING { gmb (0)} (SIZE (1..8)) -- Other bits than listed above shall be discarded. MME-InterfaceList ::= BIT STRING { s1-mme (0), s3 (1), s6a (2), s10 (3), s11 (4)} (SIZE (5..8)) -- Other bits than listed above shall be discarded. SGW-InterfaceList ::= BIT STRING { s4 (0), s5 (1), s8b (2), s11 (3), gxc (4)} (SIZE (5..8)) -- Other bits than listed above shall be discarded. PGW-InterfaceList ::= BIT STRING { s2a (0), s2b (1), s2c (2), s5 (3), s6b (4), gx (5), s8b (6), sgi (7)} (SIZE (8..16)) -- Other bits than listed above shall be discarded. ENB-InterfaceList ::= BIT STRING { s1-mme (0), x2 (1), uu (2)} (SIZE (3..8)) -- Other bits than listed above shall be discarded. TraceEventList ::= SEQUENCE { msc-s-List [0] MSC-S-EventList OPTIONAL, mgw-List [1] MGW-EventList OPTIONAL, sgsn-List [2] SGSN-EventList OPTIONAL, ggsn-List [3] GGSN-EventList OPTIONAL, bmsc-List [4] BMSC-EventList OPTIONAL, ..., mme-List [5] MME-EventList OPTIONAL, sgw-List [6] SGW-EventList OPTIONAL, pgw-List [7] PGW-EventList OPTIONAL} MSC-S-EventList ::= BIT STRING { mo-mtCall (0), mo-mt-sms (1), lu-imsiAttach-imsiDetach (2), handovers (3), ss (4)} (SIZE (5..16)) -- Other bits than listed above shall be discarded. MGW-EventList ::= BIT STRING { context (0)} (SIZE (1..8)) -- Other bits than listed above shall be discarded. SGSN-EventList ::= BIT STRING { pdpContext (0), mo-mt-sms (1), rau-gprsAttach-gprsDetach (2), mbmsContext (3)} (SIZE (4..16)) -- Other bits than listed above shall be discarded. GGSN-EventList ::= BIT STRING { pdpContext (0), mbmsContext (1)} (SIZE (2..8)) -- Other bits than listed above shall be discarded. BMSC-EventList ::= BIT STRING { mbmsMulticastServiceActivation (0)} (SIZE (1..8)) -- Other bits than listed above shall be discarded. MME-EventList ::= BIT STRING { ue-initiatedPDNconectivityRequest (0), serviceRequestts (1), initialAttachTrackingAreaUpdateDetach (2), ue-initiatedPDNdisconnection (3), bearerActivationModificationDeletion (4), handover (5)} (SIZE (6..8)) -- Other bits than listed above shall be discarded. SGW-EventList ::= BIT STRING { pdn-connectionCreation (0), pdn-connectionTermination (1), bearerActivationModificationDeletion (2)} (SIZE (3..8)) -- Other bits than listed above shall be discarded. PGW-EventList ::= BIT STRING { pdn-connectionCreation (0), pdn-connectionTermination (1), bearerActivationModificationDeletion (2)} (SIZE (3..8)) -- Other bits than listed above shall be discarded. TracePropagationList ::= SEQUENCE { traceReference [0] TraceReference OPTIONAL, traceType [1] TraceType OPTIONAL, traceReference2 [2] TraceReference2 OPTIONAL, traceRecordingSessionReference [3] TraceRecordingSessionReference OPTIONAL, rnc-TraceDepth [4] TraceDepth OPTIONAL, rnc-InterfaceList [5] RNC-InterfaceList OPTIONAL, msc-s-TraceDepth [6] TraceDepth OPTIONAL, msc-s-InterfaceList [7] MSC-S-InterfaceList OPTIONAL, msc-s-EventList [8] MSC-S-EventList OPTIONAL, mgw-TraceDepth [9] TraceDepth OPTIONAL, mgw-InterfaceList [10] MGW-InterfaceList OPTIONAL, mgw-EventList [11] MGW-EventList OPTIONAL, ..., rnc-TraceDepthExtension [12] TraceDepthExtension OPTIONAL, msc-s-TraceDepthExtension [13] TraceDepthExtension OPTIONAL, mgw-TraceDepthExtension [14] TraceDepthExtension OPTIONAL } -- If one of the TraceDepthExtension types is sent, the corresponding TraceDepth type -- shall also be sent with the same enumeration value to allow the receiver not supporting -- the Extension to fall back to the non extended type. -- If one of the TraceDepthExtension types is received and supported, the corresponding -- TraceDepth type shall be ignored. ActivateTraceModeRes ::= SEQUENCE { extensionContainer [0] ExtensionContainer OPTIONAL, ..., traceSupportIndicator [1] NULL OPTIONAL } DeactivateTraceModeArg ::= SEQUENCE { imsi [0] IMSI OPTIONAL, traceReference [1] TraceReference, extensionContainer [2] ExtensionContainer OPTIONAL, ..., traceReference2 [3] TraceReference2 OPTIONAL } DeactivateTraceModeRes ::= SEQUENCE { extensionContainer [0] ExtensionContainer OPTIONAL, ...} END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-OperationAndMaintenanceOperations.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) --17.6.2 Operation and Maintenance Operations MAP-OperationAndMaintenanceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-OperationAndMaintenanceOperations (6) version20 (20)} DEFINITIONS ::= BEGIN EXPORTS activateTraceMode, deactivateTraceMode, sendIMSI ; IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} systemFailure, dataMissing, unexpectedDataValue, facilityNotSupported, unknownSubscriber, unidentifiedSubscriber, tracingBufferFull FROM MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version20 (20)} ActivateTraceModeArg, ActivateTraceModeRes, DeactivateTraceModeArg, DeactivateTraceModeRes FROM MAP-OM-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-OM-DataTypes (12) version20 (20)} ISDN-AddressString, IMSI FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} ; activateTraceMode OPERATION ::= { --Timer m ARGUMENT ActivateTraceModeArg RESULT ActivateTraceModeRes -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | facilityNotSupported | unidentifiedSubscriber | tracingBufferFull} CODE local:50 } deactivateTraceMode OPERATION ::= { --Timer m ARGUMENT DeactivateTraceModeArg RESULT DeactivateTraceModeRes -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | facilityNotSupported | unidentifiedSubscriber} CODE local:51 } sendIMSI OPERATION ::= { --Timer m ARGUMENT ISDN-AddressString RESULT IMSI ERRORS { dataMissing | unexpectedDataValue | unknownSubscriber} CODE local:58 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-Protocol.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) --17.5 MAP operation and error codes MAP-Protocol { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Protocol (4) version20 (20)} DEFINITIONS ::= BEGIN IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} updateLocation, cancelLocation, cancelVcsgLocation, purgeMS, sendIdentification, updateGprsLocation, updateVcsgLocation, prepareHandover, sendEndSignal, processAccessSignalling, forwardAccessSignalling, prepareSubsequentHandover, sendAuthenticationInfo, authenticationFailureReport, checkIMEI, insertSubscriberData, deleteSubscriberData, reset, forwardCheckSS-Indication, restoreData, provideSubscriberInfo, anyTimeInterrogation, anyTimeSubscriptionInterrogation, anyTimeModification, sendRoutingInfoForGprs, failureReport, noteMsPresentForGprs, noteMM-Event, noteSubscriberDataModified FROM MAP-MobileServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MobileServiceOperations (5) version20 (20)} activateTraceMode, deactivateTraceMode, sendIMSI FROM MAP-OperationAndMaintenanceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-OperationAndMaintenanceOperations (6) version20 (20)} sendRoutingInfo, provideRoamingNumber, resumeCallHandling, setReportingState, statusReport, remoteUserFree, ist-Alert, ist-Command, releaseResources FROM MAP-CallHandlingOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CallHandlingOperations (7) version20 (20)} registerSS, eraseSS, activateSS, deactivateSS, interrogateSS, processUnstructuredSS-Request, unstructuredSS-Request, unstructuredSS-Notify, registerPassword, getPassword, ss-InvocationNotification, registerCC-Entry, eraseCC-Entry FROM MAP-SupplementaryServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SupplementaryServiceOperations (8) version20 (20)} sendRoutingInfoForSM, mo-ForwardSM, mt-ForwardSM, reportSM-DeliveryStatus, alertServiceCentre, informServiceCentre, readyForSM, mt-ForwardSM-VGCS FROM MAP-ShortMessageServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ShortMessageServiceOperations (9) version20 (20)} prepareGroupCall, processGroupCallSignalling, forwardGroupCallSignalling, sendGroupCallEndSignal, sendGroupCallInfo FROM MAP-Group-Call-Operations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Group-Call-Operations (22) version20 (20)} provideSubscriberLocation, sendRoutingInfoForLCS, subscriberLocationReport FROM MAP-LocationServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-LocationServiceOperations (24) version20 (20)} ; Supported-MAP-Operations OPERATION ::= {updateLocation | cancelLocation | cancelVcsgLocation | purgeMS | sendIdentification | updateGprsLocation | updateVcsgLocation | prepareHandover | sendEndSignal | processAccessSignalling | forwardAccessSignalling | prepareSubsequentHandover | sendAuthenticationInfo | authenticationFailureReport | checkIMEI | insertSubscriberData | deleteSubscriberData | reset | forwardCheckSS-Indication | restoreData | provideSubscriberInfo | anyTimeInterrogation | anyTimeSubscriptionInterrogation | anyTimeModification | sendRoutingInfoForGprs | failureReport |noteMsPresentForGprs | noteMM-Event | noteSubscriberDataModified | activateTraceMode | deactivateTraceMode | sendIMSI | sendRoutingInfo | provideRoamingNumber | resumeCallHandling | setReportingState | statusReport | remoteUserFree | ist-Alert | ist-Command | registerSS | eraseSS | activateSS | deactivateSS | interrogateSS | processUnstructuredSS-Request | unstructuredSS-Request | unstructuredSS-Notify | registerPassword | getPassword | ss-InvocationNotification | registerCC-Entry | eraseCC-Entry | sendRoutingInfoForSM | mo-ForwardSM | mt-ForwardSM | reportSM-DeliveryStatus | alertServiceCentre | informServiceCentre | readyForSM | prepareGroupCall | processGroupCallSignalling | forwardGroupCallSignalling | sendGroupCallEndSignal | provideSubscriberLocation | sendRoutingInfoForLCS | subscriberLocationReport | releaseResources | mt-ForwardSM-VGCS | sendGroupCallInfo } -- The following operation codes are reserved for operations -- existing in previous versions of the protocol -- Operation Name AC used Oper. Code -- -- sendParameters map-ac infoRetrieval (14) version1 (1) local:9 -- processUnstructuredSS-Data map-ac networkFunctionalSs (18) version1 (1) local:19 -- performHandover map-ac handoverControl (11) version1 (1) local:28 -- performSubsequentHandover map-ac handoverControl (11) version1 (1) local:30 -- provideSIWFSNumber map-ac sIWFSAllocation (12) version3 (3) local:31 -- siwfs-SignallingModify map-ac sIWFSAllocation (12) version3 (3) local:32 -- noteInternalHandover map-ac handoverControl (11) version1 (1) local:35 -- noteSubscriberPresent map-ac mwdMngt (24) version1 (1) local:48 -- alertServiceCentreWithoutResult map-ac shortMsgAlert (23) version1 (1) local:49 -- traceSubscriberActivity map-ac handoverControl (11) version1 (1) local:52 -- beginSubscriberActivity map-ac networkFunctionalSs (18) version1 (1) local:54 -- The following error codes are reserved for errors -- existing in previous versions of the protocol -- Error Name AC used Error Code -- -- unknownBaseStation map-ac handoverControl (11) version1 (1) local:2 -- invalidTargetBaseStation map-ac handoverControl (11) version1 (1) local:23 -- noRadioResourceAvailable map-ac handoverControl (11) version1 (1) local:24 END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-ShortMessageServiceOperations.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.6.5 Short message service operations MAP-ShortMessageServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ShortMessageServiceOperations (9) version20 (20)} DEFINITIONS ::= BEGIN EXPORTS sendRoutingInfoForSM, mo-ForwardSM, mt-ForwardSM, reportSM-DeliveryStatus, alertServiceCentre, informServiceCentre, readyForSM, mt-ForwardSM-VGCS ; IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} systemFailure, dataMissing, unexpectedDataValue, facilityNotSupported, unknownSubscriber, unidentifiedSubscriber, illegalSubscriber, illegalEquipment, teleserviceNotProvisioned, callBarred, subscriberBusyForMT-SMS, sm-DeliveryFailure, messageWaitingListFull, absentSubscriberSM FROM MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version20 (20)} RoutingInfoForSM-Arg, RoutingInfoForSM-Res, MO-ForwardSM-Arg, MO-ForwardSM-Res, MT-ForwardSM-Arg, MT-ForwardSM-Res, ReportSM-DeliveryStatusArg, ReportSM-DeliveryStatusRes, AlertServiceCentreArg, InformServiceCentreArg, ReadyForSM-Arg, ReadyForSM-Res, MT-ForwardSM-VGCS-Arg, MT-ForwardSM-VGCS-Res FROM MAP-SM-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SM-DataTypes (16) version20 (20)} ; sendRoutingInfoForSM OPERATION ::= { --Timer m ARGUMENT RoutingInfoForSM-Arg RESULT RoutingInfoForSM-Res ERRORS { systemFailure | dataMissing | unexpectedDataValue | facilityNotSupported | unknownSubscriber | teleserviceNotProvisioned | callBarred | absentSubscriberSM} CODE local:45 } mo-ForwardSM OPERATION ::= { --Timer ml ARGUMENT MO-ForwardSM-Arg RESULT MO-ForwardSM-Res -- optional ERRORS { systemFailure | unexpectedDataValue | facilityNotSupported | sm-DeliveryFailure} CODE local:46 } mt-ForwardSM OPERATION ::= { --Timer ml -- the timer value may be subject to negotiation between GMSC and IP-SM-GW ARGUMENT MT-ForwardSM-Arg RESULT MT-ForwardSM-Res -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | facilityNotSupported | unidentifiedSubscriber | illegalSubscriber | illegalEquipment | subscriberBusyForMT-SMS | sm-DeliveryFailure | absentSubscriberSM} CODE local:44 } reportSM-DeliveryStatus OPERATION ::= { --Timer s ARGUMENT ReportSM-DeliveryStatusArg RESULT ReportSM-DeliveryStatusRes -- optional ERRORS { dataMissing | unexpectedDataValue | unknownSubscriber | messageWaitingListFull} CODE local:47 } alertServiceCentre OPERATION ::= { --Timer s ARGUMENT AlertServiceCentreArg RETURN RESULT TRUE ERRORS { systemFailure | dataMissing | unexpectedDataValue} CODE local:64 } informServiceCentre OPERATION ::= { --Timer s ARGUMENT InformServiceCentreArg CODE local:63 } readyForSM OPERATION ::= { --Timer m ARGUMENT ReadyForSM-Arg RESULT ReadyForSM-Res -- optional ERRORS { dataMissing | unexpectedDataValue | facilityNotSupported | unknownSubscriber} CODE local:66 } mt-ForwardSM-VGCS OPERATION ::= { --Timer ml ARGUMENT MT-ForwardSM-VGCS-Arg RESULT MT-ForwardSM-VGCS-Res -- optional ERRORS { systemFailure | unexpectedDataValue } CODE local:21 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-SM-DataTypes.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.6 Short message data types MAP-SM-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SM-DataTypes (16) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS RoutingInfoForSM-Arg, RoutingInfoForSM-Res, MO-ForwardSM-Arg, MO-ForwardSM-Res, MT-ForwardSM-Arg, MT-ForwardSM-Res, ReportSM-DeliveryStatusArg, ReportSM-DeliveryStatusRes, AlertServiceCentreArg, InformServiceCentreArg, ReadyForSM-Arg, ReadyForSM-Res, SM-DeliveryOutcome, AlertReason, Additional-Number, MT-ForwardSM-VGCS-Arg, MT-ForwardSM-VGCS-Res ; IMPORTS AddressString, ISDN-AddressString, SignalInfo, IMSI, LMSI, ASCI-CallReference, Time, NetworkNodeDiameterAddress, HLR-Id FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} AbsentSubscriberDiagnosticSM FROM MAP-ER-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ER-DataTypes (17) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} ; RoutingInfoForSM-Arg ::= SEQUENCE { msisdn [0] ISDN-AddressString, sm-RP-PRI [1] BOOLEAN, serviceCentreAddress [2] AddressString, extensionContainer [6] ExtensionContainer OPTIONAL, ... , gprsSupportIndicator [7] NULL OPTIONAL, -- gprsSupportIndicator is set only if the SMS-GMSC supports -- receiving of two numbers from the HLR sm-RP-MTI [8] SM-RP-MTI OPTIONAL, sm-RP-SMEA [9] SM-RP-SMEA OPTIONAL, sm-deliveryNotIntended [10] SM-DeliveryNotIntended OPTIONAL, ip-sm-gwGuidanceIndicator [11] NULL OPTIONAL, imsi [12] IMSI OPTIONAL, t4-Trigger-Indicator [14] NULL OPTIONAL, singleAttemptDelivery [13] NULL OPTIONAL, correlationID [15] CorrelationID OPTIONAL, smsf-supportIndicator [16] NULL OPTIONAL } SM-DeliveryNotIntended ::= ENUMERATED { onlyIMSI-requested (0), onlyMCC-MNC-requested (1), ...} SM-RP-MTI ::= INTEGER (0..10) -- 0 SMS Deliver -- 1 SMS Status Report -- other values are reserved for future use and shall be discarded if -- received SM-RP-SMEA ::= OCTET STRING (SIZE (1..12)) -- this parameter contains an address field which is encoded -- as defined in 3GPP TS 23.040. An address field contains 3 elements : -- address-length -- type-of-address -- address-value RoutingInfoForSM-Res ::= SEQUENCE { imsi IMSI, locationInfoWithLMSI [0] LocationInfoWithLMSI, extensionContainer [4] ExtensionContainer OPTIONAL, ..., ip-sm-gwGuidance [5] IP-SM-GW-Guidance OPTIONAL } IP-SM-GW-Guidance ::= SEQUENCE { minimumDeliveryTimeValue SM-DeliveryTimerValue, recommendedDeliveryTimeValue SM-DeliveryTimerValue, extensionContainer ExtensionContainer OPTIONAL, ...} LocationInfoWithLMSI ::= SEQUENCE { networkNode-Number [1] ISDN-AddressString, lmsi LMSI OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., gprsNodeIndicator [5] NULL OPTIONAL, -- gprsNodeIndicator is set only if the SGSN number is sent as the -- Network Node Number additional-Number [6] Additional-Number OPTIONAL, networkNodeDiameterAddress [7] NetworkNodeDiameterAddress OPTIONAL, additionalNetworkNodeDiameterAddress [8] NetworkNodeDiameterAddress OPTIONAL, thirdNumber [9] Additional-Number OPTIONAL, thirdNetworkNodeDiameterAddress [10] NetworkNodeDiameterAddress OPTIONAL, imsNodeIndicator [11] NULL OPTIONAL, -- gprsNodeIndicator and imsNodeIndicator shall not both be present. -- additionalNumber and thirdNumber shall not both contain the same type of number. smsf-3gpp-Number [12] ISDN-AddressString OPTIONAL, smsf-3gpp-DiameterAddress [13] NetworkNodeDiameterAddress OPTIONAL, smsf-non-3gpp-Number [14] ISDN-AddressString OPTIONAL, smsf-non-3gpp-DiameterAddress [15] NetworkNodeDiameterAddress OPTIONAL, smsf-3gpp-address-indicator [16] NULL OPTIONAL, smsf-non-3gpp-address-indicator [17] NULL OPTIONAL -- -- If smsf-supportIndicator was not included in the request, in RoutingInfoForSM-Arg, -- then smsf-3gpp Number/DiameterAddress, smsf-non-3gpp Number/DiameterAddress and -- smsf-address-indicator and smsf-non-3gpp-address-indicator shall be absent. -- -- If smsf-3gpp-address-indicator is present, it indicates that the networkNode-Number -- (and networkNodeDiameterAddress, if present) contains the address of an SMSF for -- 3GPP access. -- -- If smsf-non-3gpp-address-indicator is present, it indicates that the -- networkNode-Number (and networkNodeDiameterAddress, if present) contains the -- address of an SMSF for non 3GPP access. -- -- At most one of gprsNodeIndicator, imsNodeIndicator, smsf-3gpp-address-indicator -- and smsf-non-3gpp-address-indicator shall be present. Absence of all these -- indicators indicate that the networkNode-Number (and networkNodeDiameterAddress, -- if present) contains the address of an MSC/MME. } Additional-Number ::= CHOICE { msc-Number [0] ISDN-AddressString, sgsn-Number [1] ISDN-AddressString} -- msc-number can be the MSC number or -- the SMS Router number or the MME number for MT SMS -- sgsn-number can be the SGSN number or the SMS Router number MO-ForwardSM-Arg ::= SEQUENCE { sm-RP-DA SM-RP-DA, sm-RP-OA SM-RP-OA, sm-RP-UI SignalInfo, extensionContainer ExtensionContainer OPTIONAL, ... , imsi IMSI OPTIONAL, correlationID [0] CorrelationID OPTIONAL, sm-DeliveryOutcome [1] SM-DeliveryOutcome OPTIONAL } MO-ForwardSM-Res ::= SEQUENCE { sm-RP-UI SignalInfo OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} MT-ForwardSM-Arg ::= SEQUENCE { sm-RP-DA SM-RP-DA, sm-RP-OA SM-RP-OA, sm-RP-UI SignalInfo, moreMessagesToSend NULL OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ..., smDeliveryTimer SM-DeliveryTimerValue OPTIONAL, smDeliveryStartTime Time OPTIONAL, smsOverIP-OnlyIndicator [0] NULL OPTIONAL, correlationID [1] CorrelationID OPTIONAL, maximumRetransmissionTime [2] Time OPTIONAL, smsGmscAddress [3] ISDN-AddressString OPTIONAL, smsGmscDiameterAddress [4] NetworkNodeDiameterAddress OPTIONAL } -- SM-DeliveryTimerValue contains the value used by the SMS-GMSC CorrelationID ::= SEQUENCE { hlr-id [0] HLR-Id OPTIONAL, sip-uri-A [1] SIP-URI OPTIONAL, sip-uri-B [2] SIP-URI} SIP-URI ::= OCTET STRING -- octets are coded as defined in IETF RFC 3261 MT-ForwardSM-Res ::= SEQUENCE { sm-RP-UI SignalInfo OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... } SM-RP-DA ::= CHOICE { imsi [0] IMSI, lmsi [1] LMSI, serviceCentreAddressDA [4] AddressString, noSM-RP-DA [5] NULL} SM-RP-OA ::= CHOICE { msisdn [2] ISDN-AddressString, serviceCentreAddressOA [4] AddressString, noSM-RP-OA [5] NULL} SM-DeliveryTimerValue ::= INTEGER (30..600) ReportSM-DeliveryStatusArg ::= SEQUENCE { msisdn ISDN-AddressString, serviceCentreAddress AddressString, sm-DeliveryOutcome SM-DeliveryOutcome, absentSubscriberDiagnosticSM [0] AbsentSubscriberDiagnosticSM OPTIONAL, extensionContainer [1] ExtensionContainer OPTIONAL, ..., gprsSupportIndicator [2] NULL OPTIONAL, -- gprsSupportIndicator is set only if the SMS-GMSC supports -- handling of two delivery outcomes deliveryOutcomeIndicator [3] NULL OPTIONAL, -- DeliveryOutcomeIndicator is set when the SM-DeliveryOutcome -- is for GPRS additionalSM-DeliveryOutcome [4] SM-DeliveryOutcome OPTIONAL, -- If received, additionalSM-DeliveryOutcome is for GPRS -- If DeliveryOutcomeIndicator is set, then AdditionalSM-DeliveryOutcome shall be absent additionalAbsentSubscriberDiagnosticSM [5] AbsentSubscriberDiagnosticSM OPTIONAL, -- If received additionalAbsentSubscriberDiagnosticSM is for GPRS -- If DeliveryOutcomeIndicator is set, then AdditionalAbsentSubscriberDiagnosticSM -- shall be absent ip-sm-gw-Indicator [6] NULL OPTIONAL, -- the ip-sm-gw indicator indicates by its presence that sm-deliveryOutcome -- is for delivery via IMS -- If present, deliveryOutcomeIndicator shall be absent. ip-sm-gw-sm-deliveryOutcome [7] SM-DeliveryOutcome OPTIONAL, -- If received ip-sm-gw-sm-deliveryOutcome is for delivery via IMS -- If ip-sm-gw-Indicator is set, then ip-sm-gw-sm-deliveryOutcome shall be absent ip-sm-gw-absentSubscriberDiagnosticSM [8] AbsentSubscriberDiagnosticSM OPTIONAL, -- If received ip-sm-gw-sm-absentSubscriberDiagnosticSM is for delivery via IMS -- If ip-sm-gw-Indicator is set, then ip-sm-gw-sm-absentSubscriberDiagnosticSM -- shall be absent imsi [9] IMSI OPTIONAL, singleAttemptDelivery [10] NULL OPTIONAL, correlationID [11] CorrelationID OPTIONAL, smsf-3gpp-deliveryOutcomeIndicator [12] NULL OPTIONAL, -- smsf-3gpp-deliveryOutcome is set when the SM-DeliveryOutcome -- is for 3GPP-SMSF smsf-3gpp-deliveryOutcome [13] SM-DeliveryOutcome OPTIONAL, -- If smsf-3gpp-deliveryOutcomeIndicator is set, then smsf-3gpp-deliveryOutcome -- shall be absent smsf-3gpp-absentSubscriberDiagSM [14] AbsentSubscriberDiagnosticSM OPTIONAL, -- If smsf-3gpp-deliveryOutcomeIndicator is set, then -- smsf-3gpp-absentSubscriberDiagSM shall be absent smsf-non-3gpp-deliveryOutcomeIndicator [15] NULL OPTIONAL, -- smsf-non-3gpp-deliveryOutcomeIndicator is set when the SM-DeliveryOutcome -- is for non-3GPP-SMSF smsf-non-3gpp-deliveryOutcome [16] SM-DeliveryOutcome OPTIONAL, -- If smsf-non-3gpp-deliveryOutcomeIndicator is set, then smsf-non-3gpp-deliveryOutcome -- shall be absent smsf-non-3gpp-absentSubscriberDiagSM [17] AbsentSubscriberDiagnosticSM OPTIONAL -- If smsf-non-3gpp-deliveryOutcomeIndicator is set, then -- smsf-non-3gpp-absentSubscriberDiagSM shall be absent } SM-DeliveryOutcome ::= ENUMERATED { memoryCapacityExceeded (0), absentSubscriber (1), successfulTransfer (2)} ReportSM-DeliveryStatusRes ::= SEQUENCE { storedMSISDN ISDN-AddressString OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ...} AlertServiceCentreArg ::= SEQUENCE { msisdn ISDN-AddressString, serviceCentreAddress AddressString, ..., imsi IMSI OPTIONAL, correlationID CorrelationID OPTIONAL, maximumUeAvailabilityTime [0] Time OPTIONAL, smsGmscAlertEvent [1] SmsGmsc-Alert-Event OPTIONAL, smsGmscDiameterAddress [2] NetworkNodeDiameterAddress OPTIONAL, newSGSNNumber [3] ISDN-AddressString OPTIONAL, newSGSNDiameterAddress [4] NetworkNodeDiameterAddress OPTIONAL, newMMENumber [5] ISDN-AddressString OPTIONAL, newMMEDiameterAddress [6] NetworkNodeDiameterAddress OPTIONAL, newMSCNumber [7] ISDN-AddressString OPTIONAL } SmsGmsc-Alert-Event ::= ENUMERATED { msAvailableForMtSms (0), msUnderNewServingNode (1) } InformServiceCentreArg ::= SEQUENCE { storedMSISDN ISDN-AddressString OPTIONAL, mw-Status MW-Status OPTIONAL, extensionContainer ExtensionContainer OPTIONAL, ... , absentSubscriberDiagnosticSM AbsentSubscriberDiagnosticSM OPTIONAL, additionalAbsentSubscriberDiagnosticSM [0] AbsentSubscriberDiagnosticSM OPTIONAL, -- additionalAbsentSubscriberDiagnosticSM may be present only if -- absentSubscriberDiagnosticSM is present. -- if included, additionalAbsentSubscriberDiagnosticSM is for GPRS and -- absentSubscriberDiagnosticSM is for non-GPRS smsf3gppAbsentSubscriberDiagnosticSM [1] AbsentSubscriberDiagnosticSM OPTIONAL, smsfNon3gppAbsentSubscriberDiagnosticSM [2] AbsentSubscriberDiagnosticSM OPTIONAL } MW-Status ::= BIT STRING { sc-AddressNotIncluded (0), mnrf-Set (1), mcef-Set (2) , mnrg-Set (3), mnr5g-Set (4), mnr5gn3g-Set (5)} (SIZE (6..16)) -- exception handling: -- bits 6 to 15 shall be ignored if received and not understood ReadyForSM-Arg ::= SEQUENCE { imsi [0] IMSI, alertReason AlertReason, alertReasonIndicator NULL OPTIONAL, -- alertReasonIndicator is set only when the alertReason -- sent to HLR is for GPRS extensionContainer ExtensionContainer OPTIONAL, ..., additionalAlertReasonIndicator [1] NULL OPTIONAL, -- additionalAlertReasonIndicator is set only when the alertReason -- sent to HLR is for IP-SM-GW maximumUeAvailabilityTime Time OPTIONAL } ReadyForSM-Res ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ...} AlertReason ::= ENUMERATED { ms-Present (0), memoryAvailable (1)} MT-ForwardSM-VGCS-Arg ::= SEQUENCE { asciCallReference ASCI-CallReference, sm-RP-OA SM-RP-OA, sm-RP-UI SignalInfo, extensionContainer ExtensionContainer OPTIONAL, ...} MT-ForwardSM-VGCS-Res ::= SEQUENCE { sm-RP-UI [0] SignalInfo OPTIONAL, dispatcherList [1] DispatcherList OPTIONAL, ongoingCall NULL OPTIONAL, extensionContainer [2] ExtensionContainer OPTIONAL, ..., additionalDispatcherList [3] AdditionalDispatcherList OPTIONAL } -- additionalDispatcherList shall be absent if dispatcherList is absent or -- contains less than 5 ISDN-AddressStrings DispatcherList ::= SEQUENCE SIZE (1..maxNumOfDispatchers) OF ISDN-AddressString maxNumOfDispatchers INTEGER ::= 5 AdditionalDispatcherList ::= SEQUENCE SIZE (1..maxNumOfAdditionalDispatchers) OF ISDN-AddressString maxNumOfAdditionalDispatchers INTEGER ::= 15 END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-SS-Code.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.5 Supplementary service codes MAP-SS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-Code (15) version20 (20)} DEFINITIONS ::= BEGIN SS-Code ::= OCTET STRING (SIZE (1)) -- This type is used to represent the code identifying a single -- supplementary service, a group of supplementary services, or -- all supplementary services. The services and abbreviations -- used are defined in TS 3GPP TS 22.004 [5]. The internal structure is -- defined as follows: -- -- bits 87654321: group (bits 8765), and specific service -- (bits 4321) allSS SS-Code ::= '00000000'B -- reserved for possible future use -- all SS allLineIdentificationSS SS-Code ::= '00010000'B -- reserved for possible future use -- all line identification SS clip SS-Code ::= '00010001'B -- calling line identification presentation clir SS-Code ::= '00010010'B -- calling line identification restriction colp SS-Code ::= '00010011'B -- connected line identification presentation colr SS-Code ::= '00010100'B -- connected line identification restriction mci SS-Code ::= '00010101'B -- reserved for possible future use -- malicious call identification allNameIdentificationSS SS-Code ::= '00011000'B -- all name identification SS cnap SS-Code ::= '00011001'B -- calling name presentation -- SS-Codes '00011010'B to '00011111'B are reserved for future -- NameIdentification Supplementary Service use. allForwardingSS SS-Code ::= '00100000'B -- all forwarding SS cfu SS-Code ::= '00100001'B -- call forwarding unconditional allCondForwardingSS SS-Code ::= '00101000'B -- all conditional forwarding SS cfb SS-Code ::= '00101001'B -- call forwarding on mobile subscriber busy cfnry SS-Code ::= '00101010'B -- call forwarding on no reply cfnrc SS-Code ::= '00101011'B -- call forwarding on mobile subscriber not reachable cd SS-Code ::= '00100100'B -- call deflection allCallOfferingSS SS-Code ::= '00110000'B -- reserved for possible future use -- all call offering SS includes also all forwarding SS ect SS-Code ::= '00110001'B -- explicit call transfer mah SS-Code ::= '00110010'B -- reserved for possible future use -- mobile access hunting allCallCompletionSS SS-Code ::= '01000000'B -- reserved for possible future use -- all Call completion SS cw SS-Code ::= '01000001'B -- call waiting hold SS-Code ::= '01000010'B -- call hold ccbs-A SS-Code ::= '01000011'B -- completion of call to busy subscribers, originating side -- this SS-Code is used only in InsertSubscriberData, DeleteSubscriberData -- and InterrogateSS ccbs-B SS-Code ::= '01000100'B -- completion of call to busy subscribers, destination side -- this SS-Code is used only in InsertSubscriberData and DeleteSubscriberData mc SS-Code ::= '01000101'B -- multicall allMultiPartySS SS-Code ::= '01010000'B -- reserved for possible future use -- all multiparty SS multiPTY SS-Code ::= '01010001'B -- multiparty allCommunityOfInterest-SS SS-Code ::= '01100000'B -- reserved for possible future use -- all community of interest SS cug SS-Code ::= '01100001'B -- closed user group allChargingSS SS-Code ::= '01110000'B -- reserved for possible future use -- all charging SS aoci SS-Code ::= '01110001'B -- advice of charge information aocc SS-Code ::= '01110010'B -- advice of charge charging allAdditionalInfoTransferSS SS-Code ::= '10000000'B -- reserved for possible future use -- all additional information transfer SS uus1 SS-Code ::= '10000001'B -- UUS1 user-to-user signalling uus2 SS-Code ::= '10000010'B -- UUS2 user-to-user signalling uus3 SS-Code ::= '10000011'B -- UUS3 user-to-user signalling allBarringSS SS-Code ::= '10010000'B -- all barring SS barringOfOutgoingCalls SS-Code ::= '10010001'B -- barring of outgoing calls baoc SS-Code ::= '10010010'B -- barring of all outgoing calls boic SS-Code ::= '10010011'B -- barring of outgoing international calls boicExHC SS-Code ::= '10010100'B -- barring of outgoing international calls except those directed -- to the home PLMN Country barringOfIncomingCalls SS-Code ::= '10011001'B -- barring of incoming calls baic SS-Code ::= '10011010'B -- barring of all incoming calls bicRoam SS-Code ::= '10011011'B -- barring of incoming calls when roaming outside home PLMN -- Country allPLMN-specificSS SS-Code ::= '11110000'B plmn-specificSS-1 SS-Code ::= '11110001'B plmn-specificSS-2 SS-Code ::= '11110010'B plmn-specificSS-3 SS-Code ::= '11110011'B plmn-specificSS-4 SS-Code ::= '11110100'B plmn-specificSS-5 SS-Code ::= '11110101'B plmn-specificSS-6 SS-Code ::= '11110110'B plmn-specificSS-7 SS-Code ::= '11110111'B plmn-specificSS-8 SS-Code ::= '11111000'B plmn-specificSS-9 SS-Code ::= '11111001'B plmn-specificSS-A SS-Code ::= '11111010'B plmn-specificSS-B SS-Code ::= '11111011'B plmn-specificSS-C SS-Code ::= '11111100'B plmn-specificSS-D SS-Code ::= '11111101'B plmn-specificSS-E SS-Code ::= '11111110'B plmn-specificSS-F SS-Code ::= '11111111'B allCallPrioritySS SS-Code ::= '10100000'B -- reserved for possible future use -- all call priority SS emlpp SS-Code ::= '10100001'B -- enhanced Multilevel Precedence Pre-emption (EMLPP) service allLCSPrivacyException SS-Code ::= '10110000'B -- all LCS Privacy Exception Classes universal SS-Code ::= '10110001'B -- allow location by any LCS client callSessionRelated SS-Code ::= '10110010'B -- allow location by any value added LCS client to which a call/session -- is established from the target MS callSessionUnrelated SS-Code ::= '10110011'B -- allow location by designated external value added LCS clients plmnoperator SS-Code ::= '10110100'B -- allow location by designated PLMN operator LCS clients serviceType SS-Code ::= '10110101'B -- allow location by LCS clients of a designated LCS service type allMOLR-SS SS-Code ::= '11000000'B -- all Mobile Originating Location Request Classes basicSelfLocation SS-Code ::= '11000001'B -- allow an MS to request its own location autonomousSelfLocation SS-Code ::= '11000010'B -- allow an MS to perform self location without interaction -- with the PLMN for a predetermined period of time transferToThirdParty SS-Code ::= '11000011'B -- allow an MS to request transfer of its location to another LCS client END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-SS-DataTypes.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.4 Supplementary service data types MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version20 (20)} DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS RegisterSS-Arg, SS-Info, SS-Status, SS-SubscriptionOption, SS-ForBS-Code, InterrogateSS-Res, USSD-Arg, USSD-Res, USSD-DataCodingScheme, USSD-String, Password, GuidanceInfo, SS-List, SS-InfoList, OverrideCategory, CliRestrictionOption, NoReplyConditionTime, ForwardingOptions, maxNumOfSS, SS-Data, SS-InvocationNotificationArg, SS-InvocationNotificationRes, CCBS-Feature, RegisterCC-EntryArg, RegisterCC-EntryRes, EraseCC-EntryArg, EraseCC-EntryRes ; IMPORTS AddressString, ISDN-AddressString, ISDN-SubaddressString, FTN-AddressString, IMSI, BasicServiceCode, AlertingPattern, EMLPP-Priority, MaxMC-Bearers, MC-Bearers, ExternalSignalInfo FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version20 (20)} ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version20 (20)} SS-Code FROM MAP-SS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-Code (15) version20 (20)} ; RegisterSS-Arg ::= SEQUENCE { ss-Code SS-Code, basicService BasicServiceCode OPTIONAL, forwardedToNumber [4] AddressString OPTIONAL, forwardedToSubaddress [6] ISDN-SubaddressString OPTIONAL, noReplyConditionTime [5] NoReplyConditionTime OPTIONAL, ..., defaultPriority [7] EMLPP-Priority OPTIONAL, nbrUser [8] MC-Bearers OPTIONAL, longFTN-Supported [9] NULL OPTIONAL } NoReplyConditionTime ::= INTEGER (5..30) SS-Info ::= CHOICE { forwardingInfo [0] ForwardingInfo, callBarringInfo [1] CallBarringInfo, ss-Data [3] SS-Data} ForwardingInfo ::= SEQUENCE { ss-Code SS-Code OPTIONAL, forwardingFeatureList ForwardingFeatureList, ...} ForwardingFeatureList ::= SEQUENCE SIZE (1..maxNumOfBasicServiceGroups) OF ForwardingFeature ForwardingFeature ::= SEQUENCE { basicService BasicServiceCode OPTIONAL, ss-Status [4] SS-Status OPTIONAL, forwardedToNumber [5] ISDN-AddressString OPTIONAL, forwardedToSubaddress [8] ISDN-SubaddressString OPTIONAL, forwardingOptions [6] ForwardingOptions OPTIONAL, noReplyConditionTime [7] NoReplyConditionTime OPTIONAL, ..., longForwardedToNumber [9] FTN-AddressString OPTIONAL } SS-Status ::= OCTET STRING (SIZE (1)) -- bits 8765: 0000 (unused) -- bits 4321: Used to convey the "P bit","R bit","A bit" and "Q bit", -- representing supplementary service state information -- as defined in TS 3GPP TS 23.011 [22] -- bit 4: "Q bit" -- bit 3: "P bit" -- bit 2: "R bit" -- bit 1: "A bit" ForwardingOptions ::= OCTET STRING (SIZE (1)) -- bit 8: notification to forwarding party -- 0 no notification -- 1 notification -- bit 7: redirecting presentation -- 0 no presentation -- 1 presentation -- bit 6: notification to calling party -- 0 no notification -- 1 notification -- bit 5: 0 (unused) -- bits 43: forwarding reason -- 00 ms not reachable -- 01 ms busy -- 10 no reply -- 11 unconditional when used in a SRI Result, -- or call deflection when used in a RCH Argument -- bits 21: 00 (unused) CallBarringInfo ::= SEQUENCE { ss-Code SS-Code OPTIONAL, callBarringFeatureList CallBarringFeatureList, ...} CallBarringFeatureList ::= SEQUENCE SIZE (1..maxNumOfBasicServiceGroups) OF CallBarringFeature CallBarringFeature ::= SEQUENCE { basicService BasicServiceCode OPTIONAL, ss-Status [4] SS-Status OPTIONAL, ...} SS-Data ::= SEQUENCE { ss-Code SS-Code OPTIONAL, ss-Status [4] SS-Status OPTIONAL, ss-SubscriptionOption SS-SubscriptionOption OPTIONAL, basicServiceGroupList BasicServiceGroupList OPTIONAL, ..., defaultPriority EMLPP-Priority OPTIONAL, nbrUser [5] MC-Bearers OPTIONAL } SS-SubscriptionOption ::= CHOICE { cliRestrictionOption [2] CliRestrictionOption, overrideCategory [1] OverrideCategory} CliRestrictionOption ::= ENUMERATED { permanent (0), temporaryDefaultRestricted (1), temporaryDefaultAllowed (2)} OverrideCategory ::= ENUMERATED { overrideEnabled (0), overrideDisabled (1)} SS-ForBS-Code ::= SEQUENCE { ss-Code SS-Code, basicService BasicServiceCode OPTIONAL, ..., longFTN-Supported [4] NULL OPTIONAL } GenericServiceInfo ::= SEQUENCE { ss-Status SS-Status, cliRestrictionOption CliRestrictionOption OPTIONAL, ..., maximumEntitledPriority [0] EMLPP-Priority OPTIONAL, defaultPriority [1] EMLPP-Priority OPTIONAL, ccbs-FeatureList [2] CCBS-FeatureList OPTIONAL, nbrSB [3] MaxMC-Bearers OPTIONAL, nbrUser [4] MC-Bearers OPTIONAL, nbrSN [5] MC-Bearers OPTIONAL } CCBS-FeatureList ::= SEQUENCE SIZE (1..maxNumOfCCBS-Requests) OF CCBS-Feature maxNumOfCCBS-Requests INTEGER ::= 5 CCBS-Feature ::= SEQUENCE { ccbs-Index [0] CCBS-Index OPTIONAL, b-subscriberNumber [1] ISDN-AddressString OPTIONAL, b-subscriberSubaddress [2] ISDN-SubaddressString OPTIONAL, basicServiceGroup [3] BasicServiceCode OPTIONAL, ...} CCBS-Index ::= INTEGER (1..maxNumOfCCBS-Requests) InterrogateSS-Res ::= CHOICE { ss-Status [0] SS-Status, basicServiceGroupList [2] BasicServiceGroupList, forwardingFeatureList [3] ForwardingFeatureList, genericServiceInfo [4] GenericServiceInfo } USSD-Arg ::= SEQUENCE { ussd-DataCodingScheme USSD-DataCodingScheme, ussd-String USSD-String, ... , alertingPattern AlertingPattern OPTIONAL, msisdn [0] ISDN-AddressString OPTIONAL } USSD-Res ::= SEQUENCE { ussd-DataCodingScheme USSD-DataCodingScheme, ussd-String USSD-String, ...} USSD-DataCodingScheme ::= OCTET STRING (SIZE (1)) -- The structure of the USSD-DataCodingScheme is defined by -- the Cell Broadcast Data Coding Scheme as described in -- TS 3GPP TS 23.038 [25] USSD-String ::= OCTET STRING (SIZE (1..maxUSSD-StringLength)) -- The structure of the contents of the USSD-String is dependent -- on the USSD-DataCodingScheme as described in TS 3GPP TS 23.038 [25]. maxUSSD-StringLength INTEGER ::= 160 Password ::= NumericString (FROM ("0"|"1"|"2"|"3"|"4"|"5"|"6"|"7"|"8"|"9")) (SIZE (4)) GuidanceInfo ::= ENUMERATED { enterPW (0), enterNewPW (1), enterNewPW-Again (2)} -- How this information is really delivered to the subscriber -- (display, announcement, ...) is not part of this -- specification. SS-List ::= SEQUENCE SIZE (1..maxNumOfSS) OF SS-Code maxNumOfSS INTEGER ::= 30 SS-InfoList ::= SEQUENCE SIZE (1..maxNumOfSS) OF SS-Info BasicServiceGroupList ::= SEQUENCE SIZE (1..maxNumOfBasicServiceGroups) OF BasicServiceCode maxNumOfBasicServiceGroups INTEGER ::= 13 SS-InvocationNotificationArg ::= SEQUENCE { imsi [0] IMSI, msisdn [1] ISDN-AddressString, ss-Event [2] SS-Code, -- The following SS-Code values are allowed : -- ect SS-Code ::= '00110001'B -- multiPTY SS-Code ::= '01010001'B -- cd SS-Code ::= '00100100'B -- ccbs SS-Code ::= '01000100'B ss-EventSpecification [3] SS-EventSpecification OPTIONAL, extensionContainer [4] ExtensionContainer OPTIONAL, ..., b-subscriberNumber [5] ISDN-AddressString OPTIONAL, ccbs-RequestState [6] CCBS-RequestState OPTIONAL } CCBS-RequestState ::= ENUMERATED { request (0), recall (1), active (2), completed (3), suspended (4), frozen (5), deleted (6) } SS-InvocationNotificationRes ::= SEQUENCE { extensionContainer ExtensionContainer OPTIONAL, ... } SS-EventSpecification ::= SEQUENCE SIZE (1..maxEventSpecification) OF AddressString maxEventSpecification INTEGER ::= 2 RegisterCC-EntryArg ::= SEQUENCE { ss-Code [0] SS-Code, ccbs-Data [1] CCBS-Data OPTIONAL, ...} CCBS-Data ::= SEQUENCE { ccbs-Feature [0] CCBS-Feature, translatedB-Number [1] ISDN-AddressString, serviceIndicator [2] ServiceIndicator OPTIONAL, callInfo [3] ExternalSignalInfo, networkSignalInfo [4] ExternalSignalInfo, ...} ServiceIndicator ::= BIT STRING { clir-invoked (0), camel-invoked (1)} (SIZE(2..32)) -- exception handling: -- bits 2 to 31 shall be ignored if received and not understood RegisterCC-EntryRes ::= SEQUENCE { ccbs-Feature [0] CCBS-Feature OPTIONAL, ...} EraseCC-EntryArg ::= SEQUENCE { ss-Code [0] SS-Code, ccbs-Index [1] CCBS-Index OPTIONAL, ...} EraseCC-EntryRes ::= SEQUENCE { ss-Code [0] SS-Code, ss-Status [1] SS-Status OPTIONAL, ...} END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-SupplementaryServiceOperations.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) --17.6.4 Supplementary service operations MAP-SupplementaryServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SupplementaryServiceOperations (8) version20 (20)} DEFINITIONS ::= BEGIN EXPORTS registerSS, eraseSS, activateSS, deactivateSS, interrogateSS, processUnstructuredSS-Request, unstructuredSS-Request, unstructuredSS-Notify, registerPassword, getPassword, ss-InvocationNotification, registerCC-Entry, eraseCC-Entry ; IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} systemFailure, dataMissing, unexpectedDataValue, unknownSubscriber, bearerServiceNotProvisioned, teleserviceNotProvisioned, callBarred, illegalSS-Operation, ss-ErrorStatus, ss-NotAvailable, ss-SubscriptionViolation, ss-Incompatibility, pw-RegistrationFailure, negativePW-Check, numberOfPW-AttemptsViolation, unknownAlphabet, ussd-Busy, absentSubscriber, illegalSubscriber, illegalEquipment, shortTermDenial, longTermDenial, facilityNotSupported FROM MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version20 (20)} RegisterSS-Arg, SS-Info, SS-ForBS-Code, InterrogateSS-Res, USSD-Arg, USSD-Res, Password, GuidanceInfo, SS-InvocationNotificationArg, SS-InvocationNotificationRes, RegisterCC-EntryArg, RegisterCC-EntryRes, EraseCC-EntryArg, EraseCC-EntryRes FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version20 (20)} SS-Code FROM MAP-SS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-Code (15) version20 (20)} ; -- supplementary service handling operations registerSS OPERATION ::= { --Timer m ARGUMENT RegisterSS-Arg RESULT SS-Info -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | bearerServiceNotProvisioned | teleserviceNotProvisioned | callBarred | illegalSS-Operation | ss-ErrorStatus | ss-Incompatibility} CODE local:10 } eraseSS OPERATION ::= { --Timer m ARGUMENT SS-ForBS-Code RESULT SS-Info -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | bearerServiceNotProvisioned | teleserviceNotProvisioned | callBarred | illegalSS-Operation | ss-ErrorStatus } CODE local:11 } activateSS OPERATION ::= { --Timer m ARGUMENT SS-ForBS-Code RESULT SS-Info -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | bearerServiceNotProvisioned | teleserviceNotProvisioned | callBarred | illegalSS-Operation | ss-ErrorStatus | ss-SubscriptionViolation | ss-Incompatibility | negativePW-Check | numberOfPW-AttemptsViolation} CODE local:12 } deactivateSS OPERATION ::= { --Timer m ARGUMENT SS-ForBS-Code RESULT SS-Info -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | bearerServiceNotProvisioned | teleserviceNotProvisioned | callBarred | illegalSS-Operation | ss-ErrorStatus | ss-SubscriptionViolation | negativePW-Check | numberOfPW-AttemptsViolation} CODE local:13 } interrogateSS OPERATION ::= { --Timer m ARGUMENT SS-ForBS-Code RESULT InterrogateSS-Res ERRORS { systemFailure | dataMissing | unexpectedDataValue | bearerServiceNotProvisioned | teleserviceNotProvisioned | callBarred | illegalSS-Operation | ss-NotAvailable} CODE local:14 } processUnstructuredSS-Request OPERATION ::= { --Timer 10 minutes ARGUMENT USSD-Arg RESULT USSD-Res ERRORS { systemFailure | dataMissing | unexpectedDataValue | unknownAlphabet | callBarred} CODE local:59 } unstructuredSS-Request OPERATION ::= { --Timer ml ARGUMENT USSD-Arg RESULT USSD-Res -- optional ERRORS { systemFailure | dataMissing | unexpectedDataValue | absentSubscriber | illegalSubscriber | illegalEquipment | unknownAlphabet | ussd-Busy} CODE local:60 } unstructuredSS-Notify OPERATION ::= { --Timer ml ARGUMENT USSD-Arg RETURN RESULT TRUE ERRORS { systemFailure | dataMissing | unexpectedDataValue | absentSubscriber | illegalSubscriber | illegalEquipment | unknownAlphabet | ussd-Busy} CODE local:61 } registerPassword OPERATION ::= { --Timer ml ARGUMENT SS-Code RESULT Password ERRORS { systemFailure | dataMissing | unexpectedDataValue | callBarred | ss-SubscriptionViolation | pw-RegistrationFailure | negativePW-Check | numberOfPW-AttemptsViolation} LINKED { getPassword} CODE local:17 } getPassword OPERATION ::= { --Timer m ARGUMENT GuidanceInfo RESULT Password CODE local:18 } ss-InvocationNotification OPERATION ::= { --Timer m ARGUMENT SS-InvocationNotificationArg RESULT SS-InvocationNotificationRes -- optional ERRORS { dataMissing | unexpectedDataValue | unknownSubscriber} CODE local:72 } registerCC-Entry OPERATION ::= { --Timer m ARGUMENT RegisterCC-EntryArg RESULT RegisterCC-EntryRes ERRORS { systemFailure | dataMissing | unexpectedDataValue | callBarred | illegalSS-Operation | ss-ErrorStatus | ss-Incompatibility | shortTermDenial | longTermDenial | facilityNotSupported} CODE local:76 } eraseCC-Entry OPERATION ::= { --Timer m ARGUMENT EraseCC-EntryArg RESULT EraseCC-EntryRes ERRORS { systemFailure | dataMissing | unexpectedDataValue | callBarred | illegalSS-Operation | ss-ErrorStatus} CODE local:77 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MAP-TS-Code.asn
-- 3GPP TS 29.002 V17.1.0 (2021-06) -- 17.7.9 Teleservice Codes MAP-TS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-TS-Code (19) version20 (20)} DEFINITIONS ::= BEGIN TeleserviceCode ::= OCTET STRING (SIZE (1)) -- This type is used to represent the code identifying a single -- teleservice, a group of teleservices, or all teleservices. The -- services are defined in TS GSM 22.003 [4]. -- The internal structure is defined as follows: -- bits 87654321: group (bits 8765) and specific service -- (bits 4321) Ext-TeleserviceCode ::= OCTET STRING (SIZE (1..5)) -- This type is used to represent the code identifying a single -- teleservice, a group of teleservices, or all teleservices. The -- services are defined in TS GSM 22.003 [4]. -- The internal structure is defined as follows: -- OCTET 1: -- bits 87654321: group (bits 8765) and specific service -- (bits 4321) -- OCTETS 2-5: reserved for future use. If received the -- Ext-TeleserviceCode shall be -- treated according to the exception handling defined for the -- operation that uses this type. -- Ext-TeleserviceCode includes all values defined for TeleserviceCode. allTeleservices TeleserviceCode ::= '00000000'B allSpeechTransmissionServices TeleserviceCode ::= '00010000'B telephony TeleserviceCode ::= '00010001'B emergencyCalls TeleserviceCode ::= '00010010'B allShortMessageServices TeleserviceCode ::= '00100000'B shortMessageMT-PP TeleserviceCode ::= '00100001'B shortMessageMO-PP TeleserviceCode ::= '00100010'B allFacsimileTransmissionServices TeleserviceCode ::= '01100000'B facsimileGroup3AndAlterSpeech TeleserviceCode ::= '01100001'B automaticFacsimileGroup3 TeleserviceCode ::= '01100010'B facsimileGroup4 TeleserviceCode ::= '01100011'B -- The following non-hierarchical Compound Teleservice Groups -- are defined in TS 3GPP TS 22.030: allDataTeleservices TeleserviceCode ::= '01110000'B -- covers Teleservice Groups 'allFacsimileTransmissionServices' -- and 'allShortMessageServices' allTeleservices-ExeptSMS TeleserviceCode ::= '10000000'B -- covers Teleservice Groups 'allSpeechTransmissionServices' and -- 'allFacsimileTransmissionServices' -- -- Compound Teleservice Group Codes are only used in call -- independent supplementary service operations, i.e. they -- are not used in InsertSubscriberData or in -- DeleteSubscriberData messages. allVoiceGroupCallServices TeleserviceCode ::= '10010000'B voiceGroupCall TeleserviceCode ::= '10010001'B voiceBroadcastCall TeleserviceCode ::= '10010010'B allPLMN-specificTS TeleserviceCode ::= '11010000'B plmn-specificTS-1 TeleserviceCode ::= '11010001'B plmn-specificTS-2 TeleserviceCode ::= '11010010'B plmn-specificTS-3 TeleserviceCode ::= '11010011'B plmn-specificTS-4 TeleserviceCode ::= '11010100'B plmn-specificTS-5 TeleserviceCode ::= '11010101'B plmn-specificTS-6 TeleserviceCode ::= '11010110'B plmn-specificTS-7 TeleserviceCode ::= '11010111'B plmn-specificTS-8 TeleserviceCode ::= '11011000'B plmn-specificTS-9 TeleserviceCode ::= '11011001'B plmn-specificTS-A TeleserviceCode ::= '11011010'B plmn-specificTS-B TeleserviceCode ::= '11011011'B plmn-specificTS-C TeleserviceCode ::= '11011100'B plmn-specificTS-D TeleserviceCode ::= '11011101'B plmn-specificTS-E TeleserviceCode ::= '11011110'B plmn-specificTS-F TeleserviceCode ::= '11011111'B END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/MobileDomainDefinitions.asn
-- ETSI ETR 091 ed.1 http://www.etsi.org MobileDomainDefinitions {ccitt (0) identified-organization (4) etsi (0) mobileDomain (0) mobileDomainDefinitions (0) version1 (1)} DEFINITIONS ::= BEGIN -- Mobile DomainId mobileDomainId OBJECT IDENTIFIER ::= {ccitt (0) identified-organization (4) etsi (0) mobileDomain (0)} -- Mobile Subdomains gsm-NetworkId OBJECT IDENTIFIER ::= {mobileDomainId gsm-Network (1)} gsm-AccessId OBJECT IDENTIFIER ::= {mobileDomainId gsm-Access (2)} gsm-OperationAndMaintenanceId OBJECT IDENTIFIER ::= {mobileDomainId gsm-Operation-Maintenance (3)} gsm-MessagingId OBJECT IDENTIFIER ::= {mobileDomainId gsm-Messaging (4)} -- Common Component Ids for structuring Mobile Subdomains CommonComponentId ::= INTEGER (0..9) ac-Id CommonComponentId ::= 0 as-Id CommonComponentId ::= 1 ase-Id CommonComponentId ::= 2 moduleId CommonComponentId ::= 3 er-Id CommonComponentId ::= 4 END -- MobileDomainDefinitions
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/Nokia.asn
-- Nokia proprietary extensions -- NokiaMAP-Extensions DEFINITIONS IMPLICIT TAGS ::= BEGIN IMPORTS Category, ODB-Data, CUG-Interlock FROM MAP-MS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MS-DataTypes (11) version13 (13)} ISDN-AddressString, AddressString, TBCD-STRING, SignalInfo, BasicServiceCode, IMSI, IMEI, SubscriberIdentity, CellGlobalIdOrServiceAreaIdFixedLength, LAIFixedLength, Ext-SS-Status FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version13 (13)} PrivateExtension, ExtensionContainer FROM MAP-ExtensionDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ExtensionDataTypes (21) version13 (13)} TraceReference, TraceType FROM MAP-OM-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-OM-DataTypes (12) version13 (13)} SS-Code FROM MAP-SS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-Code (15) version10 (10)} SS-Status, USSD-DataCodingScheme, USSD-String, CCBS-Feature -- USSD-DataCodingScheme, USSD-String were introduced because of CNAP. FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version10 (10)} ; ExtensionSet MAP-EXTENSION ::= { { &ExtensionType; IsdArgExt, &extensionId; {0 34 0} } | { &ExtensionType; DsdArgExt, &extensionId; {0 34 1} } | { &ExtensionType; UlResExt, &extensionId; {0 34 2} } | { &ExtensionType; SS-DataExtension, &extensionId; {0 34 4} } | { &ExtensionType; SriExtension, &extensionId; {0 34 5} } | { &ExtensionType; ExtraSignalInfo, &extensionId; {0 34 6} } | { &ExtensionType; SriResExtension, &extensionId; {0 34 7} } | { &ExtensionType; CanLocArgExt, &extensionId; {0 34 10} } | { &ExtensionType; ATMargExt, &extensionId; {0 34 11} } | { &ExtensionType; DTMargExt, &extensionId; {0 34 12} } | { &ExtensionType; NumberPorted, &extensionId; {0 34 13} } | { &ExtensionType; HO-Ext, &extensionId; {0 34 15} } | { &ExtensionType; ATMresExt, &extensionId; {0 34 16} } | { &ExtensionType; AbsentSubscriberExt, &extensionId; {0 34 17} } | { &ExtensionType; SriForSMArgExt, &extensionId; {0 34 18} } | { &ExtensionType; ReportSMDelStatArgExt, &extensionId; {0 34 19} } | { &ExtensionType; UdlArgExt, &extensionId; {0 34 20} } | { &ExtensionType; RoamNotAllowedExt, &extensionId; {0 34 21} } | { &ExtensionType; MO-ForwardSM-ArgExt, &extensionId; {0 34 22} } | { &ExtensionType; ErrOlcmInfoTableExt, &extensionId; {0 34 23} } | { &ExtensionType; RoutingCategoryExt, &extensionId; {0 34 25} } | { &ExtensionType; AnyTimeModArgExt, &extensionId; {0 34 26} } | { &ExtensionType; ExtensionType, &extensionId; {1 2 826 0 1249 58 1 0} } | { &ExtensionType; AccessTypeExt, &extensionId; {1 3 12 2 1107 3 66 1 1} } | { &ExtensionType; AccessSubscriptionListExt, &extensionId; {1 3 12 2 1107 3 66 1 3} } | { &ExtensionType; AllowedServiceData, &extensionId; {1 3 12 2 1107 3 66 1 6} }, ...} -- ExtensionSet is the set of all defined private extensions -- Unsupported private extensions shall be discarded if received. RoutingCategory ::= OCTET STRING (SIZE (1)) -- value 0 means that RoutingCategory is released maxNumOfActiveSS INTEGER ::= 30 ActiveSS-List ::= OCTET STRING (SIZE (1..maxNumOfActiveSS)) ExtRoutingCategory ::= INTEGER (0..2147483647) IsdArgExt ::= [PRIVATE 0] SEQUENCE { alsLineIndicator [0] NULL OPTIONAL, routingCategory [1] RoutingCategory OPTIONAL, serviceList [2] MAPserviceList OPTIONAL, serv-info-list [3] ServiceListWithInfo OPTIONAL, extRoutingCategory [5] ExtRoutingCategory OPTIONAL, ownMSISDN [6] ISDN-AddressString OPTIONAL, ...} -- Note : additional routing category is removed from VLR by -- sending ISD with add-RC value zero (0). DsdArgExt ::= [PRIVATE 0] SEQUENCE { alsLineIndicator [0] NULL OPTIONAL, serviceList [1] MAPserviceList OPTIONAL, ...} UlResExt ::= [PRIVATE 0] SEQUENCE { mwd-Set [0] NULL OPTIONAL, ...} EmoInCategoryKey ::= TBCD-STRING (SIZE (1..3)) SS-DataEmoInExt ::= [PRIVATE 1] SEQUENCE { emoInCategoryKey [PRIVATE 2] EmoInCategoryKey OPTIONAL, ...} InTriggerKey ::= INTEGER (1..65535) PnpIndex ::= OCTET STRING (SIZE (3)) -- digits 0 through 9, two digits per octet, -- each digit encoded 0000 to 0001, -- 5 digits, 1111 used as filler for last digit. CallRedirectionIndex ::= INTEGER (0..255) ChargingArea ::= INTEGER (1..9999) maxNumOfCA INTEGER ::= 3 ChargingAreaList ::= SEQUENCE SIZE (1..maxNumOfCA) OF ChargingArea RegionalChargingData ::= SEQUENCE { chargingAreaList [0] ChargingAreaList OPTIONAL, ...} SS-DataExtension ::= [PRIVATE 0] SEQUENCE { inTriggerKey [0] InTriggerKey OPTIONAL, pnpIndex [1] PnpIndex OPTIONAL, callRedirectionIndex [2] CallRedirectionIndex OPTIONAL, regionalChargingData [3] RegionalChargingData OPTIONAL, ...} SriExtension ::= [PRIVATE 0] SEQUENCE { callForwardingOverride [0] NULL OPTIONAL, in-Capability [1] NULL OPTIONAL, callingCategory [2] CallingCategory OPTIONAL, internalServiceIndicator [3] InternalServiceIndicator OPTIONAL, srbtSupportIndicator [4] NULL OPTIONAL, gmscSupportIndicator [5] NULL OPTIONAL, ...} CallingCategory ::= OCTET STRING (SIZE (1)) -- 'E9'hex used in SRI-arg -- 'E8'hex used in SRI-res InternalServiceIndicator ::= OCTET STRING (SIZE (1)) -- bits 8765: 0000 (unused) -- bit 4: intelligent alerting -- bit 3: parallel alerting -- bit 2: member interrogation -- bit 1: sequential alerting -- 1 set -- 0 not set ExtraProtocolId ::= INTEGER { q763 (1)} (1..20) ExtraSignalInfo ::= [PRIVATE 1] SEQUENCE { protocolId ExtraProtocolId, signalInfo SignalInfo } CUG-CallInfo ::= OCTET STRING (SIZE (1..4)) -- xxxx xx00 - not used -- xxxx xx01 - CUG call -- xxxx xx10 - non CUG call -- xxxx xx11 - maybe a CUG call Nokia-CUG-Data ::= SEQUENCE { cug-Interlock [0] CUG-Interlock OPTIONAL, cug-OutgoingAccess [1] BOOLEAN OPTIONAL, cug-CallInfo [2] CUG-CallInfo OPTIONAL, ...} -- cug-OutgoingAccess must be BOOLEAN (not NULL), because -- it must be possible to transfer cug-CallInfo without -- the other parameters SriResExtension ::= [PRIVATE 0] SEQUENCE { inTriggerKey [0] InTriggerKey OPTIONAL, vlrNumber [1] ISDN-AddressString OPTIONAL, activeSs [2] ActiveSS-List OPTIONAL, traceReference [3] TraceReference OPTIONAL, traceType [4] TraceType OPTIONAL, omc-Id [5] AddressString OPTIONAL, hotBilling [6] BOOLEAN OPTIONAL, cfoIsDone [7] BOOLEAN OPTIONAL, cfInCug [8] BOOLEAN OPTIONAL, basicService [9] BasicServiceCode OPTIONAL, category [10] Category OPTIONAL, routingCategory [11] RoutingCategory OPTIONAL, pnpIndex [12] PnpIndex OPTIONAL, nokia-CUG [13] Nokia-CUG-Data OPTIONAL, noBarrings [14] NULL OPTIONAL, odb-Data [15] ODB-Data OPTIONAL, fraudData [16] FraudData OPTIONAL, extRoutingCategory [17] ExtRoutingCategory OPTIONAL, leaId [18] LeaId OPTIONAL, olcmInfoTable [19] OlcmInfoTable OPTIONAL, callingCategory [20] CallingCategory OPTIONAL, commonMSISDN [21] ISDN-AddressString OPTIONAL, rgData [22] RgData OPTIONAL, olcmTraceReference [23] OlcmTraceReference OPTIONAL, ...} RgData ::= SEQUENCE { noAnswerTimer [0] NoAnswerTimer OPTIONAL, memberList [1] MemberList OPTIONAL, alertingMethod [2] AlertingMethod OPTIONAL, userType [3] UserType OPTIONAL, divertedToNbr [4] ISDN-AddressString OPTIONAL, memberOfSuppression [5] NULL OPTIONAL, ringbacktone [6] NULL OPTIONAL, ...} NoAnswerTimer ::= OCTET STRING (SIZE (1)) MemberList ::= SEQUENCE SIZE (1..5) OF ISDN-AddressString AlertingMethod ::= OCTET STRING (SIZE (1)) -- '00' = sequential -- '01' = parallel -- '02' = sequential / parallel -- '03' = intelligent UserType ::= OCTET STRING (SIZE (1)) -- '00' = single -- '01' = multiple MAPserviceCode ::= OCTET STRING (SIZE (1)) picLock MAPserviceCode ::= '00000001'B prefCarrierId MAPserviceCode ::= '00000010'B mKey MAPserviceCode ::= '00000011'B smsKey MAPserviceCode ::= '00000100'B fraud-Data MAPserviceCode ::= '00000101'B cell-update MAPserviceCode ::= '00000110'B maxnumOfMAPservices INTEGER ::= 256 MAPserviceList ::= OCTET STRING (SIZE (0..maxnumOfMAPservices)) CarrierIdCode ::= OCTET STRING (SIZE (3)) -- the internal structure is defined in T1.113 PrefCarrierIdList ::= SEQUENCE { prefCarrierIdCode1 [0] CarrierIdCode, ...} ANSIIsdArgExt ::= [PRIVATE 30] SEQUENCE { prefCarrierIdList [0] PrefCarrierIdList OPTIONAL, ...} ANSISriResExt ::= [PRIVATE 30] SEQUENCE { prefCarrierIdList [0] PrefCarrierIdList OPTIONAL, ...} CanLocArgExt ::= [PRIVATE 0] SEQUENCE { termination [0] OCTET STRING (SIZE (1)) OPTIONAL, ...} ATMargExt ::= [PRIVATE 0] SEQUENCE { traceReference [0] TraceReference OPTIONAL, traceType [1] TraceType OPTIONAL, leaId [2] LeaId OPTIONAL, olcmInfoTable [3] OlcmInfoTable OPTIONAL, olcmTraceReference [4] OlcmTraceReference OPTIONAL, ... } LeaId ::= INTEGER (0..65535) OlcmInfoTable ::= SEQUENCE SIZE (1..maxNumOfLEAs) OF OlcmInfo maxNumOfLEAs INTEGER ::= 7 OlcmInfo ::= SEQUENCE { traceReference [0] TraceReference, traceType [1] TraceType, leaId [2] LeaId OPTIONAL, olcmTraceReference [3] OlcmTraceReference OPTIONAL, ... } OlcmTraceReference ::= OCTET STRING (SIZE (1..4)) ATMresExt ::= [PRIVATE 0] SEQUENCE { olcmActive [0] NULL OPTIONAL, ... } DTMargExt ::= [PRIVATE 0] SEQUENCE { traceType [0] TraceType OPTIONAL, leaId [1] LeaId OPTIONAL, olcmTraceReference [2] OlcmTraceReference OPTIONAL, ... } VersionInfo ::= OCTET STRING (SIZE (1)) -- 0000 0001 : version 1 maxNumOfServicesWithInfo INTEGER ::= 20 FraudInfo ::= SEQUENCE { moc [0] FraudData OPTIONAL, cf [1] FraudData OPTIONAL, ct [2] FraudData OPTIONAL, ...} FraudData ::= SEQUENCE { time [0] TimeLimit OPTIONAL, timeAction [1] ActionType OPTIONAL, maxCount [2] FraudMaxCount OPTIONAL, maxCountAction [3] ActionType OPTIONAL, ...} TimeLimit ::= INTEGER (0..64800) ActionType ::= OCTET STRING (SIZE (1..10)) -- only 1st octet is used to transfer action type in M10 -- other octets are reserved for future use FraudMaxCount ::= INTEGER (0..255) ServiceWithInfo ::= SEQUENCE { serviceCode [0] MAPserviceCode OPTIONAL, versionInfo [1] VersionInfo DEFAULT '1'B, in-key INKey OPTIONAL, fraudInfo FraudInfo OPTIONAL, ...} ServiceListWithInfo ::= SEQUENCE SIZE (1..maxNumOfServicesWithInfo) OF ServiceWithInfo INKey ::= CHOICE { mobile-IN-key [2] MKey, sms-IN-key [3] SMSKey } MmTdpName ::= OCTET STRING (SIZE (1..8)) -- bits 876543: 000000 (unused) -- -- bit 2: Intra-VLR-Locup-DP -- 1 DP is set -- 0 DP is not set -- -- bit 1: Inter-VLR-Locup-DP -- 1 DP is set -- 0 DP is not set ServiceKey ::= INTEGER (0..2147483647) -- 4 bytes MKeyVer ::= OCTET STRING (SIZE (1)) -- 0000 0001 : version 1 LocupType ::= OCTET STRING (SIZE (1..8)) -- bits 87654: 00000 (unused) -- -- bit 3: Normal-Locup -- 1 LocupType is set (default) -- 0 LocupType is not set -- -- bit 2: Periodic-Locup -- 1 LocupType is set -- 0 LocupType is not set (default) -- -- bit 1: IMSI-attach-Locup -- 1 LocupType is set -- 0 LocupType is not set (default) MKey::= SEQUENCE{ mKeyVer [0] MKeyVer DEFAULT '1'B, mmScfAddress [1] ISDN-AddressString OPTIONAL, mmTdpName [2] MmTdpName OPTIONAL, serviceKey [3] ServiceKey OPTIONAL, locupType [4] LocupType OPTIONAL, ...} -- if mKeyVer parameter is missing, it is interpreted as -- "version 1". -- mmScfAddress, mmTtdpId and serviceKey parameters must be -- present on version 1. -- -- Feature 742 : "IN Mobility Management" SmsTdpName ::= OCTET STRING (SIZE (1..8)) -- bits 87654: 00000 (unused) -- -- bit 3: SR-SMS-DP -- 1 DP is set -- 0 DP is not set -- -- bit 2: MO-SMS-DP -- 1 DP is set -- 0 DP is not set -- -- bit 1: MT-SMS-DP -- 1 DP is set -- 0 DP is not set SMSKey ::= SEQUENCE{ mmSCPAddress [0] ISDN-AddressString OPTIONAL, smsTdpName [1] SmsTdpName OPTIONAL, serviceKey [2] ServiceKey OPTIONAL, mmsFlag [3] NULL OPTIONAL, ...} NumberPorted ::= [PRIVATE 20] ENUMERATED { notPorted (0), ported (1), ...} USSD-Extension ::= [PRIVATE 10] SEQUENCE { routingCategory [0] RoutingCategory OPTIONAL, cellId [1] CellGlobalIdOrServiceAreaIdFixedLength OPTIONAL, sai-Present [2] NULL OPTIONAL, ...} HO-Ext ::= [PRIVATE 0] SEQUENCE { map-Opt [0] MapOptFields OPTIONAL, codec-List [1] CodecListExt OPTIONAL, selected-Codec [2] SelectedCodec OPTIONAL, uma-access [3] NULL OPTIONAL, uma-ip-address [4] OCTET STRING (SIZE (5..17)) OPTIONAL, uma-ip-port-nb [5] IPPortNb OPTIONAL, ... } MapOptFields ::= OCTET STRING (SIZE (1)) -- bits 87: 00 (unused) -- bit 6: codec -- 1 set -- 0 not set -- bit 5: tfo_set -- 1 set -- 0 not set -- bit 4: tfo_not_set -- 1 set -- 0 not set -- bit 3: emerg -- 1 set -- 0 not set -- bit 2: usim -- 1 set -- 0 not set -- bit 1: sim -- 1 set -- 0 not set CodecListExt ::= SEQUENCE (SIZE(0..maxNumOfCodec)) OF CodecExt maxNumOfCodec INTEGER ::= 8 CodecExt ::= OCTET STRING (SIZE(1)) SelectedCodec ::= SEQUENCE { codec [0] CodecExt, modes [1] Modes, ...} Modes ::= OCTET STRING (SIZE(9)) IPPortNb ::= INTEGER (0..65535) AbsentSubscriberExt ::= [PRIVATE 0] SEQUENCE { olcmInfoTable [0] OlcmInfoTable OPTIONAL, imsi [1] IMSI OPTIONAL, ...} ErrOlcmInfoTableExt ::= [PRIVATE 0] SEQUENCE { olcmInfoTable [0] OlcmInfoTable OPTIONAL, imsi [1] IMSI OPTIONAL, ...} RoutingCategoryExt ::= [PRIVATE 0] SEQUENCE { routingCategory [0] RoutingCategory OPTIONAL, extRoutingCategory [1] ExtRoutingCategory OPTIONAL, ... } SriForSMArgExt ::= [PRIVATE 0] SEQUENCE { cfuSMSCounter [0] CfuSMSCounter OPTIONAL, cfusmcfo [2] NULL OPTIONAL, memberInterrogate [3] NULL OPTIONAL, ... } ReportSMDelStatArgExt ::= [PRIVATE 0] SEQUENCE { cfuSMSCounter [0] CfuSMSCounter OPTIONAL, cfusmcfo [2] NULL OPTIONAL, ... } CfuSMSCounter ::= OCTET STRING (SIZE (1)) MO-ForwardSM-ArgExt ::= [PRIVATE 0] SEQUENCE { locationAreaCode [0] LocationAreaCode OPTIONAL, cellId [1] CellGlobalIdOrServiceAreaIdFixedLength OPTIONAL, ... } LocationAreaCode ::= OCTET STRING(SIZE (2)) -- octets 1 and 2 of LocationAreaCode according to 3GPP TS 24.008 UdlArgExt ::= [PRIVATE 0] SEQUENCE { lai [0] LAIFixedLength OPTIONAL, sendImmResp [1] NULL OPTIONAL, ... } RoamNotAllowedExt ::= [PRIVATE 0] SEQUENCE { rejectCause [0] OCTET STRING (SIZE (1)) OPTIONAL, ... } AnyTimeModArgExt ::= [PRIVATE 0] SEQUENCE { senderMSISDN [0] ISDN-AddressString OPTIONAL, ... } CosInfo::= SEQUENCE { ss-Code SS-Code OPTIONAL, cos-FeatureList COS-FeatureList } COS-FeatureList ::= SEQUENCE SIZE (1..maxNumberOfCOSFeatures) OF COS-Feature maxNumberOfCOSFeatures INTEGER ::= 13 -- This reflects the number of basic service groups, and is -- consistent with other features (i.e., Forwarding Features, -- CallBarring Features, etc.). COS-Feature ::= SEQUENCE { basicServiceCode BasicServiceCode OPTIONAL, ss-Status [4] SS-Status, customerGroupID [5] CustomerGroupID OPTIONAL, subGroupID [6] SubGroupID OPTIONAL, classOfServiceID [7] ClassOfServiceID OPTIONAL } CustomerGroupID ::= BIT STRING { formatIndicator (0), idHighBit (8), netidHighBit (16), idLowBit (31) } (SIZE(32)) -- formatIndicator is encoded as follows: -- 0 : International Format -- 1 : Network Format -- Bits 1-7 Unused (encoded as 0000000) -- The remaining bits (3 octets) are the bit representation of the -- Customer Group Identifier. All bits are significant. SubGroupID ::= BIT STRING (SIZE (16)) ClassOfServiceID ::= BIT STRING { formatIndicator (0), idHighBit (8), idLowBit (15) } (SIZE(16)) -- formatIndicator is encoded as follows: -- 0 : International Format -- 1 : Network Format -- Bits 1-7 Unused (encoded as 0000000) -- The remaining bits (one octet) is the bit representation of the -- Class Of Service Identifier. All bits are significant. AccessTypeExt ::= SEQUENCE { access Access, version Version, ...} Access ::= ENUMERATED { gsm (1), geran (2), utran (3), ...} Version ::= INTEGER (1..20) AccessSubscriptionListExt ::= SEQUENCE SIZE (1..10) OF Access AllowedServiceData ::= BIT STRING { amr-wb-allowed (0)} (SIZE(1..16)) AnyTimePO-BarringArg ::= SEQUENCE { subscriberIdentity [0] SubscriberIdentity, gsmSCF-Address [3] ISDN-AddressString, gprs-Barring GprsBarring, ...} AnyTimePO-BarringRes ::= SEQUENCE { ...} GprsBarring ::= ENUMERATED { gprsServiceBarring (0), grantGPRS-Service (1), ...} END
C
wireshark/epan/dissectors/asn1/gsm_map/packet-gsm_map-template.c
/* XXX see bug 1852: * * packet-gsm_map.c: There are 1174 display filter fields registered. Most are * prefixed appropriately as "gsm_map", but many others are prefixed as * "gsm_old", or even "gad", "gsm_ss", or with no prefix at all. I don't know * if the ones with "gsm_old" are simply obsolete display filter fields or if * they should be prefixed as "gsm_map.old." or what. Similar uncertainties * for the others. Someone more knowledgeable than I am with respect to this * dissector should provide a patch for it. */ /* packet-gsm_map-template.c * Routines for GSM MobileApplication packet dissection * including GSM SS. * Copyright 2004 - 2010 , Anders Broman <anders.broman [AT] ericsson.com> * Based on the dissector by: * Felix Fei <felix.fei [AT] utstar.com> * and Michael Lum <mlum [AT] telostech.com> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * References GSM MAP: * ETSI TS 129 002 * Updated to ETSI TS 129 002 V7.5.0 (3GPP TS 29.002 V7.5.0 (2006-09) Release 7) * Updated to ETSI TS 129 002 V8.4.0 (3GPP TS 29.002 V8.1.0 (2007-06) Release 8) * References GSM SS * References: 3GPP TS 24.080 */ #include "config.h" #include <stdlib.h> #include <epan/packet.h> #include <epan/prefs.h> #include <epan/stat_tap_ui.h> #include <epan/tap.h> #include <epan/oids.h> #include <epan/expert.h> #include <epan/proto_data.h> #include <epan/conversation.h> #include <wsutil/strtoi.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-per.h" #include "packet-q931.h" #include "packet-gsm_map.h" #include "packet-gsm_a_common.h" #include "packet-tcap.h" #include "packet-e164.h" #include "packet-e212.h" #include "packet-smpp.h" #include "packet-gsm_sms.h" #include "packet-ranap.h" #include "packet-isup.h" #define PNAME "GSM Mobile Application" #define PSNAME "GSM_MAP" #define PFNAME "gsm_map" void proto_register_gsm_map(void); void proto_reg_handoff_gsm_map(void); /* Initialize the protocol and registered fields */ static int proto_gsm_map = -1; static int proto_gsm_map_dialogue = -1; static int proto_gsm_map_ms = -1; static int hf_gsm_map_old_Component_PDU = -1; static int hf_gsm_map_getPassword = -1; static int hf_gsm_map_currentPassword = -1; static int hf_gsm_map_extension = -1; static int hf_gsm_map_nature_of_number = -1; static int hf_gsm_map_number_plan = -1; static int hf_gsm_map_address_digits = -1; static int hf_gsm_map_TBCD_digits = -1; static int hf_gsm_map_Ss_Status_unused = -1; static int hf_gsm_map_Ss_Status_q_bit = -1; static int hf_gsm_map_Ss_Status_p_bit = -1; static int hf_gsm_map_Ss_Status_r_bit = -1; static int hf_gsm_map_Ss_Status_a_bit = -1; static int hf_gsm_map_notification_to_forwarding_party = -1; static int hf_gsm_map_redirecting_presentation = -1; static int hf_gsm_map_notification_to_calling_party = -1; static int hf_gsm_map_forwarding_reason = -1; static int hf_gsm_map_pdp_type_org = -1; static int hf_gsm_map_etsi_pdp_type_number = -1; static int hf_gsm_map_ietf_pdp_type_number = -1; static int hf_gsm_map_ext_qos_subscribed_pri = -1; static int hf_gsm_map_qos_traffic_cls = -1; static int hf_gsm_map_qos_del_order = -1; static int hf_gsm_map_qos_del_of_err_sdu = -1; static int hf_gsm_map_qos_ber = -1; static int hf_gsm_map_qos_sdu_err_rat = -1; static int hf_gsm_map_qos_traff_hdl_pri = -1; static int hf_gsm_map_qos_max_sdu = -1; static int hf_gsm_map_max_brate_ulink = -1; static int hf_gsm_map_max_brate_dlink = -1; static int hf_gsm_map_qos_transfer_delay = -1; static int hf_gsm_map_guaranteed_max_brate_ulink = -1; static int hf_gsm_map_guaranteed_max_brate_dlink = -1; static int hf_gsm_map_GSNAddress_IPv4 = -1; static int hf_gsm_map_GSNAddress_IPv6 = -1; static int hf_gsm_map_ranap_service_Handover = -1; static int hf_gsm_map_IntegrityProtectionInformation = -1; static int hf_gsm_map_EncryptionInformation = -1; static int hf_gsm_map_ss_SS_UserData = -1; static int hf_gsm_map_cbs_coding_grp = -1; static int hf_gsm_map_cbs_coding_grp0_lang = -1; static int hf_gsm_map_cbs_coding_grp1_lang = -1; static int hf_gsm_map_cbs_coding_grp2_lang = -1; static int hf_gsm_map_cbs_coding_grp3_lang = -1; static int hf_gsm_map_cbs_coding_grp4_7_comp = -1; static int hf_gsm_map_cbs_coding_grp4_7_class_ind = -1; static int hf_gsm_map_cbs_coding_grp4_7_char_set = -1; static int hf_gsm_map_cbs_coding_grp4_7_class = -1; static int hf_gsm_map_cbs_coding_grp15_mess_code = -1; static int hf_gsm_map_cbs_coding_grp15_class = -1; static int hf_gsm_map_ie_tag = -1; static int hf_gsm_map_len = -1; static int hf_gsm_map_disc_par = -1; static int hf_gsm_map_dlci = -1; static int hf_gsm_apn_str = -1; static int hf_gsm_map_ericsson_locationInformation_rat = -1; static int hf_gsm_map_ericsson_locationInformation_lac = -1; static int hf_gsm_map_ericsson_locationInformation_ci = -1; static int hf_gsm_map_ericsson_locationInformation_sac = -1; static int hf_gsm_map_ussd_string = -1; static int hf_gsm_map_spare_bits = -1; static int hf_gsm_map_qos_signalling_ind = -1; static int hf_gsm_map_qos_source_stat_desc = - 1; static int hf_gsm_map_qos_max_bitrate_upl_ext = -1; static int hf_gsm_map_qos_max_bitrate_downl_ext = -1; static int hf_gsm_map_qos_guar_bitrate_upl_ext = -1; static int hf_gsm_map_qos_guar_bitrate_downl_ext = -1; /* static int hf_gsm_map_qos_max_bitrate_upl_ext2 = -1; static int hf_gsm_map_qos_max_bitrate_downl_ext2 = -1; static int hf_gsm_map_qos_guar_bitrate_upl_ext2 = -1; static int hf_gsm_map_qos_guar_bitrate_downl_ext2 = -1; */ static int hf_gsm_map_earp_pci = -1; static int hf_gsm_map_earp_pl = -1; static int hf_gsm_map_earp_pvi = -1; #include "packet-gsm_map-hf.c" /* Initialize the subtree pointers */ static gint ett_gsm_map = -1; static gint ett_gsm_map_InvokeId = -1; static gint ett_gsm_map_InvokePDU = -1; static gint ett_gsm_map_ReturnResultPDU = -1; static gint ett_gsm_map_ReturnErrorPDU = -1; static gint ett_gsm_map_ReturnResult_result = -1; static gint ett_gsm_map_ReturnError_result = -1; static gint ett_gsm_map_GSMMAPPDU = -1; static gint ett_gsm_map_ext_qos_subscribed = -1; static gint ett_gsm_map_pdptypenumber = -1; static gint ett_gsm_map_RAIdentity = -1; static gint ett_gsm_map_LAIFixedLength = -1; static gint ett_gsm_map_isdn_address_string = -1; static gint ett_gsm_map_geo_desc = -1; static gint ett_gsm_map_LongSignalInfo = -1; static gint ett_gsm_map_RadioResourceInformation =-1; static gint ett_gsm_map_MSNetworkCapability =-1; static gint ett_gsm_map_MSRadioAccessCapability = -1; static gint ett_gsm_map_externalsignalinfo = -1; static gint ett_gsm_map_cbs_data_coding = -1; static gint ett_gsm_map_GlobalCellId = -1; static gint ett_gsm_map_GeographicalInformation = -1; static gint ett_gsm_map_apn_str = -1; static gint ett_gsm_map_LocationNumber = -1; static gint ett_gsm_map_ericsson_locationInformation = -1; static gint ett_gsm_map_extension_data = -1; static gint ett_gsm_map_tbcd_digits = -1; static gint ett_gsm_map_ussd_string = -1; static gint ett_gsm_map_ext2_qos_subscribed = -1; static gint ett_gsm_map_ext3_qos_subscribed = -1; static gint ett_gsm_map_e_utranCellGlobalIdentity = -1; static gint ett_gsm_map_TA_id = -1; static gint ett_gsm_map_GeodeticInformation = -1; #include "packet-gsm_map-ett.c" static expert_field ei_gsm_map_unknown_sequence3 = EI_INIT; static expert_field ei_gsm_map_unknown_sequence = EI_INIT; static expert_field ei_gsm_map_unknown_parameter = EI_INIT; static expert_field ei_gsm_map_unknown_invokeData = EI_INIT; static expert_field ei_gsm_map_undecoded = EI_INIT; static dissector_handle_t gsm_sms_handle; /* SMS TPDU */ static dissector_handle_t ranap_handle; static dissector_handle_t dtap_handle; static dissector_handle_t map_handle; static dissector_handle_t bssap_handle; static dissector_table_t map_prop_arg_opcode_table; /* prorietary operation codes */ static dissector_table_t map_prop_res_opcode_table; /* prorietary operation codes */ static dissector_table_t map_prop_err_opcode_table; /* prorietary operation codes */ /* Preferenc settings default */ #define MAX_SSN 254 static range_t *global_ssn_range; #define APPLICATON_CONTEXT_FROM_TRACE 0 static gint pref_application_context_version = APPLICATON_CONTEXT_FROM_TRACE; static gboolean pref_ericsson_proprietary_ext = FALSE; /* Global variables */ static guint32 opcode=0; static guint32 errorCode; static int application_context_version; static guint ProtocolId; static guint AccessNetworkProtocolId; static int gsm_map_tap = -1; static guint8 gsmmap_pdu_type = 0; static guint8 gsm_map_pdu_size = 0; #define SMS_ENCODING_NOT_SET 0 #define SMS_ENCODING_7BIT 1 #define SMS_ENCODING_8BIT 2 #define SMS_ENCODING_UCS2 3 #define SMS_ENCODING_7BIT_LANG 4 #define SMS_ENCODING_UCS2_LANG 5 static guint8 sms_encoding; /* Forward declarations */ static int dissect_invokeData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx); static int dissect_returnResultData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx); static int dissect_returnErrorData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx); const gchar* gsm_map_opr_code(guint32 val, proto_item *item); typedef struct { struct tcap_private_t * tcap_private; sccp_msg_info_t *sccp_msg_info; tvbuff_t *signal_info_tvb; } gsm_map_private_info_t; typedef struct { wmem_tree_t *packets; } gsm_map_conv_info_t; static gsm_map_packet_info_t *gsm_map_get_packet_info(asn1_ctx_t *actx, bool store_conv_info) { gsm_map_packet_info_t *gsm_map_pi = (gsm_map_packet_info_t*)p_get_proto_data(wmem_file_scope(), actx->pinfo, proto_gsm_map, 0); if (!gsm_map_pi) { gsm_map_private_info_t *gsm_map_priv = (gsm_map_private_info_t*)actx->value_ptr; gsm_map_pi = wmem_new0(wmem_file_scope(), gsm_map_packet_info_t); p_add_proto_data(wmem_file_scope(), actx->pinfo, proto_gsm_map, 0, gsm_map_pi); if (gsm_map_priv && gsm_map_priv->tcap_private) { gsm_map_pi->tcap_src_tid = gsm_map_priv->tcap_private->src_tid; if (store_conv_info) { conversation_t *conversation; gsm_map_conv_info_t *gsm_map_info; wmem_tree_key_t key[3]; conversation = find_or_create_conversation(actx->pinfo); gsm_map_info = (gsm_map_conv_info_t *)conversation_get_proto_data(conversation, proto_gsm_map); if (!gsm_map_info) { gsm_map_info = wmem_new(wmem_file_scope(), gsm_map_conv_info_t); gsm_map_info->packets = wmem_tree_new(wmem_file_scope()); conversation_add_proto_data(conversation, proto_gsm_map, gsm_map_info); } key[0].length = 1; key[0].key = &gsm_map_priv->tcap_private->src_tid; key[1].length = 1; key[1].key = &actx->pinfo->num; key[2].length = 0; key[2].key = NULL; wmem_tree_insert32_array(gsm_map_info->packets, key, (void *)gsm_map_pi); } } } return gsm_map_pi; } static gsm_map_packet_info_t *gsm_map_get_matching_tcap_info(asn1_ctx_t *actx) { gsm_map_private_info_t *gsm_map_priv = (gsm_map_private_info_t*)actx->value_ptr; if (gsm_map_priv && gsm_map_priv->tcap_private) { conversation_t *conversation; gsm_map_conv_info_t *gsm_map_info; wmem_tree_key_t key[3]; gsm_map_packet_info_t *gsm_map_pi; conversation = find_or_create_conversation(actx->pinfo); gsm_map_info = (gsm_map_conv_info_t *)conversation_get_proto_data(conversation, proto_gsm_map); if (!gsm_map_info) { gsm_map_info = wmem_new(wmem_file_scope(), gsm_map_conv_info_t); gsm_map_info->packets = wmem_tree_new(wmem_file_scope()); conversation_add_proto_data(conversation, proto_gsm_map, gsm_map_info); } key[0].length = 1; key[0].key = &gsm_map_priv->tcap_private->src_tid; key[1].length = 1; key[1].key = &actx->pinfo->num; key[2].length = 0; key[2].key = NULL; gsm_map_pi = (gsm_map_packet_info_t*)wmem_tree_lookup32_array_le(gsm_map_info->packets, key); if (gsm_map_pi && gsm_map_pi->tcap_src_tid == gsm_map_priv->tcap_private->src_tid) return gsm_map_pi; } return NULL; } /* Value strings */ const value_string gsm_map_PDP_Type_Organisation_vals[] = { { 0, "ETSI" }, { 1, "IETF" }, { 0, NULL } }; const value_string gsm_map_ietf_defined_pdp_vals[] = { { 0x21, "IPv4 Address" }, { 0x57, "IPv6 Address" }, { 0, NULL } }; const value_string gsm_map_etsi_defined_pdp_vals[] = { { 1, "PPP" }, { 0, NULL } }; static const value_string gsm_map_tag_vals[] = { { 0x4, "Bearer Capability" }, { 0, NULL } }; static const value_string gsm_map_disc_par_vals[] = { { 0, "Not Transparent" }, { 1, "Transparent" }, { 0, NULL } }; static const value_string gsm_map_ericsson_locationInformation_rat_vals[] = { { 0x0, "GSM" }, { 0x1, "UMTS" }, { 0x2, "LTE" }, { 0xf, "No information" }, { 0, NULL } }; /* returns value in kb/s */ static guint gsm_map_calc_bitrate(guint8 value){ guint8 granularity; guint returnvalue; if (value == 0xff) return 0; granularity = value >> 6; returnvalue = value & 0x7f; switch (granularity){ case 0: break; case 1: returnvalue = ((returnvalue - 0x40) << 3)+64; break; case 2: returnvalue = (returnvalue << 6)+576; break; case 3: returnvalue = (returnvalue << 6)+576; break; } return returnvalue; } static void dissect_gsm_map_ext_qos_subscribed(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, asn1_ctx_t *actx){ int offset = 0; proto_tree *subtree; guint8 octet; guint16 value; subtree = proto_item_add_subtree(actx->created_item, ett_gsm_map_ext_qos_subscribed); /* OCTET 1: Allocation/Retention Priority (This octet encodes each priority level defined in 23.107 as the binary value of the priority level, declaration in 29.060) Octets 2-9 are coded according to 3GPP TS 24.008[35] Quality of Service Octets 6-13. */ /* Allocation/Retention Priority */ proto_tree_add_item(subtree, hf_gsm_map_ext_qos_subscribed_pri, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; /* Quality of Service Octets 6-13.( Octet 2 - 9 Here) */ /* Traffic class, octet 6 (see 3GPP TS 23.107) Bits 8 7 6 */ proto_tree_add_item(subtree, hf_gsm_map_qos_traffic_cls, tvb, offset, 1, ENC_BIG_ENDIAN); /* Delivery order, octet 6 (see 3GPP TS 23.107) Bits 5 4 */ proto_tree_add_item(subtree, hf_gsm_map_qos_del_order, tvb, offset, 1, ENC_BIG_ENDIAN); /* Delivery of erroneous SDUs, octet 6 (see 3GPP TS 23.107) Bits 3 2 1 */ proto_tree_add_item(subtree, hf_gsm_map_qos_del_of_err_sdu, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; /* Maximum SDU size, octet 7 (see 3GPP TS 23.107) */ octet = tvb_get_guint8(tvb,offset); switch (octet){ case 0: proto_tree_add_uint_format_value(subtree, hf_gsm_map_qos_max_sdu, tvb, offset, 1, octet, "Reserved"); break; case 0x93: value = 1502; proto_tree_add_uint(subtree, hf_gsm_map_qos_max_sdu, tvb, offset, 1, value); break; case 0x98: value = 1510; proto_tree_add_uint(subtree, hf_gsm_map_qos_max_sdu, tvb, offset, 1, value); break; case 0x99: value = 1532; proto_tree_add_uint(subtree, hf_gsm_map_qos_max_sdu, tvb, offset, 1, value); break; default: if (octet<0x97){ value = octet * 10; proto_tree_add_uint(subtree, hf_gsm_map_qos_max_sdu, tvb, offset, 1, value); }else{ proto_tree_add_uint_format_value(subtree, hf_gsm_map_qos_max_sdu, tvb, offset, 1, octet, "0x%x not defined in TS 24.008", octet); } } offset++; /* Maximum bit rate for uplink, octet 8 */ octet = tvb_get_guint8(tvb,offset); if (octet == 0 ){ proto_tree_add_uint_format_value(subtree, hf_gsm_map_max_brate_ulink, tvb, offset, 1, octet, "Reserved" ); }else{ proto_tree_add_uint(subtree, hf_gsm_map_max_brate_ulink, tvb, offset, 1, gsm_map_calc_bitrate(octet)); } offset++; /* Maximum bit rate for downlink, octet 9 (see 3GPP TS 23.107) */ octet = tvb_get_guint8(tvb,offset); if (octet == 0 ){ proto_tree_add_uint_format_value(subtree, hf_gsm_map_max_brate_dlink, tvb, offset, 1, octet, "Reserved" ); }else{ proto_tree_add_uint(subtree, hf_gsm_map_max_brate_dlink, tvb, offset, 1, gsm_map_calc_bitrate(octet)); } offset++; /* Residual Bit Error Rate (BER), octet 10 (see 3GPP TS 23.107) Bits 8 7 6 5 */ proto_tree_add_item(subtree, hf_gsm_map_qos_ber, tvb, offset, 1, ENC_BIG_ENDIAN); /* SDU error ratio, octet 10 (see 3GPP TS 23.107) */ proto_tree_add_item(subtree, hf_gsm_map_qos_sdu_err_rat, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; /* Transfer delay, octet 11 (See 3GPP TS 23.107) Bits 8 7 6 5 4 3 */ proto_tree_add_item(subtree, hf_gsm_map_qos_transfer_delay, tvb, offset, 1, ENC_BIG_ENDIAN); /* Traffic handling priority, octet 11 (see 3GPP TS 23.107) Bits 2 1 */ proto_tree_add_item(subtree, hf_gsm_map_qos_traff_hdl_pri, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; /* Guaranteed bit rate for uplink, octet 12 (See 3GPP TS 23.107) Coding is identical to that of Maximum bit rate for uplink. */ octet = tvb_get_guint8(tvb,offset); if (octet == 0 ){ proto_tree_add_uint_format_value(subtree, hf_gsm_map_guaranteed_max_brate_ulink, tvb, offset, 1, octet, "Subscribed guaranteed bit rate for uplink/reserved"); }else{ proto_tree_add_uint(subtree, hf_gsm_map_guaranteed_max_brate_ulink, tvb, offset, 1, gsm_map_calc_bitrate(octet)); } offset++; /* Guaranteed bit rate for downlink, octet 13(See 3GPP TS 23.107) Coding is identical to that of Maximum bit rate for uplink. */ octet = tvb_get_guint8(tvb,offset); if (octet == 0 ){ proto_tree_add_uint_format_value(subtree, hf_gsm_map_guaranteed_max_brate_dlink, tvb, offset, 1, octet, "Subscribed guaranteed bit rate for downlink/reserved"); }else{ proto_tree_add_uint(subtree, hf_gsm_map_guaranteed_max_brate_dlink, tvb, offset, 1, gsm_map_calc_bitrate(octet)); } } /* Ext2-QoS-Subscribed ::= OCTET STRING (SIZE (1..3)) -- Octets 1-3 are coded according to 3GPP TS 24.008 [35] Quality of Service Octets 14-16. -- If Quality of Service information is structured with 14 octet length, then -- Octet 1 is coded according to 3GPP TS 24.008 [35] Quality of Service Octet 14. */ static const true_false_string gsm_map_qos_signalling_ind_value = { "Optimised for signalling traffic", "Not optimised for signalling traffic" }; #if 0 /* Helper function returning the main bitrates in kbps */ static guint32 qos_calc_bitrate(guint8 oct) { if (oct <= 0x3f) return oct; if (oct <= 0x7f) return 64 + (oct - 0x40) * 8; return 576 + (oct - 0x80) * 64; } #endif /* Helper function returning the extended bitrates in kbps */ static guint32 qos_calc_ext_bitrate(guint8 oct) { if (oct <= 0x4a) return 8600 + oct * 100; if (oct <= 0xba) return 16000 + (oct - 0x4a) * 1000; return 128000 + (oct - 0xba) * 2000; } #if 0 static guint32 qos_calc_ext2_bitrate(guint8 oct) { if (oct <= 0x3d) return (256 + oct * 4); if (oct <= 0xa1) return (500 + (oct - 0x3d) * 10); if (oct <= 0xf6) return (1500 + (oct - 0xa1) * 100); return 10000; } #endif static void dissect_gsm_map_ext2_qos_subscribed(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, asn1_ctx_t *actx) { int offset = 0; proto_tree *subtree; const gchar *str; guint8 oct, tmp_oct; guint32 temp32; int length = tvb_reported_length(tvb); subtree = proto_item_add_subtree(actx->created_item, ett_gsm_map_ext2_qos_subscribed); /* Ocet 14 */ oct = tvb_get_guint8(tvb, offset); proto_tree_add_bits_item(subtree, hf_gsm_map_spare_bits, tvb, (offset << 3), 3, ENC_BIG_ENDIAN); proto_tree_add_item(subtree, hf_gsm_map_qos_signalling_ind, tvb, offset, 1, ENC_BIG_ENDIAN); tmp_oct = oct & 7; if (tmp_oct == 0x01) str = "speech"; else str = "unknown"; proto_tree_add_uint_format_value(subtree, hf_gsm_map_qos_source_stat_desc, tvb, offset, 1, oct, "%s (%u)", str, tmp_oct); offset += 1; if (length == offset) { return; } /* Octet 15 */ oct = tvb_get_guint8(tvb, offset); if (oct == 0x00) str = "Use the value indicated by the Maximum bit rate for downlink"; else { temp32 = qos_calc_ext_bitrate(oct); if (temp32 % 1000 == 0) str = wmem_strdup_printf(pinfo->pool, "%u Mbps", temp32 / 1000); else str = wmem_strdup_printf(pinfo->pool, "%u kbps", temp32); } proto_tree_add_uint_format_value(subtree, hf_gsm_map_qos_max_bitrate_downl_ext, tvb, offset, 1, oct, "%s (%u)", str, oct); offset += 1; if (length == offset) { return; } /* Octet 16 */ oct = tvb_get_guint8(tvb, offset); if (oct == 0x00) str = "Use the value indicated by the Guaranteed bit rate for downlink"; else { temp32 = qos_calc_ext_bitrate(oct); if (temp32 % 1000 == 0) str = wmem_strdup_printf(pinfo->pool, "%u Mbps", temp32 / 1000); else str = wmem_strdup_printf(pinfo->pool, "%u kbps", temp32); } proto_tree_add_uint_format_value(subtree, hf_gsm_map_qos_guar_bitrate_downl_ext, tvb, offset, 1, oct, "%s (%u)", str, oct); } /* Ext3-QoS-Subscribed ::= OCTET STRING (SIZE (1..2)) -- Octets 1-2 are coded according to 3GPP TS 24.008 [35] Quality of Service Octets 17-18. */ static void dissect_gsm_map_ext3_qos_subscribed(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, asn1_ctx_t *actx) { int offset = 0; proto_tree *subtree; const gchar *str; guint8 oct; guint32 temp32; int length = tvb_reported_length(tvb); subtree = proto_item_add_subtree(actx->created_item, ett_gsm_map_ext3_qos_subscribed); /* Maximum bit rate for uplink (extended) Octet 17 */ oct = tvb_get_guint8(tvb, offset); if (oct == 0x00) str = "Use the value indicated by the Maximum bit rate for uplink"; else { temp32 = qos_calc_ext_bitrate(oct); if (temp32 % 1000 == 0) str = wmem_strdup_printf(pinfo->pool, "%u Mbps", temp32 / 1000); else str = wmem_strdup_printf(pinfo->pool, "%u kbps", temp32); } proto_tree_add_uint_format_value(subtree, hf_gsm_map_qos_max_bitrate_upl_ext, tvb, offset, 1, oct, "%s (%u)", str, oct); offset += 1; if (length == offset) { return; } /* Guaranteed bit rate for uplink (extended) Octet 18 */ oct = tvb_get_guint8(tvb, offset); if (oct == 0x00) str = "Use the value indicated by the Guaranteed bit rate for uplink"; else { temp32 = qos_calc_ext_bitrate(oct); if (temp32 % 1000 == 0) str = wmem_strdup_printf(pinfo->pool, "%u Mbps", temp32 / 1000); else str = wmem_strdup_printf(pinfo->pool, "%u kbps", temp32); } proto_tree_add_uint_format_value(subtree, hf_gsm_map_qos_guar_bitrate_upl_ext, tvb, offset, 1, oct, "%s (%u)", str, oct); return; } static void dissect_gsm_map_ext4_qos_subscribed(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, asn1_ctx_t *actx) { int offset = 0; proto_tree *subtree; subtree = proto_item_add_subtree(actx->created_item, ett_gsm_map_ext3_qos_subscribed); proto_tree_add_item(subtree, hf_gsm_map_earp_pvi, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(subtree, hf_gsm_map_earp_pl, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(subtree, hf_gsm_map_earp_pci, tvb, offset, 1, ENC_BIG_ENDIAN); } #define ELLIPSOID_POINT 0 #define ELLIPSOID_POINT_WITH_UNCERT_CIRC 1 #define ELLIPSOID_POINT_WITH_UNCERT_ELLIPSE 3 #define POLYGON 5 #define ELLIPSOID_POINT_WITH_ALT 8 #define ELLIPSOID_POINT_WITH_ALT_AND_UNCERT_ELLIPSOID 9 #define ELLIPSOID_ARC 10 /* 4 3 2 1 0 0 0 0 Ellipsoid Point 0 0 0 1 Ellipsoid point with uncertainty Circle 0 0 1 1 Ellipsoid point with uncertainty Ellipse 0 1 0 1 Polygon 1 0 0 0 Ellipsoid point with altitude 1 0 0 1 Ellipsoid point with altitude and uncertainty Ellipsoid 1 0 1 0 Ellipsoid Arc other values reserved for future use */ /* TS 23 032 Table 2a: Coding of Type of Shape */ #if 0 static const value_string type_of_shape_vals[] = { { ELLIPSOID_POINT, "Ellipsoid Point"}, { ELLIPSOID_POINT_WITH_UNCERT_CIRC, "Ellipsoid point with uncertainty Circle"}, { ELLIPSOID_POINT_WITH_UNCERT_ELLIPSE, "Ellipsoid point with uncertainty Ellipse"}, { POLYGON, "Polygon"}, { ELLIPSOID_POINT_WITH_ALT, "Ellipsoid point with altitude"}, { ELLIPSOID_POINT_WITH_ALT_AND_UNCERT_ELLIPSOID, "Ellipsoid point with altitude and uncertainty Ellipsoid"}, { ELLIPSOID_ARC, "Ellipsoid Arc"}, { 0, NULL } }; /* 3GPP TS 23.032 7.3.1 */ static const value_string sign_of_latitude_vals[] = { { 0, "North"}, { 1, "South"}, { 0, NULL } }; static const value_string dir_of_alt_vals[] = { { 0, "Altitude expresses height"}, { 1, "Altitude expresses depth"}, { 0, NULL } }; #endif static const value_string gsm_map_cbs_data_coding_scheme_coding_grp_vals[] = { { 0, "Coding Group 0(Language using the GSM 7 bit default alphabet)" }, { 1, "Coding Group 1" }, { 2, "Coding Group 2" }, { 3, "Coding Group 3" }, { 4, "General Data Coding indication" }, { 5, "General Data Coding indication" }, { 6, "General Data Coding indication" }, { 7, "General Data Coding indication" }, { 8, "Reserved" }, { 9, "Message with User Data Header (UDH) structure" }, { 10,"Reserved" }, { 11,"Reserved" }, { 12,"Reserved" }, { 13,"Reserved" }, { 14,"Defined by the WAP Forum" }, { 15,"Data coding / message handling" }, { 0, NULL} }; static value_string_ext gsm_map_cbs_data_coding_scheme_coding_grp_vals_ext = VALUE_STRING_EXT_INIT(gsm_map_cbs_data_coding_scheme_coding_grp_vals); /* Coding group 0 * Bits 3..0 indicate the language: */ static const value_string gsm_map_cbs_coding_grp0_lang_vals[] = { { 0, "German"}, { 1, "English"}, { 2, "Italian"}, { 3, "French"}, { 4, "Spanish"}, { 5, "Dutch"}, { 6, "Swedish"}, { 7, "Danish"}, { 8, "Portuguese"}, { 9, "Finnish"}, { 10, "Norwegian"}, { 11, "Greek"}, { 12, "Turkish"}, { 13, "Hungarian"}, { 14, "Polish"}, { 15, "Language unspecified"}, { 0, NULL } }; static value_string_ext gsm_map_cbs_coding_grp0_lang_vals_ext = VALUE_STRING_EXT_INIT(gsm_map_cbs_coding_grp0_lang_vals); static const value_string gsm_map_cbs_coding_grp1_lang_vals[] = { { 0, "GSM 7 bit default alphabet; message preceded by language indication"}, { 1, "UCS2; message preceded by language indication"}, { 2, "Reserved"}, { 3, "Reserved"}, { 4, "Reserved"}, { 5, "Reserved"}, { 6, "Reserved"}, { 7, "Reserved"}, { 8, "Reserved"}, { 9, "Reserved"}, { 10, "Reserved"}, { 11, "Reserved"}, { 12, "Reserved"}, { 13, "Reserved"}, { 14, "Reserved"}, { 15, "Reserved"}, { 0, NULL } }; static value_string_ext gsm_map_cbs_coding_grp1_lang_vals_ext = VALUE_STRING_EXT_INIT(gsm_map_cbs_coding_grp1_lang_vals); static const value_string gsm_map_cbs_coding_grp2_lang_vals[] = { { 0, "Czech"}, { 1, "Hebrew"}, { 2, "Arabic"}, { 3, "Russian"}, { 4, "Icelandic"}, { 5, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 6, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 7, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 8, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 9, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 10, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 11, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 12, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 13, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 14, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 15, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 0, NULL } }; static value_string_ext gsm_map_cbs_coding_grp2_lang_vals_ext = VALUE_STRING_EXT_INIT(gsm_map_cbs_coding_grp2_lang_vals); static const value_string gsm_map_cbs_coding_grp3_lang_vals[] = { { 0, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 1, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 2, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 3, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 4, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 5, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 6, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 7, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 8, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 9, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 10, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 11, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 12, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 13, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 14, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 15, "Reserved for other languages using the GSM 7 bit default alphabet, with unspecified handling at the MS"}, { 0, NULL } }; static value_string_ext gsm_map_cbs_coding_grp3_lang_vals_ext = VALUE_STRING_EXT_INIT(gsm_map_cbs_coding_grp3_lang_vals); static const true_false_string gsm_map_cbs_coding_grp4_7_comp_vals = { "The text is compressed using the compression algorithm defined in 3GPP TS 23.042", "The text is uncompressed" }; static const true_false_string gsm_map_cbs_coding_grp4_7_class_ind_vals = { "Bits 1 to 0 have a message class meaning", "Bits 1 to 0 are reserved and have no message class meaning" }; /* Bits 3 and 2 indicate the character set being used, as follows: */ static const value_string gsm_map_cbs_coding_grp4_7_char_set_vals[] = { { 0, "GSM 7 bit default alphabet"}, { 1, "8 bit data"}, { 2, "UCS2 (16 bit)"}, { 3, "Reserved"}, { 0, NULL } }; static const value_string gsm_map_cbs_coding_grp4_7_class_vals[] = { { 0, "Class 0"}, { 1, "Class 1 Default meaning: ME-specific"}, { 2, "Class 2 (U)SIM specific message"}, { 3, "Class 3 Default meaning: TE-specific (see 3GPP TS 27.005"}, { 0, NULL } }; static const value_string gsm_map_cbs_coding_grp15_mess_code_vals[] = { { 0, "GSM 7 bit default alphabet"}, { 1, "8 bit data"}, { 0, NULL } }; static const value_string gsm_map_cbs_coding_grp15_class_vals[] = { { 0, "GSM 7 bit default alphabet"}, { 1, "8 bit data"}, { 0, NULL } }; /* 3GPP TS 23.038 version 7.0.0 Release 7 */ guint8 dissect_cbs_data_coding_scheme(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint16 offset) { guint8 octet; guint8 coding_grp; guint8 character_set; octet = tvb_get_guint8(tvb,offset); coding_grp = octet >>4; proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp, tvb, offset, 1, ENC_BIG_ENDIAN); sms_encoding = SMS_ENCODING_NOT_SET; switch (coding_grp){ case 0: proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp0_lang, tvb, offset, 1, ENC_BIG_ENDIAN); sms_encoding = SMS_ENCODING_7BIT; break; case 1: proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp1_lang, tvb, offset, 1, ENC_BIG_ENDIAN); if ((octet & 0x0f)== 0){ sms_encoding = SMS_ENCODING_7BIT_LANG; }else{ sms_encoding = SMS_ENCODING_UCS2_LANG; } break; case 2: proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp2_lang, tvb, offset, 1, ENC_BIG_ENDIAN); sms_encoding = SMS_ENCODING_7BIT; break; case 3: proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp3_lang, tvb, offset, 1, ENC_BIG_ENDIAN); sms_encoding = SMS_ENCODING_7BIT; break; /* Coding_grp 01xx */ case 4: /* FALLTHRU */ case 5: /* FALLTHRU */ case 6: /* FALLTHRU */ case 7: /* FALLTHRU */ proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp4_7_comp, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp4_7_class_ind, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp4_7_char_set, tvb, offset, 1, ENC_BIG_ENDIAN); if ((octet & 0x10)== 0x10){ proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp4_7_class, tvb, offset, 1, ENC_BIG_ENDIAN); } /* Bits 3 and 2 indicate the character set being used, */ character_set = (octet&0x0c)>>2; switch (character_set){ case 0: /* GSM 7 bit default alphabet */ sms_encoding = SMS_ENCODING_7BIT; break; case 1: /* 8 bit data */ sms_encoding = SMS_ENCODING_8BIT; break; case 2: /* UCS2 (16 bit) */ sms_encoding = SMS_ENCODING_UCS2; break; case 3: /* Reserved */ sms_encoding = SMS_ENCODING_NOT_SET; break; default: break; } break; case 8: /* Reserved coding groups */ break; case 9: /* Message with User Data Header (UDH) structure:*/ proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp4_7_char_set, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp4_7_class, tvb, offset, 1, ENC_BIG_ENDIAN); character_set = (octet&0x0c)>>2; switch (character_set){ case 0: /* GSM 7 bit default alphabet */ sms_encoding = SMS_ENCODING_7BIT; break; case 1: /* 8 bit data */ sms_encoding = SMS_ENCODING_8BIT; break; case 2: /* UCS2 (16 bit) */ sms_encoding = SMS_ENCODING_UCS2; break; case 3: /* Reserved */ sms_encoding = SMS_ENCODING_NOT_SET; break; default: break; } break; case 10: /* FALLTHRU */ case 11: /* FALLTHRU */ case 12: /* FALLTHRU */ case 13: /* FALLTHRU */ /* 1010..1101 Reserved coding groups */ break; case 14: /* Defined by the WAP Forum * "Wireless Datagram Protocol Specification", Wireless Application Protocol Forum Ltd. */ break; case 15: /* Data coding / message handling */ proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp15_mess_code, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_map_cbs_coding_grp15_class, tvb, offset, 1, ENC_BIG_ENDIAN); character_set = (octet&0x04)>>2; if (character_set == 0){ sms_encoding = SMS_ENCODING_7BIT; }else{ sms_encoding = SMS_ENCODING_8BIT; } break; default: break; } return sms_encoding; } void dissect_gsm_map_msisdn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint8 octet; guint8 na; guint8 np; proto_tree_add_item(tree, hf_gsm_map_extension, tvb, 0,1,ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_map_nature_of_number, tvb, 0,1,ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_map_number_plan, tvb, 0,1,ENC_BIG_ENDIAN); if(tvb_reported_length(tvb)==1) return; octet = tvb_get_guint8(tvb,0); /* nature of address indicator */ na = (octet & 0x70)>>4; /* numbering plan indicator */ np = octet & 0x0f; switch(np){ case 1: /* ISDN/Telephony Numbering Plan (Rec ITU-T E.164) */ switch(na){ case 1: /* international number */ dissect_e164_msisdn(tvb, tree, 1, tvb_reported_length(tvb)-1, E164_ENC_BCD); break; default: proto_tree_add_item(tree, hf_gsm_map_address_digits, tvb, 1, -1, ENC_BCD_DIGITS_0_9); break; } break; case 6: /* land mobile numbering plan (ITU-T Rec E.212) */ dissect_e212_imsi(tvb, pinfo, tree, 1, tvb_reported_length(tvb)-1, FALSE); break; default: proto_tree_add_item(tree, hf_gsm_map_address_digits, tvb, 1, -1, ENC_BCD_DIGITS_0_9); break; } } #include "packet-gsm_map-fn.c" /* Specific translation for MAP V3 */ const value_string gsm_map_V1V2_opr_code_strings[] = { { 44, "forwardSM" }, { 45, "sendRoutingInfoForSM" }, { 46, "forwardSM" }, { 0, NULL } }; /* Generic translation for MAP operation */ const value_string gsm_map_opr_code_strings[] = { #include "packet-gsm_map-table.c" { 0, NULL } }; #if 0 static const value_string gsm_map_err_code_string_vals[] = { #include "packet-gsm_map-table.c" { 0, NULL } }; #endif static const value_string gsm_map_nature_of_number_values[] = { { 0x00, "unknown" }, { 0x01, "International Number" }, { 0x02, "National Significant Number" }, { 0x03, "Network Specific Number" }, { 0x04, "Subscriber Number" }, { 0x05, "Reserved" }, { 0x06, "Abbreviated Number" }, { 0x07, "Reserved for extension" }, { 0, NULL } }; static value_string_ext gsm_map_nature_of_number_values_ext = VALUE_STRING_EXT_INIT(gsm_map_nature_of_number_values); static const value_string gsm_map_number_plan_values[] = { { 0x00, "unknown" }, { 0x01, "ISDN/Telephony Numbering (Rec ITU-T E.164)" }, { 0x02, "spare" }, { 0x03, "Data Numbering (ITU-T Rec. X.121)" }, { 0x04, "Telex Numbering (ITU-T Rec. F.69)" }, { 0x05, "spare" }, { 0x06, "Land Mobile Numbering (ITU-T Rec. E.212)" }, { 0x07, "spare" }, { 0x08, "National Numbering" }, { 0x09, "Private Numbering" }, { 0x0a, "spare" }, { 0x0b, "spare" }, { 0x0c, "spare" }, { 0x0d, "spare" }, { 0x0e, "spare" }, { 0x0f, "Reserved for extension" }, { 0, NULL } }; static value_string_ext gsm_map_number_plan_values_ext = VALUE_STRING_EXT_INIT(gsm_map_number_plan_values); static const true_false_string gsm_map_Ss_Status_q_bit_values = { "Quiescent", "Operative" }; static const true_false_string gsm_map_Ss_Status_p_values = { "Provisioned", "Not Provisioned" }; static const true_false_string gsm_map_Ss_Status_r_values = { "Registered", "Not Registered" }; static const true_false_string gsm_map_Ss_Status_a_values = { "Active", "not Active" }; /* * Translate the MAP operation code value to a text string * Take into account the MAP version for ForwardSM */ const gchar* gsm_map_opr_code(guint32 val, proto_item *item) { switch (val) { case 44: /*mt-forwardSM*/ /* FALLTHRU */ case 46: /*mo-forwardSM*/ if (application_context_version < 3) { proto_item_set_text(item, "%s (%d)", val_to_str_const(val, gsm_map_V1V2_opr_code_strings, "Unknown GSM-MAP opcode"), val); return val_to_str_const(val, gsm_map_V1V2_opr_code_strings, "Unknown GSM-MAP opcode"); } /* Else use the default map operation translation */ /* FALLTHRU */ default: return val_to_str_ext_const(val, &gsm_old_GSMMAPOperationLocalvalue_vals_ext, "Unknown GSM-MAP opcode"); break; } } /* Prototype for a decoding function */ typedef int (* dissect_function_t)( bool, tvbuff_t *, int , asn1_ctx_t *, proto_tree *, int); /* * Dissect Multiple Choice Message * This function is used to decode a message, when several encoding may be used. * For exemple, in the last MAP version, the Cancel Location is defined like this: * CancelLocationArg ::= [3] IMPLICIT SEQUENCE * But in the previous MAP version, it was a CHOICE between a SEQUENCE and an IMSI * As ASN1 encoders (or software) still uses the old encoding, this function allows * the decoding of both versions. * Moreover, some optimizations (or bad practice ?) in ASN1 encoder, removes the * SEQUENCE tag, when only one parameter is present in the SEQUENCE. * This explain why the function expects 3 parameters: * - a [3] SEQUENCE corresponding the recent ASN1 MAP encoding * - a SEQUENCE for old style * - and a single parameter, for old version or optimizations * * The analyze of the first ASN1 tag, indicate what kind of decoding should be used, * if the decoding function is provided (so not a NULL function) */ static int dissect_mc_message(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, bool implicit_param _U_, dissect_function_t parameter, int hf_index_param _U_, bool implicit_seq _U_, dissect_function_t sequence, int hf_index_seq _U_, bool implicit_seq3 _U_, dissect_function_t sequence3, int hf_index_seq3 _U_ ) { guint8 octet; gint8 bug_class; bool bug_pc, bug_ind_field; gint32 bug_tag; guint32 bug_len; octet = tvb_get_guint8(tvb,0); if ( (octet & 0xf) == 3) { /* XXX asn2wrs can not yet handle tagged assignment yes so this * XXX is some conformance file magic to work around that bug */ offset = get_ber_identifier(tvb, offset, &bug_class, &bug_pc, &bug_tag); offset = get_ber_length(tvb, offset, &bug_len, &bug_ind_field); if (sequence3 != NULL) { offset= (sequence3) (implicit_seq3, tvb, offset, actx, tree, hf_index_seq3); } else { proto_tree_add_expert(tree, actx->pinfo, &ei_gsm_map_unknown_sequence3, tvb, offset, -1); } } else if (octet == 0x30) { if (sequence != NULL) { offset= (sequence) (implicit_seq, tvb, 0, actx, tree, hf_index_seq); } else { proto_tree_add_expert(tree, actx->pinfo, &ei_gsm_map_unknown_sequence, tvb, offset, -1); } } else { if (parameter != NULL) { offset= (parameter) (implicit_param, tvb, offset, actx, tree, hf_index_param); } else { proto_tree_add_expert(tree, actx->pinfo, &ei_gsm_map_unknown_parameter, tvb, offset, -1); } } return offset; } static int dissect_invokeData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx) { switch(opcode){ case 2: /*updateLocation*/ offset=dissect_gsm_map_ms_UpdateLocationArg(FALSE, tvb, offset, actx, tree, -1); break; case 3: /*cancelLocation*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_Identity, hf_gsm_map_ms_identity, FALSE, dissect_gsm_map_Identity, hf_gsm_map_ms_identity, TRUE , dissect_gsm_map_ms_CancelLocationArg, -1);/*undefined*/ break; case 4: /*provideRoamingNumber*/ offset=dissect_gsm_map_ch_ProvideRoamingNumberArg(FALSE, tvb, offset, actx, tree, -1); break; case 5: /*noteSubscriberDataModified*/ offset=dissect_gsm_map_ms_NoteSubscriberDataModifiedArg(FALSE, tvb, offset, actx, tree, -1); break; case 6: /*resumeCallHandling*/ offset=dissect_gsm_map_ch_ResumeCallHandlingArg(FALSE, tvb, offset, actx, tree, -1); break; case 7: /*insertSubscriberData*/ offset=dissect_gsm_map_ms_InsertSubscriberDataArg(FALSE, tvb, offset, actx, tree, -1); break; case 8: /*deleteSubscriberData*/ offset=dissect_gsm_map_ms_DeleteSubscriberDataArg(FALSE, tvb, offset, actx, tree, -1); break; case 9: /*sendParameters*/ offset = dissect_gsm_old_SendParametersArg(FALSE, tvb, offset, actx, tree, -1); break; case 10: /*registerSS*/ offset=dissect_gsm_map_ss_RegisterSS_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 11: /*eraseSS*/ offset=dissect_gsm_map_ss_SS_ForBS_Code(FALSE, tvb, offset, actx, tree, -1); break; case 12: /*activateSS*/ offset=dissect_gsm_map_ss_SS_ForBS_Code(FALSE, tvb, offset, actx, tree, -1); break; case 13: /*deactivateSS*/ offset=dissect_gsm_map_ss_SS_ForBS_Code(FALSE, tvb, offset, actx, tree, -1); break; case 14: /*interrogateSS*/ offset=dissect_gsm_map_ss_SS_ForBS_Code(FALSE, tvb, offset, actx, tree, -1); break; case 15: /*authenticationFailureReport*/ offset=dissect_gsm_map_ms_AuthenticationFailureReportArg(FALSE, tvb, offset, actx, tree, -1); break; case 16: /*SS-protocol notifySS*/ offset=dissect_gsm_ss_NotifySS_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 17: /*registerPassword*/ offset=dissect_gsm_map_SS_Code(FALSE, tvb, offset, actx, tree, hf_gsm_map_ss_Code); break; case 18: /*getPassword*/ offset=dissect_gsm_old_GetPasswordArg(FALSE, tvb, offset, actx, tree, hf_gsm_map_getPassword); break; case 19: /* SS-Protocol processUnstructuredSS-Data (19) */ offset=dissect_gsm_ss_SS_UserData(FALSE, tvb, offset, actx, tree, hf_gsm_map_ss_SS_UserData); break; case 20: /*releaseResources*/ offset=dissect_gsm_map_ch_ReleaseResourcesArg(FALSE, tvb, offset, actx, tree, -1); break; case 21: /*mt-ForwardSM-VGCS*/ offset=dissect_gsm_map_sm_MT_ForwardSM_VGCS_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 22: /*sendRoutingInfo*/ if (application_context_version == 3){ offset=dissect_gsm_map_ch_SendRoutingInfoArg(FALSE, tvb, offset, actx, tree, -1); }else{ offset = dissect_gsm_old_SendRoutingInfoArgV2(FALSE, tvb, offset, actx, tree, -1); } break; case 23: /*updateGprsLocation*/ offset=dissect_gsm_map_ms_UpdateGprsLocationArg(FALSE, tvb, offset, actx, tree, -1); break; case 24: /*sendRoutingInfoForGprs*/ offset=dissect_gsm_map_ms_SendRoutingInfoForGprsArg(FALSE, tvb, offset, actx, tree, -1); break; case 25: /*failureReport*/ offset=dissect_gsm_map_ms_FailureReportArg(FALSE, tvb, offset, actx, tree, -1); break; case 26: /*noteMsPresentForGprs*/ offset=dissect_gsm_map_ms_NoteMsPresentForGprsArg(FALSE, tvb, offset, actx, tree, -1); break; /* undefined 27 */ /* reserved performHandover (28) */ case 29: /*sendEndSignal*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, dissect_gsm_old_Bss_APDU, -1, TRUE , dissect_gsm_map_ms_SendEndSignal_Arg, -1); break; /* reserved performSubsequentHandover (30) */ case 31: /*provideSIWFSNumber*/ offset=dissect_gsm_old_ProvideSIWFSNumberArg(FALSE, tvb, offset, actx, tree, -1); break; case 32: /*sIWFSSignallingModify*/ offset=dissect_gsm_old_SIWFSSignallingModifyArg(FALSE, tvb, offset, actx, tree, -1); break; case 33: /*processAccessSignalling*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, dissect_gsm_old_Bss_APDU, -1, TRUE , dissect_gsm_map_ms_ProcessAccessSignalling_Arg, -1); break; case 34: /*forwardAccessSignalling*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, dissect_gsm_old_Bss_APDU, -1, TRUE , dissect_gsm_map_ms_ForwardAccessSignalling_Arg, -1); break; /* reserved noteInternalHandover (35) */ case 36: /*cancelVcsgLocation*/ offset=dissect_gsm_map_ms_CancelVcsgLocationArg(FALSE, tvb, offset, actx, tree, -1); break; case 37: /*reset*/ if (application_context_version == 1) { offset = dissect_gsm_old_ResetArgV1(FALSE, tvb, offset, actx, tree, -1); } else { offset = dissect_gsm_map_ms_ResetArg(FALSE, tvb, offset, actx, tree, -1); } break; case 38: /*forwardCheckSS-Indication*/ return offset; break; case 39: /*prepareGroupCall*/ offset=dissect_gsm_map_gr_PrepareGroupCallArg(FALSE, tvb, offset, actx, tree, -1); break; case 40: /*sendGroupCallEndSignal*/ offset = dissect_gsm_map_gr_SendGroupCallEndSignalArg(FALSE, tvb, offset, actx, tree, -1); break; case 41: /*processGroupCallSignalling*/ offset = dissect_gsm_map_gr_ProcessGroupCallSignallingArg(FALSE, tvb, offset, actx, tree, -1); break; case 42: /*forwardGroupCallSignalling*/ offset=dissect_gsm_map_gr_ForwardGroupCallSignallingArg(FALSE, tvb, offset, actx, tree, -1); break; case 43: /*checkIMEI*/ if (pref_ericsson_proprietary_ext) { offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_IMEI, hf_gsm_map_ms_imei, FALSE, dissect_gsm_map_ericsson_EnhancedCheckIMEI_Arg, -1, TRUE , NULL, -1); /* no [3] SEQUENCE */ } else { offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_IMEI, hf_gsm_map_ms_imei, FALSE, dissect_gsm_map_ms_CheckIMEI_Arg, -1, TRUE , NULL, -1); /* no [3] SEQUENCE */ } break; case 44: /*mt-forwardSM(v3) or ForwardSM(v1/v2)*/ if (application_context_version == 3) offset=dissect_gsm_map_sm_MT_ForwardSM_Arg(FALSE, tvb, offset, actx, tree, -1); else { offset=dissect_gsm_old_ForwardSM_Arg(FALSE, tvb, offset, actx, tree, -1); } break; case 45: /*sendRoutingInfoForSM*/ if (application_context_version < 2) { offset=dissect_gsm_old_RoutingInfoForSM_ArgV1(FALSE, tvb, offset, actx, tree, -1); } else { offset=dissect_gsm_map_sm_RoutingInfoForSM_Arg(FALSE, tvb, offset, actx, tree, -1); } break; case 46: /*mo-forwardSM(v3) or ForwardSM(v1/v2)*/ if (application_context_version == 3) offset=dissect_gsm_map_sm_MO_ForwardSM_Arg(FALSE, tvb, offset, actx, tree, -1); else { offset=dissect_gsm_old_ForwardSM_Arg(FALSE, tvb, offset, actx, tree, -1); } break; case 47: /*reportSM-DeliveryStatus*/ offset=dissect_gsm_map_sm_ReportSM_DeliveryStatusArg(FALSE, tvb, offset, actx, tree, -1); break; case 48: /*noteSubscriberPresent*/ offset = dissect_gsm_map_IMSI(FALSE, tvb, offset, actx, tree, hf_gsm_map_imsi); break; /* reserved alertServiceCentreWithoutResult (49) * ETS 300 599: December 2000 (GSM 09.02 version 4.19.1) * -- alertServiceCentreWithoutResult must not be used in * -- version greater 1 */ case 49: offset = dissect_gsm_map_sm_AlertServiceCentreArg(FALSE, tvb, offset, actx, tree, -1); break; case 50: /*activateTraceMode*/ offset=dissect_gsm_map_om_ActivateTraceModeArg(FALSE, tvb, offset, actx, tree, -1); break; case 51: /*deactivateTraceMode*/ offset=dissect_gsm_map_om_DeactivateTraceModeArg(FALSE, tvb, offset, actx, tree, -1); break; /* reserved traceSubscriberActivity (52) */ case 53: /* UpdateVcsgLocation 53 */ offset=dissect_gsm_map_ms_UpdateVcsgLocationArg(FALSE, tvb, offset, actx, tree, -1); break; case 54: /*beginSubscriberActivity*/ offset=dissect_gsm_old_BeginSubscriberActivityArg(FALSE, tvb, offset, actx, tree, -1); break; case 55: /*sendIdentification*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_TMSI, hf_gsm_map_tmsi, FALSE, dissect_gsm_map_ms_SendIdentificationArg, -1, TRUE, NULL, -1); break; case 56: /*sendAuthenticationInfo*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_IMSI, hf_gsm_map_imsi, FALSE, dissect_gsm_map_ms_SendAuthenticationInfoArg, -1, TRUE, NULL, -1); break; case 57: /*restoreData*/ offset=dissect_gsm_map_ms_RestoreDataArg(FALSE, tvb, offset, actx, tree, -1); break; case 58: /*sendIMSI*/ offset = dissect_gsm_map_ISDN_AddressString(FALSE, tvb, offset, actx, tree, hf_gsm_map_msisdn); break; case 59: /*processUnstructuredSS-Request*/ offset=dissect_gsm_map_ss_USSD_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 60: /*unstructuredSS-Request*/ offset=dissect_gsm_map_ss_USSD_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 61: /*unstructuredSS-Notify*/ offset=dissect_gsm_map_ss_USSD_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 62: /*AnyTimeSubscriptionInterrogation*/ offset=dissect_gsm_map_ms_AnyTimeSubscriptionInterrogationArg(FALSE, tvb, offset, actx, tree, -1); break; case 63: /*informServiceCentre*/ offset=dissect_gsm_map_sm_InformServiceCentreArg(FALSE, tvb, offset, actx, tree, -1); break; case 64: /*alertServiceCentre*/ offset=dissect_gsm_map_sm_AlertServiceCentreArg(FALSE, tvb, offset, actx, tree, -1); break; case 65: /*AnyTimeModification*/ offset=dissect_gsm_map_ms_AnyTimeModificationArg(FALSE, tvb, offset, actx, tree, -1); break; case 66: /*readyForSM*/ offset=dissect_gsm_map_sm_ReadyForSM_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 67: /*purgeMS*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_IMSI, hf_gsm_map_imsi, FALSE, dissect_gsm_old_PurgeMSArgV2, -1, /*undefined*/ TRUE , dissect_gsm_map_ms_PurgeMS_Arg, -1); break; case 68: /*prepareHandover*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, dissect_gsm_old_PrepareHO_ArgOld, -1, TRUE, dissect_gsm_map_ms_PrepareHO_Arg, -1); break; case 69: /*prepareSubsequentHandover*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, NULL, -1, TRUE, dissect_gsm_map_ms_PrepareSubsequentHO_Arg, -1); break; case 70: /*provideSubscriberInfo*/ offset=dissect_gsm_map_ms_ProvideSubscriberInfoArg(FALSE, tvb, offset, actx, tree, -1); break; case 71: /*anyTimeInterrogation*/ offset=dissect_gsm_map_ms_AnyTimeInterrogationArg(FALSE, tvb, offset, actx, tree, -1); break; case 72: /*ss-InvocationNotificatio*/ offset=dissect_gsm_map_ss_SS_InvocationNotificationArg(FALSE, tvb, offset, actx, tree, -1); break; case 73: /*setReportingState*/ offset=dissect_gsm_map_ch_SetReportingStateArg(FALSE, tvb, offset, actx, tree, -1); break; case 74: /*statusReport*/ offset=dissect_gsm_map_ch_StatusReportArg(FALSE, tvb, offset, actx, tree, -1); break; case 75: /*remoteUserFree*/ offset=dissect_gsm_map_ch_RemoteUserFreeArg(FALSE, tvb, offset, actx, tree, -1); break; case 76: /*registerCC-Entry*/ offset=dissect_gsm_map_ss_RegisterCC_EntryArg(FALSE, tvb, offset, actx, tree, -1); break; case 77: /*eraseCC-Entry*/ offset=dissect_gsm_map_ss_EraseCC_EntryArg(FALSE, tvb, offset, actx, tree, -1); break; case 78: /*secureTransportClass1*/ case 79: /*secureTransportClass1*/ case 80: /*secureTransportClass1*/ case 81: /*secureTransportClass1*/ offset=dissect_gsm_old_SecureTransportArg(FALSE, tvb, offset, actx, tree, -1); break; /* undefined 82 */ case 83: /*provideSubscriberLocation*/ offset=dissect_gsm_map_lcs_ProvideSubscriberLocation_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 84: /*sendGroupCallInfo*/ offset=dissect_gsm_map_gr_SendGroupCallInfoArg(FALSE, tvb, offset, actx, tree, -1); break; case 85: /*sendRoutingInfoForLCS*/ offset=dissect_gsm_map_lcs_RoutingInfoForLCS_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 86: /*subscriberLocationReport*/ offset=dissect_gsm_map_lcs_SubscriberLocationReport_Arg(FALSE, tvb, offset, actx, tree, -1); break; case 87: /*ist-Alert*/ offset=dissect_gsm_map_ch_IST_AlertArg(FALSE, tvb, offset, actx, tree, -1); break; case 88: /*ist-Command*/ offset=dissect_gsm_map_ch_IST_CommandArg(FALSE, tvb, offset, actx, tree, -1); break; case 89: /*noteMM-Event*/ offset=dissect_gsm_map_ms_NoteMM_EventArg(FALSE, tvb, offset, actx, tree, -1); break; case 108: /*SS-protocol lcs-PeriodicTriggeredInvoke*/ offset = dissect_gsm_ss_LCS_PeriodicTriggeredInvokeArg(FALSE, tvb, offset, actx, tree, -1); break; case 109: /*SS-protocol lcs-PeriodicLocationCancellation*/ offset=dissect_gsm_ss_LCS_PeriodicLocationCancellationArg(FALSE, tvb, offset, actx, tree, -1); break; case 110: /*SS-protocol lcs-LocationUpdate*/ offset=dissect_gsm_ss_LCS_LocationUpdateArg(FALSE, tvb, offset, actx, tree, -1); break; case 111: /*SS-protocol lcs-PeriodicLocationRequest*/ offset=dissect_gsm_ss_LCS_PeriodicLocationRequestArg(FALSE, tvb, offset, actx, tree, -1); break; case 112: /*SS-protocol lcs-AreaEventCancellation*/ offset=dissect_gsm_ss_LCS_AreaEventCancellationArg(FALSE, tvb, offset, actx, tree, -1); break; case 113: /*SS-protocol lcs-AreaEventReport*/ offset=dissect_gsm_ss_LCS_AreaEventReportArg(FALSE, tvb, offset, actx, tree, -1); break; case 114: /*SS-protocol lcs-AreaEventRequest*/ offset=dissect_gsm_ss_LCS_AreaEventRequestArg(FALSE, tvb, offset, actx, tree, -1); break; case 115: /*SS-protocol lcs-MOLR*/ offset=dissect_gsm_ss_LCS_MOLRArg(FALSE, tvb, offset, actx, tree, -1); break; case 116: /*SS-protocol lcs-LocationNotification*/ offset=dissect_gsm_ss_LocationNotificationArg(FALSE, tvb, offset, actx, tree, -1); break; case 117: /*SS-protocol callDeflection*/ offset=dissect_gsm_ss_CallDeflectionArg(FALSE, tvb, offset, actx, tree, -1); break; case 118: /*SS-protocol userUserService*/ offset=dissect_gsm_ss_UserUserServiceArg(FALSE, tvb, offset, actx, tree, -1); break; case 119: /*SS-protocol accessRegisterCCEntry*/ offset=dissect_gsm_ss_AccessRegisterCCEntryArg(FALSE, tvb, offset, actx, tree, -1); break; case 120: /*SS-protocol forwardCUG-Info*/ application_context_version = 3; offset=dissect_gsm_ss_ForwardCUG_InfoArg(FALSE, tvb, offset, actx, tree, -1); break; case 121: /*SS-protocol splitMPTY no Argument*/ break; case 122: /*SS-protocol retrieveMPTY no Argument*/ break; case 123: /*SS-protocol holdMPTY no Argument*/ break; case 124: /*SS-protocol buildMPTY no Argument*/ break; case 125: /*SS-protocol forwardChargeAdvice*/ offset=dissect_gsm_ss_ForwardChargeAdviceArg(FALSE, tvb, offset, actx, tree, -1); break; case 126: /*SS-protocol explicitCT no Argument*/ break; default: if(!dissector_try_uint_new(map_prop_arg_opcode_table, (guint8)opcode, tvb, actx->pinfo, tree, TRUE, actx->subtree.top_tree)){ proto_tree_add_expert_format(tree, actx->pinfo, &ei_gsm_map_unknown_invokeData, tvb, offset, -1, "Unknown invokeData %d", opcode); } offset+= tvb_reported_length_remaining(tvb,offset); break; } return offset; } static int dissect_returnResultData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx) { switch(opcode){ case 2: /*updateLocation*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_IMSI, hf_gsm_map_imsi, FALSE, dissect_gsm_map_ms_UpdateLocationRes, -1, TRUE , NULL, -1); break; case 3: /*cancelLocation*/ offset=dissect_gsm_map_ms_CancelLocationRes(FALSE, tvb, offset, actx, tree, -1); break; case 4: /*provideRoamingNumber*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_ISDN_AddressString, hf_gsm_map_msisdn, FALSE, dissect_gsm_map_ch_ProvideRoamingNumberRes, -1, TRUE , NULL, -1);/*undefined*/ break; case 5: /*noteSubscriberDataModified*/ offset=dissect_gsm_map_ms_NoteSubscriberDataModifiedRes(FALSE, tvb, offset, actx, tree, -1); break; case 6: /*resumeCallHandling*/ offset=dissect_gsm_map_ch_ResumeCallHandlingRes(FALSE, tvb, offset, actx, tree, -1); break; case 7: /*insertSubscriberData*/ offset=dissect_gsm_map_ms_InsertSubscriberDataRes(FALSE, tvb, offset, actx, tree, -1); break; case 8: /*deleteSubscriberData*/ offset=dissect_gsm_map_ms_DeleteSubscriberDataRes(FALSE, tvb, offset, actx, tree, -1); break; case 9: /*sendParameters*/ offset = dissect_gsm_old_SentParameterList(FALSE, tvb, offset, actx, tree, -1); break; case 10: /*registerSS*/ offset=dissect_gsm_map_ss_SS_Info(FALSE, tvb, offset, actx, tree, -1); break; case 11: /*eraseSS*/ offset=dissect_gsm_map_ss_SS_Info(FALSE, tvb, offset, actx, tree, -1); break; case 12: /*activateSS*/ offset=dissect_gsm_map_ss_SS_Info(FALSE, tvb, offset, actx, tree, -1); break; case 13: /*deactivateSS*/ offset=dissect_gsm_map_ss_SS_Info(FALSE, tvb, offset, actx, tree, -1); break; case 14: /*interrogateSS*/ offset=dissect_gsm_map_ss_InterrogateSS_Res(FALSE, tvb, offset, actx, tree, -1); break; case 15: /*authenticationFailureReport*/ offset=dissect_gsm_map_ms_AuthenticationFailureReportRes(FALSE, tvb, offset, actx, tree, -1); break; case 17: /*registerPassword*/ /* change hf_gsm_map_ss_Code to something with password */ offset=dissect_gsm_old_NewPassword(FALSE, tvb, offset, actx, tree, hf_gsm_map_ss_Code); break; case 18: /*getPassword*/ offset=dissect_gsm_old_CurrentPassword(FALSE, tvb, offset, actx, tree, hf_gsm_map_currentPassword); break; case 19: /* SS-Protocol processUnstructuredSS-Data (19) */ offset=dissect_gsm_ss_SS_UserData(FALSE, tvb, offset, actx, tree, hf_gsm_map_ss_SS_UserData); break; case 20: /*releaseResources*/ offset=dissect_gsm_map_ch_ReleaseResourcesRes(FALSE, tvb, offset, actx, tree, -1); break; case 21: /*mt-ForwardSM-VGCS*/ offset=dissect_gsm_map_sm_MT_ForwardSM_VGCS_Res(FALSE, tvb, offset, actx, tree, -1); break; case 22: /*sendRoutingInfo*/ if (application_context_version == 3){ /* If the tag is missing use SendRoutingInfoRes_U */ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, dissect_gsm_map_ch_SendRoutingInfoRes_U, -1, TRUE , dissect_gsm_map_ch_SendRoutingInfoRes, -1); }else{ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_IMSI, hf_gsm_map_imsi, FALSE, dissect_gsm_old_SendRoutingInfoResV2, -1, TRUE , dissect_gsm_map_ch_SendRoutingInfoRes, -1); } break; case 23: /*updateGprsLocation*/ offset=dissect_gsm_map_ms_UpdateGprsLocationRes(FALSE, tvb, offset, actx, tree, -1); break; case 24: /*sendRoutingInfoForGprs*/ offset=dissect_gsm_map_ms_SendRoutingInfoForGprsRes(FALSE, tvb, offset, actx, tree, -1); break; case 25: /*failureReport*/ offset=dissect_gsm_map_ms_FailureReportRes(FALSE, tvb, offset, actx, tree, -1); break; case 26: /*noteMsPresentForGprs*/ offset=dissect_gsm_map_ms_NoteMsPresentForGprsRes(FALSE, tvb, offset, actx, tree, -1); break; case 29: /*sendEndSignal*/ /* Taken from MAP-MobileServiceOperations{ 0 identified-organization (4) etsi (0) mobileDomain * (0) gsm-Network (1) modules (3) map-MobileServiceOperations (5) version9 (9) } */ offset=dissect_gsm_map_ms_SendEndSignal_Res(FALSE, tvb, offset, actx, tree, -1); break; case 31: /*provideSIWFSNumber*/ offset=dissect_gsm_old_ProvideSIWFSNumberRes(FALSE, tvb, offset, actx, tree, -1); break; case 32: /*provideSIWFSSignallingModify*/ offset=dissect_gsm_old_SIWFSSignallingModifyRes(FALSE, tvb, offset, actx, tree, -1); break; case 36: /*cancelVcsgLocation*/ offset=dissect_gsm_map_ms_CancelVcsgLocationRes(FALSE, tvb, offset, actx, tree, -1); break; case 39: /*prepareGroupCall*/ offset=dissect_gsm_map_gr_PrepareGroupCallRes(FALSE, tvb, offset, actx, tree, -1); break; case 40: /*sendGroupCallEndSignal*/ offset=dissect_gsm_map_gr_SendGroupCallEndSignalRes(FALSE, tvb, offset, actx, tree, -1); break; case 43: /*checkIMEI*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_ms_EquipmentStatus, hf_gsm_map_ms_equipmentStatus, FALSE, dissect_gsm_map_ms_CheckIMEI_Res, -1, TRUE, NULL, -1); break; case 44: /*mt-forwardSM*/ offset=dissect_gsm_map_sm_MT_ForwardSM_Res(FALSE, tvb, offset, actx, tree, -1); break; case 45: /*sendRoutingInfoForSM*/ if (application_context_version < 3) { offset=dissect_gsm_old_RoutingInfoForSM_ResV2(FALSE, tvb, offset, actx, tree, -1); } else { offset=dissect_gsm_map_sm_RoutingInfoForSM_Res(FALSE, tvb, offset, actx, tree, -1); } break; case 46: /*mo-forwardSM*/ offset=dissect_gsm_map_sm_MO_ForwardSM_Res(FALSE, tvb, offset, actx, tree, -1); break; case 47: /*reportSM-DeliveryStatus*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_ISDN_AddressString, hf_gsm_map_sm_storedMSISDN, FALSE, dissect_gsm_map_sm_ReportSM_DeliveryStatusRes, -1, FALSE, NULL, -1);/*undefined*/ break; case 48: /*noteSubscriberPresent*/ break; case 50: /*activateTraceMode*/ offset=dissect_gsm_map_om_ActivateTraceModeRes(FALSE, tvb, offset, actx, tree, -1); break; case 51: /*deactivateTraceMode*/ offset=dissect_gsm_map_om_DeactivateTraceModeRes(FALSE, tvb, offset, actx, tree, -1); break; case 53: /* UpdateVcsgLocation 53 */ offset=dissect_gsm_map_ms_UpdateVcsgLocationRes(FALSE, tvb, offset, actx, tree, -1); break; case 55: /*sendIdentification */ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_IMSI, hf_gsm_map_imsi, FALSE, dissect_gsm_old_SendIdentificationResV2, -1,/*undefined*/ TRUE, dissect_gsm_map_ms_SendIdentificationRes, -1); break; case 56: /*sendAuthenticationInfo*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, dissect_gsm_old_SendAuthenticationInfoResOld, -1, TRUE , dissect_gsm_map_ms_SendAuthenticationInfoRes, -1); break; case 57: /*restoreData*/ offset=dissect_gsm_map_ms_RestoreDataRes(FALSE, tvb, offset, actx, tree, -1); break; case 58: /*sendIMSI*/ offset=dissect_gsm_map_IMSI(FALSE, tvb, offset, actx, tree, hf_gsm_map_ms_imsi); break; case 59: /*unstructuredSS-Request*/ offset=dissect_gsm_map_ss_USSD_Res(FALSE, tvb, offset, actx, tree, -1); break; case 60: /*unstructuredSS-Request*/ offset=dissect_gsm_map_ss_USSD_Res(FALSE, tvb, offset, actx, tree, -1); break; case 61: /*unstructuredSS-Notify*/ /* TRUE ? */ proto_tree_add_expert_format(tree, actx->pinfo, &ei_gsm_map_unknown_invokeData, tvb, offset, -1, "Unknown returnResultData blob"); break; case 62: /*AnyTimeSubscriptionInterrogation*/ offset=dissect_gsm_map_ms_AnyTimeSubscriptionInterrogationRes(FALSE, tvb, offset, actx, tree, -1); break; case 64: /*alertServiceCentre*/ /* TRUE */ break; case 65: /*AnyTimeModification*/ offset=dissect_gsm_map_ms_AnyTimeModificationRes(FALSE, tvb, offset, actx, tree, -1); break; case 66: /*readyForSM*/ offset=dissect_gsm_map_sm_ReadyForSM_Res(FALSE, tvb, offset, actx, tree, -1); break; case 67: /*purgeMS*/ offset=dissect_gsm_map_ms_PurgeMS_Res(FALSE, tvb, offset, actx, tree, -1); break; case 68: /*prepareHandover*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, dissect_gsm_old_PrepareHO_ResOld, -1, TRUE , dissect_gsm_map_ms_PrepareHO_Res, -1); break; case 69: /*prepareSubsequentHandover*/ offset=dissect_mc_message(tvb, offset, actx, tree, FALSE, NULL, -1, FALSE, NULL, -1, TRUE , dissect_gsm_map_ms_PrepareSubsequentHO_Res, -1); break; case 70: /*provideSubscriberInfo*/ offset=dissect_gsm_map_ms_ProvideSubscriberInfoRes(FALSE, tvb, offset, actx, tree, -1); break; case 71: /*anyTimeInterrogation*/ offset=dissect_gsm_map_ms_AnyTimeInterrogationRes(FALSE, tvb, offset, actx, tree, -1); break; case 72: /*ss-InvocationNotificatio*/ offset=dissect_gsm_map_ss_SS_InvocationNotificationRes(FALSE, tvb, offset, actx, tree, -1); break; case 73: /*setReportingState*/ offset=dissect_gsm_map_ch_SetReportingStateRes(FALSE, tvb, offset, actx, tree, -1); break; case 74: /*statusReport*/ offset=dissect_gsm_map_ch_StatusReportRes(FALSE, tvb, offset, actx, tree, -1); break; case 75: /*remoteUserFree*/ offset=dissect_gsm_map_ch_RemoteUserFreeRes(FALSE, tvb, offset, actx, tree, -1); break; case 76: /*registerCC-Entry*/ offset=dissect_gsm_map_ss_RegisterCC_EntryRes(FALSE, tvb, offset, actx, tree, -1); break; case 77: /*eraseCC-Entry*/ offset=dissect_gsm_map_ss_EraseCC_EntryRes(FALSE, tvb, offset, actx, tree, -1); break; case 78: /*secureTransportClass1*/ case 79: /*secureTransportClass2*/ case 80: /*secureTransportClass3*/ case 81: /*secureTransportClass4*/ offset=dissect_gsm_old_SecureTransportRes(FALSE, tvb, offset, actx, tree, -1); break; case 83: /*provideSubscriberLocation*/ offset=dissect_gsm_map_lcs_ProvideSubscriberLocation_Res(FALSE, tvb, offset, actx, tree, -1); break; case 84: /*sendGroupCallInfo*/ offset=dissect_gsm_map_gr_SendGroupCallInfoRes(FALSE, tvb, offset, actx, tree, -1); break; case 85: /*sendRoutingInfoForLCS*/ offset=dissect_gsm_map_lcs_RoutingInfoForLCS_Res(FALSE, tvb, offset, actx, tree, -1); break; case 86: /*subscriberLocationReport*/ offset=dissect_gsm_map_lcs_SubscriberLocationReport_Res(FALSE, tvb, offset, actx, tree, -1); break; case 87: /*ist-Alert*/ offset=dissect_gsm_map_ch_IST_AlertRes(FALSE, tvb, offset, actx, tree, -1); break; case 88: /*ist-Command*/ offset=dissect_gsm_map_ch_IST_CommandRes(FALSE, tvb, offset, actx, tree, -1); break; case 89: /*noteMM-Event*/ offset=dissect_gsm_map_ms_NoteMM_EventRes(FALSE, tvb, offset, actx, tree, -1); break; case 108: /*SS-protocol LCS-PeriodicTriggeredInvokeRes*/ offset = dissect_gsm_ss_LCS_PeriodicTriggeredInvokeRes(FALSE, tvb, offset, actx, tree, -1); break; case 109: /*SS-protocol lcs-PeriodicLocationCancellation*/ /* No parameter */ break; case 110: /*SS-protocol lcs-LocationUpdate*/ offset=dissect_gsm_ss_LCS_LocationUpdateRes(FALSE, tvb, offset, actx, tree, -1); break; case 111: /*SS-protocol lcs-PeriodicLocationRequest*/ offset=dissect_gsm_ss_LCS_PeriodicLocationRequestRes(FALSE, tvb, offset, actx, tree, -1); break; case 112: /*SS-protocol lcs-AreaEventCancellation*/ break; case 113: /*SS-protocol lcs-AreaEventReport*/ break; case 114: /*SS-protocol lcs-AreaEventRequest No RESULT data*/ break; case 115: /*SS-protocol lcs-MOLR*/ offset=dissect_gsm_ss_LCS_MOLRRes(FALSE, tvb, offset, actx, tree, -1); break; case 116: /*SS-protocol lcs-LocationNotification*/ offset=dissect_gsm_ss_LocationNotificationRes(FALSE, tvb, offset, actx, tree, -1); break; case 117: /*SS-protocol callDeflection no RESULT*/ break; case 118: /*SS-protocol userUserService no RESULT*/ break; case 119: /*SS-protocol accessRegisterCCEntry*/ offset=dissect_gsm_map_ss_RegisterCC_EntryRes(FALSE, tvb, offset, actx, tree, -1); break; case 120: /*SS-protocol forwardCUG-Info*/ /* No RETURN RESULT*/ break; case 121: /*SS-protocol splitMPTY no RESULT*/ break; case 122: /*SS-protocol retrieveMPTY no RESULT*/ break; case 123: /*SS-protocol holdMPTY no RESULT*/ break; case 124: /*SS-protocol buildMPTY no RESULT*/ break; case 125: /*SS-protocol forwardChargeAdvice no RESULT*/ break; case 126: /*SS-protocol explicitCT no RESULT*/ break; default: if(!dissector_try_uint_new(map_prop_res_opcode_table, (guint8)opcode, tvb, actx->pinfo, tree, TRUE, actx->subtree.top_tree)){ proto_tree_add_expert_format(tree, actx->pinfo, &ei_gsm_map_unknown_invokeData, tvb, offset, -1, "Unknown returnResultData %d", opcode); } offset+= tvb_reported_length_remaining(tvb,offset); break; } return offset; } static int dissect_returnErrorData(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx) { switch(errorCode){ case 1: /* UnknownSubscriberParam */ offset=dissect_gsm_map_er_UnknownSubscriberParam(FALSE, tvb, offset, actx, tree, -1); break; case 4: /* SecureTransportErrorParam */ offset=dissect_gsm_old_SecureTransportErrorParam(FALSE, tvb, offset, actx, tree, -1); break; case 5: /* UnidentifiedSubParam */ offset=dissect_gsm_map_er_UnidentifiedSubParam(FALSE, tvb, offset, actx, tree, -1); break; case 6: /* AbsentSubscriberSM-Param */ offset=dissect_gsm_map_er_AbsentSubscriberSM_Param(FALSE, tvb, offset, actx, tree, -1); break; case 8: /* RoamingNotAllowedParam */ offset=dissect_gsm_map_er_RoamingNotAllowedParam(FALSE, tvb, offset, actx, tree, -1); break; case 9: /* IllegalSubscriberParam */ offset=dissect_gsm_map_er_IllegalSubscriberParam(FALSE, tvb, offset, actx, tree, -1); break; case 10: /* BearerServNotProvParam */ offset=dissect_gsm_map_er_BearerServNotProvParam(FALSE, tvb, offset, actx, tree, -1); break; case 11: /* TeleservNotProvParam */ offset=dissect_gsm_map_er_TeleservNotProvParam(FALSE, tvb, offset, actx, tree, -1); break; case 12: /* IllegalEquipmentParam */ offset=dissect_gsm_map_er_IllegalEquipmentParam(FALSE, tvb, offset, actx, tree, -1); break; case 13: /* CallBarredParam */ offset=dissect_gsm_map_er_CallBarredParam(FALSE, tvb, offset, actx, tree, -1); break; case 14: /* ForwardingViolationParam */ offset=dissect_gsm_map_er_ForwardingViolationParam(FALSE, tvb, offset, actx, tree, -1); break; case 15: /* CUG-RejectParam */ offset=dissect_gsm_map_er_CUG_RejectParam(FALSE, tvb, offset, actx, tree, -1); break; case 16: /* IllegalSS-OperationParam */ offset=dissect_gsm_map_er_IllegalSS_OperationParam(FALSE, tvb, offset, actx, tree, -1); break; case 17: /* SS-ErrorStatus */ offset=dissect_gsm_map_ss_SS_Status(FALSE, tvb, offset, actx, tree, hf_gsm_map_ss_ss_Status); break; case 18: /* SS-NotAvailableParam */ offset=dissect_gsm_map_er_SS_NotAvailableParam(FALSE, tvb, offset, actx, tree, -1); break; case 19: /* SS-SubscriptionViolationParam */ offset=dissect_gsm_map_er_SS_SubscriptionViolationParam(FALSE, tvb, offset, actx, tree, -1); break; case 20: /* SS-IncompatibilityCause */ offset=dissect_gsm_map_er_SS_IncompatibilityCause(FALSE, tvb, offset, actx, tree, -1); break; case 21: /* FacilityNotSupParam */ offset=dissect_gsm_map_er_FacilityNotSupParam(FALSE, tvb, offset, actx, tree, -1); break; case 22: /* OngoingGroupCallParam */ offset=dissect_gsm_map_er_OngoingGroupCallParam(FALSE, tvb, offset, actx, tree, -1); break; case 27: /* AbsentSubscriberParam */ offset=dissect_gsm_map_er_AbsentSubscriberParam(FALSE, tvb, offset, actx, tree, -1); break; case 28: /* IncompatibleTerminalParam */ offset=dissect_gsm_map_er_IncompatibleTerminalParam(FALSE, tvb, offset, actx, tree, -1); break; case 29: /* ShortTermDenialParam */ offset=dissect_gsm_map_er_ShortTermDenialParam(FALSE, tvb, offset, actx, tree, -1); break; case 30: /* LongTermDenialParam */ offset=dissect_gsm_map_er_LongTermDenialParam(FALSE, tvb, offset, actx, tree, -1); break; case 31: /* SubBusyForMT-SMS-Param */ offset=dissect_gsm_map_er_SubBusyForMT_SMS_Param(FALSE, tvb, offset, actx, tree, -1); break; case 32: /* SM-DeliveryFailureCause */ offset = dissect_mc_message(tvb, offset, actx, tree, FALSE, dissect_gsm_map_er_SM_EnumeratedDeliveryFailureCause, hf_gsm_map_er_sm_EnumeratedDeliveryFailureCause, FALSE, dissect_gsm_map_er_SM_DeliveryFailureCause, -1, FALSE, NULL, -1); break; case 33: /* MessageWaitListFullParam */ offset=dissect_gsm_map_er_MessageWaitListFullParam(FALSE, tvb, offset, actx, tree, -1); break; case 34: /* SystemFailureParam */ offset=dissect_gsm_map_er_SystemFailureParam(FALSE, tvb, offset, actx, tree, -1); break; case 35: /* DataMissingParam */ offset=dissect_gsm_map_er_DataMissingParam(FALSE, tvb, offset, actx, tree, -1); break; case 36: /* UnexpectedDataParam */ offset=dissect_gsm_map_er_UnexpectedDataParam(FALSE, tvb, offset, actx, tree, -1); break; case 37: /* PW-RegistrationFailureCause */ offset=dissect_gsm_map_er_PW_RegistrationFailureCause(FALSE, tvb, offset, actx, tree, -1); break; case 39: /* NoRoamingNbParam */ offset=dissect_gsm_map_er_NoRoamingNbParam(FALSE, tvb, offset, actx, tree, -1); break; case 40: /* TracingBufferFullParam */ offset=dissect_gsm_map_er_TracingBufferFullParam(FALSE, tvb, offset, actx, tree, -1); break; case 42: /* TargetCellOutsideGCA-Param */ offset=dissect_gsm_map_er_TargetCellOutsideGCA_Param(FALSE, tvb, offset, actx, tree, -1); break; case 44: /* NumberChangedParam */ offset=dissect_gsm_map_er_NumberChangedParam(FALSE, tvb, offset, actx, tree, -1); break; case 45: /* BusySubscriberParam */ offset=dissect_gsm_map_er_BusySubscriberParam(FALSE, tvb, offset, actx, tree, -1); break; case 46: /* NoSubscriberReplyParam */ offset=dissect_gsm_map_er_NoSubscriberReplyParam(FALSE, tvb, offset, actx, tree, -1); break; case 47: /* ForwardingFailedParam */ offset=dissect_gsm_map_er_ForwardingFailedParam(FALSE, tvb, offset, actx, tree, -1); break; case 48: /* OR-NotAllowedParam */ offset=dissect_gsm_map_er_OR_NotAllowedParam(FALSE, tvb, offset, actx, tree, -1); break; case 49: /* ATI-NotAllowedParam */ offset=dissect_gsm_map_er_ATI_NotAllowedParam(FALSE, tvb, offset, actx, tree, -1); break; case 50: /* NoGroupCallNbParam */ offset=dissect_gsm_map_er_NoGroupCallNbParam(FALSE, tvb, offset, actx, tree, -1); break; case 51: /* ResourceLimitationParam */ offset=dissect_gsm_map_er_ResourceLimitationParam(FALSE, tvb, offset, actx, tree, -1); break; case 52: /* UnauthorizedRequestingNetwork-Param */ offset=dissect_gsm_map_er_UnauthorizedRequestingNetwork_Param(FALSE, tvb, offset, actx, tree, -1); break; case 53: /* UnauthorizedLCSClient-Param */ offset=dissect_gsm_map_er_UnauthorizedLCSClient_Param(FALSE, tvb, offset, actx, tree, -1); break; case 54: /* PositionMethodFailure-Param */ offset=dissect_gsm_map_er_PositionMethodFailure_Param(FALSE, tvb, offset, actx, tree, -1); break; case 58: /* UnknownOrUnreachableLCSClient-Param */ offset=dissect_gsm_map_er_UnknownOrUnreachableLCSClient_Param(FALSE, tvb, offset, actx, tree, -1); break; case 59: /* MM-EventNotSupported-Param */ offset=dissect_gsm_map_er_MM_EventNotSupported_Param(FALSE, tvb, offset, actx, tree, -1); break; case 60: /* ATSI-NotAllowedParam */ offset=dissect_gsm_map_er_ATSI_NotAllowedParam(FALSE, tvb, offset, actx, tree, -1); break; case 61: /* ATM-NotAllowedParam */ offset=dissect_gsm_map_er_ATM_NotAllowedParam(FALSE, tvb, offset, actx, tree, -1); break; case 62: /* InformationNotAvailableParam */ offset=dissect_gsm_map_er_InformationNotAvailableParam(FALSE, tvb, offset, actx, tree, -1); break; default: if(!dissector_try_uint_new(map_prop_err_opcode_table, (guint8)opcode, tvb, actx->pinfo, tree, TRUE, actx->subtree.top_tree)){ proto_tree_add_expert_format(tree, actx->pinfo, &ei_gsm_map_unknown_invokeData, tvb, offset, -1, "Unknown returnErrorData %d", opcode); } offset+= tvb_reported_length_remaining(tvb,offset); break; } return offset; } /* Private extension container for PLMN Data */ static int dissect_gsm_mapext_PlmnContainer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_gsm_old_PlmnContainer_U, NULL, "MAP Ext. Plmn Container"); return dissect_gsm_old_PlmnContainer(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_gsm_map_ericsson_ext_ExtensionType(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_gsm_map_ericsson_ExtensionType, NULL, "Ericsson Extension"); return dissect_gsm_map_ericsson_ExtensionType(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_SriResExtension(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_SriResExtension_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_SriResExtension(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_CanLocArgExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_CanLocArgExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_CanLocArgExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_ATMargExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_ATMargExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_ATMargExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_DTMargExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_DTMargExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_DTMargExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_NumberPorted(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); return dissect_NokiaMAP_Extensions_NumberPorted(FALSE, tvb, 0, &asn1_ctx, parent_tree, -1); } static int dissect_NokiaMAP_ext_ATMresExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_ATMresExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_ATMresExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_AbsentSubscriberExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); return dissect_NokiaMAP_Extensions_AbsentSubscriberExt(FALSE, tvb, 0, &asn1_ctx, parent_tree, -1); } static int dissect_NokiaMAP_ext_SriForSMArgExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_SriForSMArgExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_SriForSMArgExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_ReportSMDelStatArgExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_ReportSMDelStatArgExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_ReportSMDelStatArgExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_UdlArgExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_UdlArgExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_UdlArgExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_RoamNotAllowedExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_RoamNotAllowedExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_RoamNotAllowedExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_MO_ForwardSM_ArgExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_MO_ForwardSM_ArgExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_MO_ForwardSM_ArgExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_ErrOlcmInfoTableExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_ErrOlcmInfoTableExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_ErrOlcmInfoTableExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_RoutingCategoryExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_RoutingCategoryExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_RoutingCategoryExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_AnyTimeModArgExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_AnyTimeModArgExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_AnyTimeModArgExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_AccessTypeExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ return dissect_NokiaMAP_Extensions_AccessTypeExt(FALSE, tvb, 0, &asn1_ctx, parent_tree, -1); } static int dissect_NokiaMAP_ext_AccessSubscriptionListExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ return dissect_NokiaMAP_Extensions_AccessSubscriptionListExt(FALSE, tvb, 0, &asn1_ctx, parent_tree, -1); } static int dissect_NokiaMAP_ext_AllowedServiceData(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ return dissect_NokiaMAP_Extensions_AllowedServiceData(FALSE, tvb, 0, &asn1_ctx, parent_tree, -1); } static int dissect_NokiaMAP_ext_SriExtension(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_SriExtension_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_SriExtension(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ExtraSignalInfo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_ExtraSignalInfo_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_ExtraSignalInfo(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_SS_DataExtension(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_SS_DataExtension_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_SS_DataExtension(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_HOExtension(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_HO_Ext_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_HO_Ext(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_UlResExtension(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_UlResExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_UlResExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_IsdArgExtension(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_IsdArgExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_IsdArgExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_NokiaMAP_ext_DsdArgExt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_tree *tree; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* create display subtree for the protocol */ tree = proto_tree_add_subtree(parent_tree, tvb, 0, -1, ett_NokiaMAP_Extensions_DsdArgExt_U, NULL, "Nokia Extension"); return dissect_NokiaMAP_Extensions_DsdArgExt(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_gsm_map_GSMMAPPDU(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) { char *version_ptr; opcode = 0; if (pref_application_context_version == APPLICATON_CONTEXT_FROM_TRACE) { gsm_map_private_info_t *gsm_map_priv = (gsm_map_private_info_t*)actx->value_ptr; application_context_version = 0; if (gsm_map_priv && gsm_map_priv->tcap_private != NULL){ if (gsm_map_priv->tcap_private->acv==TRUE ){ version_ptr = strrchr((const char*)gsm_map_priv->tcap_private->oid,'.'); if (version_ptr){ ws_strtoi32(version_ptr + 1, NULL, &application_context_version); } } } }else{ application_context_version = pref_application_context_version; } gsmmap_pdu_type = tvb_get_guint8(tvb, offset)&0x0f; /* Get the length and add 2 */ gsm_map_pdu_size = tvb_get_guint8(tvb, offset+1)+2; col_set_str(actx->pinfo->cinfo, COL_INFO, val_to_str_const(gsmmap_pdu_type, gsm_old_Component_vals, "Unknown GSM-MAP Component")); col_append_str(actx->pinfo->cinfo, COL_INFO, " "); offset = dissect_gsm_old_Component(FALSE, tvb, 0, actx, tree, hf_gsm_map_old_Component_PDU); /* offset = dissect_ber_choice(pinfo, tree, tvb, offset, GSMMAPPDU_choice, hf_index, ett_gsm_map_GSMMAPPDU, NULL); */ return offset; } static int dissect_gsm_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data) { proto_item *item=NULL; proto_tree *tree=NULL; /* Used for gsm_map TAP */ static gsm_map_tap_rec_t tap_rec; gint op_idx; asn1_ctx_t asn1_ctx; gsm_map_private_info_t *gsm_map_priv; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM MAP"); asn1_ctx.subtree.top_tree = parent_tree; gsm_map_priv = wmem_new0(pinfo->pool, gsm_map_private_info_t); gsm_map_priv->tcap_private = (struct tcap_private_t *)data; asn1_ctx.value_ptr = gsm_map_priv; /* create display subtree for the protocol */ item = proto_tree_add_item(parent_tree, proto_gsm_map, tvb, 0, -1, ENC_NA); tree = proto_item_add_subtree(item, ett_gsm_map); dissect_gsm_map_GSMMAPPDU(FALSE, tvb, 0, &asn1_ctx, tree, -1); try_val_to_str_idx(opcode, gsm_map_opr_code_strings, &op_idx); if (op_idx != -1) { tap_rec.invoke = (gsmmap_pdu_type == 1) ? TRUE : FALSE; tap_rec.opcode = opcode; tap_rec.size = gsm_map_pdu_size; tap_queue_packet(gsm_map_tap, pinfo, &tap_rec); } return tvb_captured_length(tvb); } static int dissect_gsm_map_sccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data) { proto_item *item=NULL; proto_tree *tree=NULL; /* Used for gsm_map TAP */ static gsm_map_tap_rec_t tap_rec; gint op_idx; asn1_ctx_t asn1_ctx; gsm_map_private_info_t *gsm_map_priv; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM MAP"); asn1_ctx.subtree.top_tree = parent_tree; gsm_map_priv = wmem_new0(pinfo->pool, gsm_map_private_info_t); gsm_map_priv->sccp_msg_info = (sccp_msg_info_t *)data; asn1_ctx.value_ptr = gsm_map_priv; /* create display subtree for the protocol */ item = proto_tree_add_item(parent_tree, proto_gsm_map, tvb, 0, -1, ENC_NA); tree = proto_item_add_subtree(item, ett_gsm_map); dissect_gsm_map_GSMMAPPDU(FALSE, tvb, 0, &asn1_ctx, tree, -1); try_val_to_str_idx(opcode, gsm_map_opr_code_strings, &op_idx); if (op_idx != -1) { tap_rec.invoke = (gsmmap_pdu_type == 1) ? TRUE : FALSE; tap_rec.opcode = opcode; tap_rec.size = gsm_map_pdu_size; tap_queue_packet(gsm_map_tap, pinfo, &tap_rec); } return tvb_captured_length(tvb); } const value_string ssCode_vals[] = { { 0x00, "allSS - all SS" }, { 0x10 ,"allLineIdentificationSS - all line identification SS" }, { 0x11 ,"clip - calling line identification presentation" }, { 0x12 ,"clir - calling line identification restriction" }, { 0x13 ,"colp - connected line identification presentation" }, { 0x14 ,"colr - connected line identification restriction" }, { 0x15 ,"mci - malicious call identification" }, { 0x18 ,"allNameIdentificationSS - all name identification SS" }, { 0x19 ,"cnap - calling name presentation" }, { 0x20 ,"allForwardingSS - all forwarding SS" }, { 0x21 ,"cfu - call forwarding unconditional" }, { 0x28 ,"allCondForwardingSS - all conditional forwarding SS" }, { 0x29 ,"cfb - call forwarding busy" }, { 0x2a ,"cfnry - call forwarding on no reply" }, { 0x2b ,"cfnrc - call forwarding on mobile subscriber not reachable" }, { 0x24 ,"cd - call deflection" }, { 0x30 ,"allCallOfferingSS - all call offering SS includes also all forwarding SS" }, { 0x31 ,"ect - explicit call transfer" }, { 0x32 ,"mah - mobile access hunting" }, { 0x40 ,"allCallCompletionSS - all Call completion SS" }, { 0x41 ,"cw - call waiting" }, { 0x42 ,"hold - call hold" }, { 0x43 ,"ccbs-A - completion of call to busy subscribers, originating side" }, { 0x44 ,"ccbs-B - completion of call to busy subscribers, destination side" }, { 0x45 ,"mc - multicall" }, { 0x50 ,"allMultiPartySS - all multiparty SS" }, { 0x51 ,"multiPTY - multiparty" }, { 0x60 ,"allCommunityOfInterestSS - all community of interest SS" }, { 0x61 ,"cug - closed user group" }, { 0x70 ,"allChargingSS - all charging SS" }, { 0x71 ,"aoci - advice of charge information" }, { 0x72 ,"aocc - advice of charge charging" }, { 0x80 ,"allAdditionalInfoTransferSS - all additional information transfer SS" }, { 0x81 ,"uus1 - UUS1 user-to-user signalling" }, { 0x82 ,"uus2 - UUS2 user-to-user signalling" }, { 0x83 ,"uus3 - UUS3 user-to-user signalling" }, { 0x90 ,"allCallRestrictionSS - all Callrestriction SS" }, { 0x91 ,"barringOfOutgoingCalls" }, { 0x92 ,"baoc - barring of all outgoing calls" }, { 0x93 ,"boic - barring of outgoing international calls" }, { 0x94 ,"boicExHC - barring of outgoing international calls except those directed to the home PLMN" }, { 0x99 ,"barringOfIncomingCalls" }, { 0x9a ,"baic - barring of all incoming calls" }, { 0x9b ,"bicRoam - barring of incoming calls when roaming outside home PLMN Country" }, { 0xf0 ,"allPLMN-specificSS" }, { 0xa0 ,"allCallPrioritySS - all call priority SS" }, { 0xa1 ,"emlpp - enhanced Multilevel Precedence Pre-emption (EMLPP) service" }, { 0xb0 ,"allLCSPrivacyException - all LCS Privacy Exception Classes" }, { 0xb1 ,"universal - allow location by any LCS client" }, { 0xb2 ,"callrelated - allow location by any value added LCS client to which a call is established from the target MS" }, { 0xb3 ,"callunrelated - allow location by designated external value added LCS clients" }, { 0xb4 ,"plmnoperator - allow location by designated PLMN operator LCS clients" }, { 0xb5 ,"serviceType - allow location by LCS clients of a designated LCS service type" }, { 0xc0 ,"allMOLR-SS - all Mobile Originating Location Request Classes" }, { 0xc1 ,"basicSelfLocation - allow an MS to request its own location" }, { 0xc2 ,"autonomousSelfLocation - allow an MS to perform self location without interaction with the PLMN for a predetermined period of time" }, { 0xc3 ,"transferToThirdParty - allow an MS to request transfer of its location to another LCS client" }, { 0xf1 ,"plmn-specificSS-1" }, { 0xf2 ,"plmn-specificSS-2" }, { 0xf3 ,"plmn-specificSS-3" }, { 0xf4 ,"plmn-specificSS-4" }, { 0xf5 ,"plmn-specificSS-5" }, { 0xf6 ,"plmn-specificSS-6" }, { 0xf7 ,"plmn-specificSS-7" }, { 0xf8 ,"plmn-specificSS-8" }, { 0xf9 ,"plmn-specificSS-9" }, { 0xfa ,"plmn-specificSS-a" }, { 0xfb ,"plmn-specificSS-b" }, { 0xfc ,"plmn-specificSS-c" }, { 0xfd ,"plmn-specificSS-d" }, { 0xfe ,"plmn-specificSS-e" }, { 0xff ,"plmn-specificSS-f" }, { 0, NULL } }; static const value_string Teleservice_vals[] = { { 0x00, "allTeleservices" }, { 0x10, "allSpeechTransmissionServices" }, { 0x11, "telephony" }, { 0x12, "emergencyCalls" }, { 0x20, "allShortMessageServices" }, { 0x21, "shortMessageMT-PP" }, { 0x22, "shortMessageMO-PP" }, { 0x60, "allFacsimileTransmissionServices" }, { 0x61, "facsimileGroup3AndAlterSpeech" }, { 0x62, "automaticFacsimileGroup3" }, { 0x63, "facsimileGroup4" }, { 0x70, "allDataTeleservices" }, { 0x80, "allTeleservices-ExceptSMS" }, { 0x90, "allVoiceGroupCallServices" }, { 0x91, "voiceGroupCall" }, { 0x92, "voiceBroadcastCall" }, { 0xd0, "allPLMN-specificTS" }, { 0xd1, "plmn-specificTS-1" }, { 0xd2, "plmn-specificTS-2" }, { 0xd3, "plmn-specificTS-3" }, { 0xd4, "plmn-specificTS-4" }, { 0xd5, "plmn-specificTS-5" }, { 0xd6, "plmn-specificTS-6" }, { 0xd7, "plmn-specificTS-7" }, { 0xd8, "plmn-specificTS-8" }, { 0xd9, "plmn-specificTS-9" }, { 0xda, "plmn-specificTS-A" }, { 0xdb, "plmn-specificTS-B" }, { 0xdc, "plmn-specificTS-C" }, { 0xdd, "plmn-specificTS-D" }, { 0xde, "plmn-specificTS-E" }, { 0xdf, "plmn-specificTS-F" }, { 0, NULL } }; static const value_string Bearerservice_vals[] = { { 0x00, "allBearerServices" }, { 0x10, "allDataCDA-Services" }, { 0x11, "dataCDA-300bps" }, { 0x12, "dataCDA-1200bps" }, { 0x13, "dataCDA-1200-75bps" }, { 0x14, "dataCDA-2400bps" }, { 0x15, "dataCDA-4800bps" }, { 0x16, "dataCDA-9600bps" }, { 0x17, "general-dataCDA" }, { 0x18, "allDataCDS-Services" }, { 0x1A, "dataCDS-1200bps" }, { 0x1C, "dataCDS-2400bps" }, { 0x1D, "dataCDS-4800bps" }, { 0x1E, "dataCDS-9600bps" }, { 0x1F, "general-dataCDS" }, { 0x20, "allPadAccessCA-Services" }, { 0x21, "padAccessCA-300bps" }, { 0x22, "padAccessCA-1200bps" }, { 0x23, "padAccessCA-1200-75bps" }, { 0x24, "padAccessCA-2400bps" }, { 0x25, "padAccessCA-4800bps" }, { 0x26, "padAccessCA-9600bps" }, { 0x27, "general-padAccessCA" }, { 0x28, "allDataPDS-Services" }, { 0x2C, "dataPDS-2400bps" }, { 0x2D, "dataPDS-4800bps" }, { 0x2E, "dataPDS-9600bps" }, { 0x2F, "general-dataPDS" }, { 0x30, "allAlternateSpeech-DataCDA" }, { 0x38, "allAlternateSpeech-DataCDS" }, { 0x40, "allSpeechFollowedByDataCDA" }, { 0x48, "allSpeechFollowedByDataCDS" }, { 0x50, "allDataCircuitAsynchronous" }, { 0x60, "allAsynchronousServices" }, { 0x58, "allDataCircuitSynchronous" }, { 0x68, "allSynchronousServices" }, { 0xD0, "allPLMN-specificBS" }, { 0xD1, "plmn-specificBS-1" }, { 0xD2, "plmn-specificBS-2" }, { 0xD3, "plmn-specificBS-3" }, { 0xD4, "plmn-specificBS-4" }, { 0xD5, "plmn-specificBS-5" }, { 0xD6, "plmn-specificBS-6" }, { 0xD7, "plmn-specificBS-7" }, { 0xD8, "plmn-specificBS-8" }, { 0xD9, "plmn-specificBS-9" }, { 0xDA, "plmn-specificBS-A" }, { 0xDB, "plmn-specificBS-B" }, { 0xDC, "plmn-specificBS-C" }, { 0xDD, "plmn-specificBS-D" }, { 0xDE, "plmn-specificBS-E" }, { 0xDF, "plmn-specificBS-F" }, { 0, NULL } }; /* ForwardingOptions -- bit 8: notification to forwarding party -- 0 no notification -- 1 notification */ static const true_false_string notification_value = { "Notification", "No notification" }; /* -- bit 7: redirecting presentation -- 0 no presentation -- 1 presentation */ static const true_false_string redirecting_presentation_value = { "Presentation", "No presentation" }; /* -- bit 6: notification to calling party -- 0 no notification -- 1 notification */ /* -- bit 5: 0 (unused) -- bits 43: forwarding reason -- 00 ms not reachable -- 01 ms busy -- 10 no reply -- 11 unconditional when used in a SRI Result, -- or call deflection when used in a RCH Argument */ static const value_string forwarding_reason_values[] = { { 0x0, "ms not reachable" }, { 0x1, "ms busy" }, { 0x2, "no reply" }, { 0x3, "unconditional when used in a SRI Result or call deflection when used in a RCH Argument" }, { 0, NULL } }; /* -- bits 21: 00 (unused) */ static const value_string pdp_type_org_values[] = { { 0x0, "ETSI" }, { 0x1, "IETF" }, { 0xf, "Empty PDP type" }, { 0, NULL } }; static const value_string etsi_pdp_type_number_values[] = { { 0x0, "Reserved, used in earlier version of this protocol" }, { 0x1, "PPP" }, { 0, NULL } }; static const value_string ietf_pdp_type_number_values[] = { { 0x21, "IPv4 Address" }, { 0x57, "IPv6 Address" }, { 0, NULL } }; /* ChargingCharacteristics ::= OCTET STRING (SIZE (2)) -- Octets are coded according to 3GPP TS 32.015. -- From 3GPP TS 32.015. -- -- Descriptions for the bits of the flag set: -- -- Bit 1: H (Hot billing) := '00000001'B -- Bit 2: F (Flat rate) := '00000010'B -- Bit 3: P (Prepaid service) := '00000100'B -- Bit 4: N (Normal billing) := '00001000'B -- Bit 5: - (Reserved, set to 0) := '00010000'B -- Bit 6: - (Reserved, set to 0) := '00100000'B -- Bit 7: - (Reserved, set to 0) := '01000000'B -- Bit 8: - (Reserved, set to 0) := '10000000'B */ static const value_string chargingcharacteristics_values[] = { { 0x1, "H (Hot billing)" }, { 0x2, "F (Flat rate)" }, { 0x4, "P (Prepaid service)" }, { 0x8, "N (Normal billing)" }, { 0, NULL } }; /* TAP STAT INFO */ typedef enum { ID_COLUMN, OP_CODE_COLUMN, INVOKES_COLUMN, NUM_BYTES_FWD_COLUMN, AVG_BYTES_FWD_COLUMN, RET_RES_COLUMN, NUM_BYTES_REV_COLUMN, AVG_BYTES_REV_COLUMN, TOT_BYTES_COLUMN, AVG_BYTES_COLUMN } gsm_a_stat_columns; static stat_tap_table_item gsm_map_stat_fields[] = { {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "ID", "%d"}, {TABLE_ITEM_STRING, TAP_ALIGN_LEFT, "Operation Code", "%-25s"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Invokes", "%d"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Num Bytes", "%d"}, {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%1.2f"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Return Result", "%d"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Num Bytes", "%d"}, {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%1.2f"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Total Bytes", "%d"}, {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%1.2f"}, }; static void gsm_map_stat_init(stat_tap_table_ui* new_stat) { const char *table_name = "GSM MAP Operation Statistics"; int num_fields = sizeof(gsm_map_stat_fields)/sizeof(stat_tap_table_item); stat_tap_table* table; guint i; stat_tap_table_item_type items[sizeof(gsm_map_stat_fields)/sizeof(stat_tap_table_item)]; memset(items, 0, sizeof(items)); items[ID_COLUMN].type = TABLE_ITEM_UINT; items[OP_CODE_COLUMN].type = TABLE_ITEM_STRING; items[INVOKES_COLUMN].type = TABLE_ITEM_UINT; items[NUM_BYTES_FWD_COLUMN].type = TABLE_ITEM_UINT; items[AVG_BYTES_FWD_COLUMN].type = TABLE_ITEM_FLOAT; items[RET_RES_COLUMN].type = TABLE_ITEM_UINT; items[NUM_BYTES_REV_COLUMN].type = TABLE_ITEM_UINT; items[AVG_BYTES_REV_COLUMN].type = TABLE_ITEM_FLOAT; items[TOT_BYTES_COLUMN].type = TABLE_ITEM_UINT; items[AVG_BYTES_COLUMN].type = TABLE_ITEM_FLOAT; table = stat_tap_find_table(new_stat, table_name); if (table) { if (new_stat->stat_tap_reset_table_cb) { new_stat->stat_tap_reset_table_cb(table); } return; } table = stat_tap_init_table(table_name, num_fields, 0, NULL); stat_tap_add_table(new_stat, table); /* Add a row for each value type */ for (i = 0; i < GSM_MAP_MAX_NUM_OPR_CODES; i++) { const char *ocs = try_val_to_str(i, gsm_map_opr_code_strings); char *col_str; if (ocs) { col_str = g_strdup(ocs); } else { col_str = ws_strdup_printf("Unknown op code %d", i); } items[ID_COLUMN].value.uint_value = i; items[OP_CODE_COLUMN].value.string_value = col_str; stat_tap_init_table_row(table, i, num_fields, items); } } static tap_packet_status gsm_map_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *gmtr_ptr, tap_flags_t flags _U_) { stat_data_t* stat_data = (stat_data_t*)tapdata; const gsm_map_tap_rec_t *gmtr = (const gsm_map_tap_rec_t *)gmtr_ptr; stat_tap_table* table; stat_tap_table_item_type *invoke_data, *fwd_bytes_data, *result_data, *rev_bytes_data, *avg_data; guint invokes, fwd_bytes, results, rev_bytes; table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, 0); invoke_data = stat_tap_get_field_data(table, gmtr->opcode, INVOKES_COLUMN); fwd_bytes_data = stat_tap_get_field_data(table, gmtr->opcode, NUM_BYTES_FWD_COLUMN); result_data = stat_tap_get_field_data(table, gmtr->opcode, RET_RES_COLUMN); rev_bytes_data = stat_tap_get_field_data(table, gmtr->opcode, NUM_BYTES_REV_COLUMN); if (gmtr->invoke) { invoke_data->value.uint_value++; stat_tap_set_field_data(table, gmtr->opcode, INVOKES_COLUMN, invoke_data); fwd_bytes_data->value.uint_value += gmtr->size; stat_tap_set_field_data(table, gmtr->opcode, NUM_BYTES_FWD_COLUMN, fwd_bytes_data); } else { result_data->value.uint_value++; stat_tap_set_field_data(table, gmtr->opcode, RET_RES_COLUMN, result_data); rev_bytes_data->value.uint_value += gmtr->size; stat_tap_set_field_data(table, gmtr->opcode, NUM_BYTES_REV_COLUMN, rev_bytes_data); } invokes = invoke_data->value.uint_value; fwd_bytes = fwd_bytes_data->value.uint_value; results = result_data->value.uint_value; rev_bytes = rev_bytes_data->value.uint_value; if (gmtr->invoke) { avg_data = stat_tap_get_field_data(table, gmtr->opcode, AVG_BYTES_FWD_COLUMN); avg_data->value.float_value += (float) fwd_bytes / invokes; stat_tap_set_field_data(table, gmtr->opcode, AVG_BYTES_FWD_COLUMN, avg_data); } else { avg_data = stat_tap_get_field_data(table, gmtr->opcode, AVG_BYTES_REV_COLUMN); avg_data->value.float_value += (float) rev_bytes / results; stat_tap_set_field_data(table, gmtr->opcode, AVG_BYTES_REV_COLUMN, avg_data); } avg_data = stat_tap_get_field_data(table, gmtr->opcode, AVG_BYTES_COLUMN); avg_data->value.float_value += (float) (fwd_bytes + rev_bytes) / (invokes + results); stat_tap_set_field_data(table, gmtr->opcode, AVG_BYTES_COLUMN, avg_data); return TAP_PACKET_REDRAW; } static void gsm_map_stat_reset(stat_tap_table* table) { guint element; stat_tap_table_item_type* item_data; for (element = 0; element < table->num_elements; element++) { item_data = stat_tap_get_field_data(table, element, INVOKES_COLUMN); item_data->value.uint_value = 0; stat_tap_set_field_data(table, element, INVOKES_COLUMN, item_data); } } static void gsm_map_stat_free_table_item(stat_tap_table* table _U_, guint row _U_, guint column, stat_tap_table_item_type* field_data) { if (column != OP_CODE_COLUMN) return; g_free((char*)field_data->value.string_value); } /*--- proto_reg_handoff_gsm_map ---------------------------------------*/ static void range_delete_callback(guint32 ssn, gpointer ptr _U_) { if (ssn) { delete_itu_tcap_subdissector(ssn, map_handle); } } static void range_add_callback(guint32 ssn, gpointer ptr _U_) { if (ssn) { add_itu_tcap_subdissector(ssn, map_handle); } } void proto_reg_handoff_gsm_map(void) { static gboolean map_prefs_initialized = FALSE; static range_t *ssn_range; if (!map_prefs_initialized) { map_prefs_initialized = TRUE; ranap_handle = find_dissector_add_dependency("ranap", proto_gsm_map); dtap_handle = find_dissector_add_dependency("gsm_a_dtap", proto_gsm_map); gsm_sms_handle = find_dissector_add_dependency("gsm_sms", proto_gsm_map); bssap_handle = find_dissector_add_dependency("gsm_a_bssmap", proto_gsm_map); oid_add_from_string("itu(0) administration(2) japan(440)","0.2.440" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.1.3", map_handle, proto_gsm_map,"networkLocUpContext-v3"); register_ber_oid_dissector_handle("0.4.0.0.1.0.1.2", map_handle, proto_gsm_map,"networkLocUpContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.1.1", map_handle, proto_gsm_map,"networkLocUpContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.2.3", map_handle, proto_gsm_map,"locationCancellationContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.2.2", map_handle, proto_gsm_map,"locationCancellationContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.2.1", map_handle, proto_gsm_map,"locationCancellationContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.3.3", map_handle, proto_gsm_map,"roamingNumberEnquiryContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.3.2", map_handle, proto_gsm_map,"roamingNumberEnquiryContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.3.1", map_handle, proto_gsm_map,"roamingNumberEnquiryContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.4.3", map_handle, proto_gsm_map,"istAlertingContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.5.3", map_handle, proto_gsm_map,"locationInfoRetrievalContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.5.2", map_handle, proto_gsm_map,"locationInfoRetrievalContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.5.1", map_handle, proto_gsm_map,"locationInfoRetrievalContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.6.4", map_handle, proto_gsm_map,"callControlTransferContext-v4" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.6.3", map_handle, proto_gsm_map,"callControlTransferContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.7.3", map_handle, proto_gsm_map,"reportingContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.8.3", map_handle, proto_gsm_map,"callCompletionContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.9.3", map_handle, proto_gsm_map,"serviceTerminationContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.10.2", map_handle, proto_gsm_map,"resetContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.10.1", map_handle, proto_gsm_map,"resetContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.11.3", map_handle, proto_gsm_map,"handoverControlContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.11.2", map_handle, proto_gsm_map,"handoverControlContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.11.1", map_handle, proto_gsm_map,"handoverControlContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.12.3", map_handle, proto_gsm_map,"sIWFSAllocationContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.13.3", map_handle, proto_gsm_map,"equipmentMngtContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.13.2", map_handle, proto_gsm_map,"equipmentMngtContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.13.1", map_handle, proto_gsm_map,"equipmentMngtContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.14.3", map_handle, proto_gsm_map,"infoRetrievalContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.14.2", map_handle, proto_gsm_map,"infoRetrievalContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.14.1", map_handle, proto_gsm_map,"infoRetrievalContext-v1" ); /* fallback to infoRetrieval(14) version1(1) and not interVlrInfoRetrieval(15) version1(1) */ /*register_ber_oid_dissector_handle("0.4.0.0.1.0.15.1", map_handle, proto_gsm_map,"map-ac interVlrInfoRetrieval(15) version1(1)" );*/ register_ber_oid_dissector_handle("0.4.0.0.1.0.15.2", map_handle, proto_gsm_map,"interVlrInfoRetrievalContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.15.3", map_handle, proto_gsm_map,"interVlrInfoRetrievalContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.16.3", map_handle, proto_gsm_map,"subscriberDataMngtContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.16.2", map_handle, proto_gsm_map,"subscriberDataMngtContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.16.1", map_handle, proto_gsm_map,"subscriberDataMngtContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.17.3", map_handle, proto_gsm_map,"tracingContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.17.2", map_handle, proto_gsm_map,"tracingContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.17.1", map_handle, proto_gsm_map,"tracingContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.18.2", map_handle, proto_gsm_map,"networkFunctionalSsContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.18.1", map_handle, proto_gsm_map,"networkFunctionalSsContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.19.2", map_handle, proto_gsm_map,"networkUnstructuredSsContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.20.3", map_handle, proto_gsm_map,"shortMsgGatewayContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.20.2", map_handle, proto_gsm_map,"shortMsgGatewayContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.20.1", map_handle, proto_gsm_map,"shortMsgGatewayContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.21.3", map_handle, proto_gsm_map,"shortMsgMO-RelayContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.21.2", map_handle, proto_gsm_map,"shortMsgMO-RelayContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.21.1", map_handle, proto_gsm_map,"shortMsgRelayContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.22.3", map_handle, proto_gsm_map,"subscriberDataModificationNotificationContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.23.2", map_handle, proto_gsm_map,"shortMsgAlertContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.23.1", map_handle, proto_gsm_map,"shortMsgAlertContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.24.3", map_handle, proto_gsm_map,"mwdMngtContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.24.2", map_handle, proto_gsm_map,"mwdMngtContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.24.1", map_handle, proto_gsm_map,"mwdMngtContext-v1" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.25.3", map_handle, proto_gsm_map,"shortMsgMT-RelayContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.25.2", map_handle, proto_gsm_map,"shortMsgMT-RelayContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.26.2", map_handle, proto_gsm_map,"imsiRetrievalContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.27.2", map_handle, proto_gsm_map,"msPurgingContext-v2" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.27.3", map_handle, proto_gsm_map,"msPurgingContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.28.3", map_handle, proto_gsm_map,"subscriberInfoEnquiryContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.29.3", map_handle, proto_gsm_map,"anyTimeInfoEnquiryContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.31.3", map_handle, proto_gsm_map,"groupCallControlContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.32.3", map_handle, proto_gsm_map,"gprsLocationUpdateContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.33.4", map_handle, proto_gsm_map,"gprsLocationInfoRetrievalContext-v4" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.33.3", map_handle, proto_gsm_map,"gprsLocationInfoRetrievalContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.34.3", map_handle, proto_gsm_map,"failureReportContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.35.3", map_handle, proto_gsm_map,"gprsNotifyContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.36.3", map_handle, proto_gsm_map,"ss-InvocationNotificationContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.37.3", map_handle, proto_gsm_map,"locationSvcGatewayContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.38.3", map_handle, proto_gsm_map,"locationSvcEnquiryContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.39.3", map_handle, proto_gsm_map,"authenticationFailureReportContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.40.3", map_handle, proto_gsm_map,"secureTransportHandlingContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.41.3", map_handle, proto_gsm_map,"shortMsgMT-Relay-VGCS-Context-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.42.3", map_handle, proto_gsm_map,"mm-EventReportingContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.43.3", map_handle, proto_gsm_map,"anyTimeInfoHandlingContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.44.3", map_handle, proto_gsm_map,"resourceManagementContext-v3" ); register_ber_oid_dissector_handle("0.4.0.0.1.0.45.3", map_handle, proto_gsm_map,"groupCallInfoRetrievalContext-v3" ); /* Private extension container */ register_ber_oid_dissector("1.3.12.2.1006.53.2.1.3", dissect_gsm_mapext_PlmnContainer, proto_gsm_map,"alcatel-E10-MAP-extension-PlmnContainer" ); register_ber_oid_dissector("0.34.0",dissect_NokiaMAP_ext_IsdArgExtension,proto_gsm_map,"Nokia ISD Extension"); register_ber_oid_dissector("0.34.1",dissect_NokiaMAP_ext_DsdArgExt,proto_gsm_map,"Nokia Dsd Extension"); register_ber_oid_dissector("0.34.2",dissect_NokiaMAP_ext_UlResExtension,proto_gsm_map,"Nokia Location Update Extension"); register_ber_oid_dissector("0.34.4",dissect_NokiaMAP_ext_SS_DataExtension,proto_gsm_map,"Nokia SS Data Extension"); register_ber_oid_dissector("0.34.5",dissect_NokiaMAP_ext_SriExtension,proto_gsm_map,"Nokia SRI Request Extension"); register_ber_oid_dissector("0.34.6",dissect_NokiaMAP_ExtraSignalInfo,proto_gsm_map,"Nokia ExtraSignalInfo Extension"); register_ber_oid_dissector("0.34.7",dissect_NokiaMAP_ext_SriResExtension,proto_gsm_map,"Nokia SRI Response Extension"); register_ber_oid_dissector("0.34.10",dissect_NokiaMAP_ext_CanLocArgExt,proto_gsm_map,"Nokia Cancel Location Extension"); register_ber_oid_dissector("0.34.11",dissect_NokiaMAP_ext_ATMargExt,proto_gsm_map,"Nokia ATM Extension"); register_ber_oid_dissector("0.34.12",dissect_NokiaMAP_ext_DTMargExt,proto_gsm_map,"Nokia DTM Extension"); register_ber_oid_dissector("0.34.13",dissect_NokiaMAP_ext_NumberPorted,proto_gsm_map,"Nokia NumberPorted Extension"); register_ber_oid_dissector("0.34.15",dissect_NokiaMAP_ext_HOExtension,proto_gsm_map,"Nokia HandOver Extension"); register_ber_oid_dissector("0.34.16",dissect_NokiaMAP_ext_ATMresExt,proto_gsm_map,"Nokia ATMres Extension"); register_ber_oid_dissector("0.34.17",dissect_NokiaMAP_ext_AbsentSubscriberExt,proto_gsm_map,"Nokia AbsentSubscriber Extension"); register_ber_oid_dissector("0.34.18",dissect_NokiaMAP_ext_SriForSMArgExt,proto_gsm_map,"Nokia SriForSM Extension"); register_ber_oid_dissector("0.34.19",dissect_NokiaMAP_ext_ReportSMDelStatArgExt,proto_gsm_map,"Nokia ReportSMDelStatt Extension"); register_ber_oid_dissector("0.34.20",dissect_NokiaMAP_ext_UdlArgExt,proto_gsm_map,"Nokia Udl Extension"); register_ber_oid_dissector("0.34.21",dissect_NokiaMAP_ext_RoamNotAllowedExt,proto_gsm_map,"Nokia RoamNotAllowed Extension"); register_ber_oid_dissector("0.34.22",dissect_NokiaMAP_ext_MO_ForwardSM_ArgExt,proto_gsm_map,"Nokia MO-ForwardSM Extension"); register_ber_oid_dissector("0.34.23",dissect_NokiaMAP_ext_ErrOlcmInfoTableExt,proto_gsm_map,"Nokia ErrOlcmInfoTable Extension"); register_ber_oid_dissector("0.34.25",dissect_NokiaMAP_ext_RoutingCategoryExt,proto_gsm_map,"Nokia Routing Category Extension"); register_ber_oid_dissector("0.34.26",dissect_NokiaMAP_ext_AnyTimeModArgExt,proto_gsm_map,"Nokia AnyTimeMod Extension"); register_ber_oid_dissector("1.3.12.2.1107.3.66.1.1",dissect_NokiaMAP_ext_AccessTypeExt,proto_gsm_map,"Nokia AccessTypeExt Extension"); register_ber_oid_dissector("1.3.12.2.1107.3.66.1.3",dissect_NokiaMAP_ext_AccessSubscriptionListExt,proto_gsm_map,"Nokia AccessSubscriptionListExt Extension"); register_ber_oid_dissector("1.3.12.2.1107.3.66.1.6",dissect_NokiaMAP_ext_AllowedServiceData,proto_gsm_map,"Nokia AllowedServiceData Extension"); register_ber_oid_dissector("1.2.826.0.1249.58.1.0",dissect_gsm_map_ericsson_ext_ExtensionType,proto_gsm_map,"Ericsson ExtensionType Extension"); } else { range_foreach(ssn_range, range_delete_callback, NULL); wmem_free(wmem_epan_scope(), ssn_range); } ssn_range = range_copy(wmem_epan_scope(), global_ssn_range); range_foreach(ssn_range, range_add_callback, NULL); } /*--- proto_register_gsm_map -------------------------------------------*/ void proto_register_gsm_map(void) { module_t *gsm_map_module; expert_module_t* expert_gsm_map; /* List of fields */ static hf_register_info hf[] = { { &hf_gsm_map_old_Component_PDU, { "Component", "gsm_map.old.Component", FT_UINT32, BASE_DEC, VALS(gsm_old_Component_vals), 0, NULL, HFILL }}, { &hf_gsm_map_getPassword, { "getPassword", "gsm_map.getPassword", FT_UINT8, BASE_DEC, VALS(gsm_old_GetPasswordArg_vals), 0, NULL, HFILL }}, { &hf_gsm_map_currentPassword, { "currentPassword", "gsm_map.currentPassword", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_gsm_map_extension, { "Extension", "gsm_map.extension", FT_BOOLEAN, 8, TFS(&tfs_no_extension_extension), 0x80, NULL, HFILL }}, { &hf_gsm_map_nature_of_number, { "Nature of number", "gsm_map.nature_of_number", FT_UINT8, BASE_HEX|BASE_EXT_STRING, &gsm_map_nature_of_number_values_ext, 0x70, NULL, HFILL }}, { &hf_gsm_map_number_plan, { "Number plan", "gsm_map.number_plan", FT_UINT8, BASE_HEX|BASE_EXT_STRING, &gsm_map_number_plan_values_ext, 0x0f, NULL, HFILL }}, { &hf_gsm_map_address_digits, { "Address digits", "gsm_map.address.digits", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_gsm_map_TBCD_digits, { "TBCD digits", "gsm_map.tbcd_digits", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_gsm_map_Ss_Status_unused, { "Unused", "gsm_map.unused", FT_UINT8, BASE_HEX, NULL, 0xf0, NULL, HFILL }}, { &hf_gsm_map_Ss_Status_q_bit, { "Q bit", "gsm_map.ss_status_q_bit", FT_BOOLEAN, 8, TFS(&gsm_map_Ss_Status_q_bit_values), 0x08, NULL, HFILL }}, { &hf_gsm_map_Ss_Status_p_bit, { "P bit", "gsm_map.ss_status_p_bit", FT_BOOLEAN, 8, TFS(&gsm_map_Ss_Status_p_values), 0x04, NULL, HFILL }}, { &hf_gsm_map_Ss_Status_r_bit, { "R bit", "gsm_map.ss_status_r_bit", FT_BOOLEAN, 8, TFS(&gsm_map_Ss_Status_r_values), 0x02, NULL, HFILL }}, { &hf_gsm_map_Ss_Status_a_bit, { "A bit", "gsm_map.ss_status_a_bit", FT_BOOLEAN, 8, TFS(&gsm_map_Ss_Status_a_values), 0x01, NULL, HFILL }}, { &hf_gsm_map_notification_to_forwarding_party, { "Notification to forwarding party", "gsm_map.notification_to_forwarding_party", FT_BOOLEAN, 8, TFS(&notification_value), 0x80, NULL, HFILL }}, { &hf_gsm_map_redirecting_presentation, { "Redirecting presentation", "gsm_map.redirecting_presentation", FT_BOOLEAN, 8, TFS(&redirecting_presentation_value), 0x40, NULL, HFILL }}, { &hf_gsm_map_notification_to_calling_party, { "Notification to calling party", "gsm_map.notification_to_calling_party", FT_BOOLEAN, 8, TFS(&notification_value), 0x20, NULL, HFILL }}, { &hf_gsm_map_forwarding_reason, { "Forwarding reason", "gsm_map.forwarding_reason", FT_UINT8, BASE_HEX, VALS(forwarding_reason_values), 0x0c, NULL, HFILL }}, { &hf_gsm_map_pdp_type_org, { "PDP Type Organization", "gsm_map.pdp_type_org", FT_UINT8, BASE_HEX, VALS(pdp_type_org_values), 0x0f, NULL, HFILL }}, { &hf_gsm_map_etsi_pdp_type_number, { "PDP Type Number", "gsm_map.pdp_type_number", FT_UINT8, BASE_HEX, VALS(etsi_pdp_type_number_values), 0, "ETSI PDP Type Number", HFILL }}, { &hf_gsm_map_ietf_pdp_type_number, { "PDP Type Number", "gsm_map.ietf_pdp_type_number", FT_UINT8, BASE_HEX, VALS(ietf_pdp_type_number_values), 0, "IETF PDP Type Number", HFILL }}, { &hf_gsm_map_ext_qos_subscribed_pri, { "Allocation/Retention priority", "gsm_map.ext_qos_subscribed_pri", FT_UINT8, BASE_DEC, NULL, 0xff, NULL, HFILL }}, { &hf_gsm_map_qos_traffic_cls, { "Traffic class", "gsm_map.qos.traffic_cls", FT_UINT8, BASE_DEC, VALS(gsm_a_sm_qos_traffic_cls_vals), 0xe0, NULL, HFILL }}, { &hf_gsm_map_qos_del_order, { "Delivery order", "gsm_map.qos.del_order", FT_UINT8, BASE_DEC, VALS(gsm_a_sm_qos_traffic_cls_vals), 0x18, NULL, HFILL }}, { &hf_gsm_map_qos_del_of_err_sdu, { "Delivery of erroneous SDUs", "gsm_map.qos.del_of_err_sdu", FT_UINT8, BASE_DEC, VALS(gsm_a_sm_qos_del_of_err_sdu_vals), 0x03, NULL, HFILL }}, { &hf_gsm_map_qos_ber, { "Residual Bit Error Rate (BER)", "gsm_map.qos.ber", FT_UINT8, BASE_DEC, VALS(gsm_a_sm_qos_ber_vals), 0xf0, NULL, HFILL }}, { &hf_gsm_map_qos_sdu_err_rat, { "SDU error ratio", "gsm_map.qos.sdu_err_rat", FT_UINT8, BASE_DEC, VALS(gsm_a_sm_qos_sdu_err_rat_vals), 0x0f, NULL, HFILL }}, { &hf_gsm_map_qos_traff_hdl_pri, { "Traffic handling priority", "gsm_map.qos.traff_hdl_pri", FT_UINT8, BASE_DEC, VALS(gsm_a_sm_qos_traff_hdl_pri_vals), 0x03, NULL, HFILL }}, { &hf_gsm_map_qos_max_sdu, { "Maximum SDU size", "gsm_map.qos.max_sdu", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_gsm_map_max_brate_ulink, { "Maximum bit rate for uplink in kbit/s", "gsm_map.qos.max_brate_ulink", FT_UINT32, BASE_DEC, NULL, 0x0, "Maximum bit rate for uplink", HFILL }}, { &hf_gsm_map_max_brate_dlink, { "Maximum bit rate for downlink in kbit/s", "gsm_map.qos.max_brate_dlink", FT_UINT32, BASE_DEC, NULL, 0x0, "Maximum bit rate for downlink", HFILL }}, { &hf_gsm_map_qos_transfer_delay, { "Transfer delay (Raw data see TS 24.008 for interpretation)", "gsm_map.qos.transfer_delay", FT_UINT8, BASE_DEC, NULL, 0xfc, "Transfer delay", HFILL }}, { &hf_gsm_map_guaranteed_max_brate_ulink, { "Guaranteed bit rate for uplink in kbit/s", "gsm_map.qos.brate_ulink", FT_UINT32, BASE_DEC, NULL, 0x0, "Guaranteed bit rate for uplink", HFILL }}, { &hf_gsm_map_guaranteed_max_brate_dlink, { "Guaranteed bit rate for downlink in kbit/s", "gsm_map.qos.brate_dlink", FT_UINT32, BASE_DEC, NULL, 0x0, "Guaranteed bit rate for downlink", HFILL }}, { &hf_gsm_map_GSNAddress_IPv4, { "GSN-Address IPv4", "gsm_map.gsnaddress_ipv4", FT_IPv4, BASE_NONE, NULL, 0, "IPAddress IPv4", HFILL }}, { &hf_gsm_map_GSNAddress_IPv6, { "GSN Address IPv6", "gsm_map.gsnaddress_ipv6", FT_IPv6, BASE_NONE, NULL, 0, "IPAddress IPv6", HFILL }}, { &hf_gsm_map_ranap_service_Handover, { "service-Handover", "gsm_map.ranap.service_Handover", FT_UINT32, BASE_DEC, VALS(ranap_Service_Handover_vals), 0, "gsm_map.ranap.Service_Handover", HFILL }}, { &hf_gsm_map_IntegrityProtectionInformation, { "IntegrityProtectionInformation", "gsm_map.ranap.IntegrityProtectionInformation", FT_NONE, BASE_NONE, NULL, 0, "gsm_map.ranap.IntegrityProtectionInformation", HFILL }}, { &hf_gsm_map_EncryptionInformation, { "EncryptionInformation", "gsm_map.ranap.EncryptionInformation", FT_NONE, BASE_NONE, NULL, 0, "gsm_map.ranap.EncryptionInformation", HFILL }}, { &hf_gsm_map_ss_SS_UserData, { "SS-UserData", "gsm_ss.SS_UserData", FT_STRING, BASE_NONE, NULL, 0, "gsm_map.ss.SS_UserData", HFILL }}, { &hf_gsm_map_cbs_coding_grp, { "Coding Group","gsm_map.cbs.coding_grp", FT_UINT8,BASE_DEC|BASE_EXT_STRING, &gsm_map_cbs_data_coding_scheme_coding_grp_vals_ext, 0xf0, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp0_lang, { "Language","gsm_map.cbs.coding_grp0_lang", FT_UINT8,BASE_DEC|BASE_EXT_STRING, &gsm_map_cbs_coding_grp0_lang_vals_ext, 0x0f, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp1_lang, { "Language","gsm_map.cbs.coding_grp1_lang", FT_UINT8,BASE_DEC|BASE_EXT_STRING, &gsm_map_cbs_coding_grp1_lang_vals_ext, 0x0f, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp2_lang, { "Language","gsm_map.cbs.coding_grp2_lang", FT_UINT8,BASE_DEC|BASE_EXT_STRING, &gsm_map_cbs_coding_grp2_lang_vals_ext, 0x0f, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp3_lang, { "Language","gsm_map.cbs.coding_grp3_lang", FT_UINT8,BASE_DEC|BASE_EXT_STRING, &gsm_map_cbs_coding_grp3_lang_vals_ext, 0x0f, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp4_7_comp, { "Compressed indicator","gsm_map.cbs.coding_grp4_7_comp", FT_BOOLEAN, 8, TFS(&gsm_map_cbs_coding_grp4_7_comp_vals), 0x20, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp4_7_class_ind, { "Message Class present","gsm_map.cbs.coding_grp4_7_class_ind", FT_BOOLEAN, 8, TFS(&gsm_map_cbs_coding_grp4_7_class_ind_vals), 0x10, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp4_7_char_set, { "Character set being used","gsm_map.cbs.coding_grp4_7_char_set", FT_UINT8,BASE_DEC, VALS(gsm_map_cbs_coding_grp4_7_char_set_vals), 0x0c, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp4_7_class, { "Message Class","gsm_map.cbs.coding_grp4_7_class", FT_UINT8,BASE_DEC, VALS(gsm_map_cbs_coding_grp4_7_class_vals), 0x03, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp15_mess_code, { "Message coding","gsm_map.cbs.cbs_coding_grp15_mess_code", FT_UINT8,BASE_DEC, VALS(gsm_map_cbs_coding_grp15_mess_code_vals), 0x04, NULL, HFILL } }, { &hf_gsm_map_cbs_coding_grp15_class, { "Message Class","gsm_map.cbs.gsm_map_cbs_coding_grp15_class", FT_UINT8,BASE_DEC, VALS(gsm_map_cbs_coding_grp15_class_vals), 0x03, NULL, HFILL } }, { &hf_gsm_map_ie_tag, { "Tag", "gsm_map.ie_tag", FT_UINT8, BASE_DEC, VALS(gsm_map_tag_vals), 0, "GSM 04.08 tag", HFILL }}, { &hf_gsm_map_len, { "Length", "gsm_map.length", FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL }}, { &hf_gsm_map_disc_par, { "Discrimination parameter", "gsm_map.disc_par", FT_UINT8, BASE_DEC, VALS(gsm_map_disc_par_vals), 0, NULL, HFILL }}, { &hf_gsm_map_dlci, { "DLCI", "gsm_map.dlci", FT_UINT8, BASE_DEC, NULL, 0, "Data Link Connection Indicator", HFILL }}, { &hf_gsm_apn_str, { "APN", "gsm_map.apn_str", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_gsm_map_ericsson_locationInformation_rat, { "RAT", "gsm_map.ericsson.locationInformation.rat", FT_UINT8, BASE_DEC, VALS(gsm_map_ericsson_locationInformation_rat_vals), 0, "Radio Access Technology", HFILL }}, { &hf_gsm_map_ericsson_locationInformation_lac, { "LAC", "gsm_map.ericsson.locationInformation.lac", FT_UINT16, BASE_DEC_HEX, NULL, 0, "Location Area Code", HFILL }}, { &hf_gsm_map_ericsson_locationInformation_ci, { "CI", "gsm_map.ericsson.locationInformation.ci", FT_UINT16, BASE_DEC_HEX, NULL, 0, "Cell Identity", HFILL }}, { &hf_gsm_map_ericsson_locationInformation_sac, { "SAC", "gsm_map.ericsson.locationInformation.sac", FT_UINT16, BASE_DEC_HEX, NULL, 0, "Service Area Code", HFILL }}, { &hf_gsm_map_ussd_string, { "USSD String", "gsm_map.ussd_string", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_gsm_map_spare_bits, { "Spare bit(s)", "gsm_map.spare_bits", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_gsm_map_qos_signalling_ind, { "Signalling indication", "gsm_map.qos.signalling_ind", FT_BOOLEAN, 8, TFS(&gsm_map_qos_signalling_ind_value), 0x10, NULL, HFILL } }, { &hf_gsm_map_qos_source_stat_desc, { "Source statistics description", "gsm_map.qos.source_stat_desc", FT_UINT8, BASE_DEC, NULL, 0x0f, NULL, HFILL } }, { &hf_gsm_map_qos_max_bitrate_upl_ext, { "Maximum bitrate for uplink (extended)", "gsm_map.qos.max_bitrate_upl_ext", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_gsm_map_qos_max_bitrate_downl_ext, { "Maximum bitrate for downlink (extended)", "gsm_map.qos.max_bitrate_downl_ext", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_gsm_map_qos_guar_bitrate_upl_ext, { "Guaranteed bitrate for uplink (extended)", "gsm_map.qos.guar_bitrate_upl_ext", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_gsm_map_qos_guar_bitrate_downl_ext, { "Guaranteed bitrate for downlink (extended)", "gsm_map.qos.guar_bitrate_downl_ext", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, /* { &hf_gsm_map_qos_max_bitrate_upl_ext2, { "Maximum bitrate for uplink (extended-2)", "gsm_map.qos.max_bitrate_upl_ext2", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_gsm_map_qos_max_bitrate_downl_ext2, { "Maximum bitrate for downlink (extended-2)", "gsm_map.qos.max_bitrate_downl_ext2", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_gsm_map_qos_guar_bitrate_upl_ext2, { "Guaranteed bitrate for uplink (extended-2)", "gsm_map.qos.guar_bitrate_upl_ext2", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_gsm_map_qos_guar_bitrate_downl_ext2, { "Guaranteed bitrate for downlink (extended-2)", "gsm_map.qos.guar_bitrate_downl_ext2", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, */ { &hf_gsm_map_earp_pvi, { "PVI Pre-emption Vulnerability", "gsm_map.EARP_pre_emption_par_vulnerability", FT_BOOLEAN, 8, TFS(&tfs_disabled_enabled), 0x01, NULL, HFILL } }, { &hf_gsm_map_earp_pl, { "PL Priority Level", "gsm_map.EARP_priority_level", FT_UINT8, BASE_DEC, NULL, 0x3C, NULL, HFILL } }, { &hf_gsm_map_earp_pci, { "PCI Pre-emption Capability", "gsm_map.EARP_pre_emption_Capability", FT_BOOLEAN, 8, TFS(&tfs_disabled_enabled), 0x40, NULL, HFILL } }, #include "packet-gsm_map-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_gsm_map, &ett_gsm_map_InvokeId, &ett_gsm_map_InvokePDU, &ett_gsm_map_ReturnResultPDU, &ett_gsm_map_ReturnErrorPDU, &ett_gsm_map_ReturnResult_result, &ett_gsm_map_ReturnError_result, &ett_gsm_map_GSMMAPPDU, &ett_gsm_map_ext_qos_subscribed, &ett_gsm_map_pdptypenumber, &ett_gsm_map_RAIdentity, &ett_gsm_map_LAIFixedLength, &ett_gsm_map_isdn_address_string, &ett_gsm_map_geo_desc, &ett_gsm_map_LongSignalInfo, &ett_gsm_map_RadioResourceInformation, &ett_gsm_map_MSNetworkCapability, &ett_gsm_map_MSRadioAccessCapability, &ett_gsm_map_externalsignalinfo, &ett_gsm_map_cbs_data_coding, &ett_gsm_map_GlobalCellId, &ett_gsm_map_GeographicalInformation, &ett_gsm_map_apn_str, &ett_gsm_map_LocationNumber, &ett_gsm_map_ericsson_locationInformation, &ett_gsm_map_extension_data, &ett_gsm_map_tbcd_digits, &ett_gsm_map_ussd_string, &ett_gsm_map_ext2_qos_subscribed, &ett_gsm_map_ext3_qos_subscribed, &ett_gsm_map_e_utranCellGlobalIdentity, &ett_gsm_map_TA_id, &ett_gsm_map_GeodeticInformation, #include "packet-gsm_map-ettarr.c" }; static ei_register_info ei[] = { { &ei_gsm_map_unknown_sequence3, { "gsm_map.unknown.sequence3", PI_UNDECODED, PI_ERROR, "Unknown or not implemented [3] sequence", EXPFILL }}, { &ei_gsm_map_unknown_sequence, { "gsm_map.unknown.sequence", PI_UNDECODED, PI_ERROR, "Unknown or not implemented sequence", EXPFILL }}, { &ei_gsm_map_unknown_parameter, { "gsm_map.unknown.parameter", PI_UNDECODED, PI_ERROR, "Unknown or not implemented parameter", EXPFILL }}, { &ei_gsm_map_unknown_invokeData, { "gsm_map.unknown.invokeData", PI_MALFORMED, PI_WARN, "Unknown invokeData", EXPFILL }}, { &ei_gsm_map_undecoded, { "gsm_map.undecoded", PI_UNDECODED, PI_WARN, "If you want this decoded send the packet to Wireshark-dev", EXPFILL }}, }; static const enum_val_t application_context_modes[] = { {"Use Application Context from the trace", "Use application context from the trace", APPLICATON_CONTEXT_FROM_TRACE}, {"Treat as AC 1", "Treat as AC 1", 1}, {"Treat as AC 2", "Treat as AC 2", 2}, {"Treat as AC 3", "Treat as AC 3", 3}, {NULL, NULL, -1} }; static tap_param gsm_map_stat_params[] = { { PARAM_FILTER, "filter", "Filter", NULL, TRUE } }; static stat_tap_table_ui gsm_map_stat_table = { REGISTER_STAT_GROUP_TELEPHONY_GSM, "MAP Operation", "gsm_map", "gsm_map,operation", gsm_map_stat_init, gsm_map_stat_packet, gsm_map_stat_reset, gsm_map_stat_free_table_item, NULL, sizeof(gsm_map_stat_fields)/sizeof(stat_tap_table_item), gsm_map_stat_fields, sizeof(gsm_map_stat_params)/sizeof(tap_param), gsm_map_stat_params, NULL, 0 }; /* Register protocol */ proto_gsm_map_ms = proto_gsm_map_dialogue = proto_gsm_map = proto_register_protocol(PNAME, PSNAME, PFNAME); map_handle = register_dissector("gsm_map", dissect_gsm_map, proto_gsm_map); register_dissector("gsm_map_sccp", dissect_gsm_map_sccp, proto_gsm_map); /* Register fields and subtrees */ proto_register_field_array(proto_gsm_map, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_gsm_map = expert_register_protocol(proto_gsm_map); expert_register_field_array(expert_gsm_map, ei, array_length(ei)); register_dissector_table("gsm_map.v3.arg.opcode", "GSM_MAP V3 Arg Opcodes", proto_gsm_map, FT_UINT8, BASE_DEC); register_dissector_table("gsm_map.v3.res.opcode", "GSM_MAP V3 Res Opcodes", proto_gsm_map, FT_UINT8, BASE_DEC); map_prop_arg_opcode_table = register_dissector_table("gsm_map.prop.arg.opcode", "GSM_MAP Proprietary Arg Opcodes", proto_gsm_map, FT_UINT8, BASE_DEC); map_prop_res_opcode_table = register_dissector_table("gsm_map.prop.res.opcode", "GSM_MAP Proprietary Res Opcodes", proto_gsm_map, FT_UINT8, BASE_DEC); map_prop_err_opcode_table = register_dissector_table("gsm_map.prop.err.opcode", "GSM_MAP Proprietary Err Opcodes", proto_gsm_map, FT_UINT8, BASE_DEC); gsm_map_tap = register_tap("gsm_map"); #include "packet-gsm_map-dis-tab.c" oid_add_from_string("ericsson-gsm-Map-Ext","1.2.826.0.1249.58.1.0" ); oid_add_from_string("accessTypeNotAllowed-id","1.3.12.2.1107.3.66.1.2"); /*oid_add_from_string("map-ac networkLocUp(1) version3(3)","0.4.0.0.1.0.1.3" ); * * Register our configuration options, particularly our ssn:s * Set default SSNs */ range_convert_str(wmem_epan_scope(), &global_ssn_range, "6-9,145,148-150", MAX_SSN); gsm_map_module = prefs_register_protocol(proto_gsm_map, proto_reg_handoff_gsm_map); prefs_register_range_preference(gsm_map_module, "tcap.ssn", "TCAP SSNs", "TCAP Subsystem numbers used for GSM MAP", &global_ssn_range, MAX_SSN); prefs_register_enum_preference(gsm_map_module, "application.context.version", "Application context version", "How to treat Application context", &pref_application_context_version, application_context_modes, APPLICATON_CONTEXT_FROM_TRACE); prefs_register_bool_preference(gsm_map_module, "ericsson.proprietary.extensions", "Dissect Ericsson proprietary extensions", "When enabled, dissector will use the non 3GPP standard extensions from Ericsson (that can override the standard ones)", &pref_ericsson_proprietary_ext); register_stat_tap_table_ui(&gsm_map_stat_table); } /* * Editor modelines * * Local Variables: * c-basic-offset: 2 * tab-width: 8 * indent-tabs-mode: nil * End: * * ex: set shiftwidth=2 tabstop=8 expandtab: * :indentSize=2:tabSize=8:noTabs=true: */
C/C++
wireshark/epan/dissectors/asn1/gsm_map/packet-gsm_map-template.h
/* packet-gsm_map-template.h * Routines for GSM MAP packet dissection * Copyright 2004 - 2006, Anders Broman <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_GSM_MAP_H #define PACKET_GSM_MAP_H #include "ws_symbol_export.h" /* Defines for the GSM MAP taps */ #define GSM_MAP_MAX_NUM_OPR_CODES 256 typedef struct _gsm_map_tap_rec_t { gboolean invoke; guint32 opcode; guint16 size; } gsm_map_tap_rec_t; #define SMS_ENCODING_NOT_SET 0 #define SMS_ENCODING_7BIT 1 #define SMS_ENCODING_8BIT 2 #define SMS_ENCODING_UCS2 3 #define SMS_ENCODING_7BIT_LANG 4 #define SMS_ENCODING_UCS2_LANG 5 WS_DLL_PUBLIC const value_string gsm_map_opr_code_strings[]; extern const value_string ssCode_vals[]; extern const value_string gsm_map_PDP_Type_Organisation_vals[]; extern const value_string gsm_map_ietf_defined_pdp_vals[]; extern const value_string gsm_map_etsi_defined_pdp_vals[]; guint8 dissect_cbs_data_coding_scheme(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint16 offset); void dissect_gsm_map_msisdn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree); typedef enum { GSM_MAP_SM_RP_OA_NO_ID = 0, GSM_MAP_SM_RP_OA_MSISDN, GSM_MAP_SM_RP_OA_SERVICE_CENTER_ADDRESS } gsm_map_sm_rp_oa_id; typedef enum { GSM_MAP_SM_RP_DA_NO_ID = 0, GSM_MAP_SM_RP_DA_IMSI, GSM_MAP_SM_RP_DA_LMSI, GSM_MAP_SM_RP_DA_SERVICE_CENTER_ADDRESS } gsm_map_sm_rp_da_id; /* structure accessible via p_get_proto_data(wmem_file_scope(), pinfo, proto_gsm_map, 0) */ typedef struct { gsm_map_sm_rp_oa_id sm_rp_oa_id; const gchar *sm_rp_oa_str; gsm_map_sm_rp_da_id sm_rp_da_id; const gchar *sm_rp_da_str; guint32 tcap_src_tid; } gsm_map_packet_info_t; #include "packet-gsm_map-exp.h" #endif /* PACKET_GSM_MAP_H */
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/SS-DataTypes.asn
-- 3GPP TS 24.080 V15.0.0 (2018-06) -- 4.4.2 ASN.1 data types SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Access (2) modules (3) ss-DataTypes (2) version12 (12)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- exports all data types defined in this module IMPORTS SS-Code FROM MAP-SS-Code { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-Code (15) version12 (12)} -- imports MAP-SS-DataTypes SS-Status, USSD-DataCodingScheme, USSD-String, CCBS-Feature -- USSD-DataCodingScheme, USSD-String were introduced because of CNAP. FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version12 (12)} CUG-Index, NotificationToMSUser FROM MAP-MS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MS-DataTypes (11) version12 (12)} maxSignalInfoLength, ISDN-AddressString, ISDN-SubaddressString, AlertingPattern, LCSClientExternalID, AddressString, LCSServiceTypeID, AgeOfLocationInformation, GSN-Address FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version12 (12)} LocationType, DeferredLocationEventType, LCSClientName, LCS-QoS, Horizontal-Accuracy, ResponseTime, Ext-GeographicalInformation, VelocityEstimate, SupportedGADShapes, Add-GeographicalInformation, LCSRequestorID, LCS-ReferenceNumber, LCSCodeword, AreaEventInfo, ReportingPLMNList, PeriodicLDRInfo, SequenceNumber, OccurrenceInfo, IntervalTime FROM MAP-LCS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-LCS-DataTypes (25) version12 (12)} ; -- data types definition SS-UserData ::= IA5String (SIZE (1.. maxSignalInfoLength)) NotifySS-Arg ::= SEQUENCE{ ss-Code [1] SS-Code OPTIONAL, ss-Status [4] SS-Status OPTIONAL, ss-Notification [5] SS-Notification OPTIONAL, callIsWaiting-Indicator [14] NULL OPTIONAL, callOnHold-Indicator [15] CallOnHold-Indicator OPTIONAL, mpty-Indicator [16] NULL OPTIONAL, cug-Index [17] CUG-Index OPTIONAL, clirSuppressionRejected [18] NULL OPTIONAL, ... , ect-Indicator [19] ECT-Indicator OPTIONAL, nameIndicator [20] NameIndicator OPTIONAL, ccbs-Feature [21] CCBS-Feature OPTIONAL, alertingPattern [22] AlertingPattern OPTIONAL, multicall-Indicator [23] Multicall-Indicator OPTIONAL} -- The nameIndicator is defined because of CNAP. Multicall-Indicator ::= ENUMERATED { nbr-SNexceeded (0), nbr-Userexceeded (1)} ForwardChargeAdviceArg ::= SEQUENCE{ ss-Code [0] SS-Code, chargingInformation [1] ChargingInformation, ...} SS-Notification ::= OCTET STRING (SIZE (1)) -- Bit 8 7 6 5 4 00000 (Unused) -- Bit 3 Call is forwarded indication to A-subscriber -- (calling subscriber) -- 0 No information content -- 1 Outgoing call has been forwarded to C -- Bit 2 Call is forwarded indication to B-subscriber -- (forwarding subscriber) -- 0 No information content -- 1 Incoming call has been forwarded to C -- Bit 1 Call is forwarded indication to C-subscriber -- (forwarded-to subscriber) -- 0 No information content -- 1 Incoming call is a forwarded call ChargingInformation ::= SEQUENCE{ e1 [1] E1 OPTIONAL, e2 [2] E2 OPTIONAL, e3 [3] E3 OPTIONAL, e4 [4] E4 OPTIONAL, e5 [5] E5 OPTIONAL, e6 [6] E6 OPTIONAL, e7 [7] E7 OPTIONAL, ...} E1 ::= INTEGER (0..max10TimesUnitsPerTime) max10TimesUnitsPerTime INTEGER ::= 8191 E2 ::= INTEGER (0..max10TimesTimeInterval) max10TimesTimeInterval INTEGER ::= 8191 E3 ::= INTEGER (0..max100TimesScalingFactor) max100TimesScalingFactor INTEGER ::= 8191 E4 ::= INTEGER (0..max10TimesIncrement) max10TimesIncrement INTEGER ::= 8191 E5 ::= INTEGER (0..max10TimesIncrementPerDataInterval) max10TimesIncrementPerDataInterval INTEGER ::= 8191 E6 ::= INTEGER (0..maxNumberOfSegmentsPerDataInterval) maxNumberOfSegmentsPerDataInterval INTEGER ::= 8191 E7 ::= INTEGER (0..max10TimesInitialTime) max10TimesInitialTime INTEGER ::= 8191 CallOnHold-Indicator ::= ENUMERATED { callRetrieved (0), callOnHold (1)} ForwardCUG-InfoArg ::= SEQUENCE { cug-Index [0] CUG-Index OPTIONAL, suppressPrefCUG [1] NULL OPTIONAL, suppressOA [2] NULL OPTIONAL, ...} ECT-Indicator ::= SEQUENCE { ect-CallState [0] ECT-CallState, rdn [1] RDN OPTIONAL, ...} ECT-CallState ::= ENUMERATED { alerting (0), active (1)} NameIndicator ::= SEQUENCE { callingName [0] Name OPTIONAL, ...} Name ::= CHOICE { namePresentationAllowed [0] NameSet, presentationRestricted [1] NULL, nameUnavailable [2] NULL, namePresentationRestricted [3] NameSet} NameSet ::= SEQUENCE { dataCodingScheme [0] USSD-DataCodingScheme, lengthInCharacters [1] INTEGER, nameString [2] USSD-String, ...} -- NameIndicator, Name and NameSet are defined because of CNAP. -- The USSD-DataCodingScheme shall indicate use of the default alphabet through the -- following encoding: -- bit 7 6 5 4 3 2 1 0 -- | 0 0 0 0 | 1 1 1 1| RDN ::= CHOICE { presentationAllowedAddress [0] RemotePartyNumber, presentationRestricted [1] NULL, numberNotAvailableDueToInterworking [2] NULL, presentationRestrictedAddress [3] RemotePartyNumber} RemotePartyNumber ::= SEQUENCE { partyNumber [0] ISDN-AddressString, partyNumberSubaddress [1] ISDN-SubaddressString OPTIONAL, ...} AccessRegisterCCEntryArg ::= SEQUENCE { ...} CallDeflectionArg ::= SEQUENCE { deflectedToNumber [0] AddressString, deflectedToSubaddress [1] ISDN-SubaddressString OPTIONAL, ...} UserUserServiceArg ::= SEQUENCE { uUS-Service [0] UUS-Service, uUS-Required [1] BOOLEAN, ... } UUS-Service ::= ENUMERATED { uUS1 (1), uUS2 (2), uUS3 (3), ... } -- exception handling: -- In case of UUS-Service with any other value, indicated as "UUS required", -- but not understood by the MS, the call will be cleared. LocationNotificationArg ::= SEQUENCE { notificationType [0] NotificationToMSUser, locationType [1] LocationType, lcsClientExternalID [2] LCSClientExternalID OPTIONAL, lcsClientName [3] LCSClientName OPTIONAL, ... , lcsRequestorID [4] LCSRequestorID OPTIONAL, lcsCodeword [5] LCSCodeword OPTIONAL, lcsServiceTypeID [6] LCSServiceTypeID OPTIONAL, deferredLocationExt [7] DeferredLocationExt OPTIONAL } -- The notificationType may only be set to notifyLocationAllowed, -- notifyAndVerify-LocationAllowedIfNoResponse, -- or notifyAndVerify-LocationNotAllowedIfNoResponse. -- The locationEstimateType field of the locationType may only be set to -- currentLocation, currentOrLastKnownLocation, -- notificationVerificationOnly, or activateDeferredLocation. -- The deferredLocationEventType field of the locationType may only be set to -- enteringIntoArea, and/or leavingFromArea, and/or beingInsideArea, -- and/or periodicLDR. -- For LCS location notification of MT-LR for current location, the -- locationEstimateType field of the locationType shall be set to currentLocation. -- For LCS location notification of MT-LR for current or last known location, the -- locationEstimateType field of the locationType shall be set to currentOrLastKnownLocation. -- For the LCS location notification for the LDR of MS available event, -- the locationEstimateType field of the locationType shall be set to currentLocation. -- For LCS location notification for the LDR of change of area event, -- the locationEstimateType field of the locationType shall be set to -- activateDeferredLocation, and the deferredLocationEventType shall be -- set to enteringIntoArea, and/or leavingFromArea, and/or beingInsideArea. -- For the post positioning LCS location notification, the locationEstimateType -- field of the locationType shall be set to notificationVerificationOnly. -- For LCS location notification for the LDR of periodic location event, -- the locationEstimateType field of the locationType shall be set to -- activateDeferredLocation, and the -- deferredLocationEventType shall be set to periodicLDR. -- For LCS location notification for the LDR of the motion event, -- the locationEstimateType field of the locationType shall be set to -- activateDeferredLocation, the deferredLocationEventType shall be omitted -- and the deferredLocationExt shall be set to motionEvent. -- exception handling: -- At reception of an unrecognised notificationType value the receiver shall reject the -- operation with a return error cause of unexpected data value. -- At reception of an unrecognised locationType value the receiver shall reject the -- operation with a return error cause of unexpected data value. -- At reception of an unallowed notificationType value the receiver shall either ignore the -- received operation or reject the operation with a return error cause of unexpected -- data value. -- At reception of an unallowed locationType value the receiver shall either ignore the -- received operation or reject the operation with a return error cause of unexpected -- data value. DeferredLocationExt ::= BIT STRING { motionEvent (0) } (SIZE (1..16)) -- A bit set to one indicates that the corresponding deferred location type is present. -- A bit set to zero indicates that the corresponding deferred location type is absent. LocationNotificationRes ::= SEQUENCE { verificationResponse [0] VerificationResponse OPTIONAL, ...} VerificationResponse::= ENUMERATED { permissionDenied (0), permissionGranted (1), ... } -- exception handling: -- an unrecognized value shall be treated the same as value 0 (permissionDenied) LCS-MOLRArg ::= SEQUENCE { molr-Type [0] MOLR-Type, locationMethod [1] LocationMethod OPTIONAL, lcs-QoS [2] LCS-QoS OPTIONAL, lcsClientExternalID [3] LCSClientExternalID OPTIONAL, mlc-Number [4] ISDN-AddressString OPTIONAL, gpsAssistanceData [5] GPSAssistanceData OPTIONAL, ..., supportedGADShapes [6] SupportedGADShapes OPTIONAL, lcsServiceTypeID [7] LCSServiceTypeID OPTIONAL, ageOfLocationInfo [8] AgeOfLocationInformation OPTIONAL, locationType [9] LocationType OPTIONAL, pseudonymIndicator [10] NULL OPTIONAL, h-gmlc-address [11] GSN-Address OPTIONAL, locationEstimate [12] Ext-GeographicalInformation OPTIONAL, velocityEstimate [13] VelocityEstimate OPTIONAL, referenceNumber [14] LCS-ReferenceNumber OPTIONAL, periodicLDRInfo [15] PeriodicLDRInfo OPTIONAL, locationUpdateRequest [16] NULL OPTIONAL, sequenceNumber [17] SequenceNumber OPTIONAL, terminationCause [18] TerminationCause OPTIONAL, mo-lrShortCircuit [19] NULL OPTIONAL, ganssAssistanceData [20] GANSSAssistanceData OPTIONAL, multiplePositioningProtocolPDUs [21] MultiplePositioningProtocolPDUs OPTIONAL, locationInfo [22] Location-Info OPTIONAL } -- The parameter locationMethod shall be included if and only if the molr-Type is set to value -- deCipheringKeys or assistanceData. -- The parameter gpsAssistanceData shall be included if and only if the molr-Type is set to value -- assistanceData and locationMethod is set to value assistedGPS or assistedGPSandGANSS. -- The parameter ganssAssistanceData shall be included if and only if the molr-Type is set to value -- assistanceData and locationMethod is set to value assistedGANSS or assistedGPSandGANSS. -- supportedGADShapes shall not be included for deferred MO-LR initiation or deferred MO-LR or MT-LR -- responses -- multiplePositioningProtocolPDUs may only be included for E-UTRAN access for an EPC-MO-LR. -- locationMethod shall not be included for E-UTRAN access. -- gpsAssistanceData shall not be included for E-UTRAN access. -- velocityEstimate shall not be included for E-UTRAN access. -- periodicLDRInfo shall not be included for E-UTRAN access. -- locationUpdateRequest shall not be included for E-UTRAN access. -- sequenceNumber shall not be included for E-UTRAN access. -- mo-lrShortCircuit shall not be included for E-UTRAN access. -- ganssAssistanceData shall not be included for E-UTRAN access. -- locationInfo shall be included if available for E-UTRAN access for a periodic and triggered -- event report. MOLR-Type::= ENUMERATED { locationEstimate (0), assistanceData (1), deCipheringKeys (2), ... , deferredMo-lrTTTPInitiation (3), deferredMo-lrSelfLocationInitiation (4), deferredMt-lrOrmo-lrTTTPLocationEstimate (5), deferredMt-lrOrmo-lrCancellation (6), periodicEvent (7), enteringAreaEvent (8), leavingAreaEvent (9), beingInsideAreaEvent (10), motionEvent (11), maximumIntervalExpirationEvent (12) } -- exception handling: -- an unrecognized value shall be rejected by the receiver with a return error cause of -- unexpected data value. -- For E-UTRAN access, only locationEstimate, assistanceData, periodicEvent, -- deferredMt-lrOrmo-lrCancellation, enteringAreaEvent, leavingAreaEvent, beingInsideAreaEvent, -- motionEvent or maximumIntervalExpirationEvent shall be included LocationMethod::= ENUMERATED { msBasedEOTD (0), msAssistedEOTD (1), assistedGPS (2), ..., msBasedOTDOA (3), assistedGANSS (4), assistedGPSandGANSS (5) } -- exception handling: -- When this parameter is received with value msBasedEOTD or msAssistedEOTD and the MS -- is camped on an UMTS Service Area then the receiver shall reject it -- with a return error cause of unexpected data value. -- When this parameter is received with value msBasedOTDOA and the MS -- is camped on a GSM Cell then the receiver shall reject it with a return error cause of -- unexpected data value. -- an unrecognized value shall be rejected by the receiver with a return error cause of -- unexpected data value. GPSAssistanceData::= OCTET STRING (SIZE (1..38)) -- Octets 1 to 38 are coded in the same way as the octets 3 to 7+2n of Requested GPS Data IE -- in 3GPP TS 49.031 [14]. GANSSAssistanceData::= OCTET STRING (SIZE (1..40)) -- Octets 1 to 40 are coded in the same way as the octets 3 to 9+2n of Requested GANSS Data IE -- in 3GPP TS 49.031 [14] . TerminationCause ::= ENUMERATED { subscriberTermination (0), uETermination (1), ...} MultiplePositioningProtocolPDUs ::= SEQUENCE (SIZE (1..maxNumLPPMsg)) OF PositioningProtocolPDU PositioningProtocolPDU ::= OCTET STRING -- PositioningProtocolPDU contains a LPP message defined in 3GPP TS 36.355 [17]. maxNumLPPMsg INTEGER ::= 3 LCS-MOLRRes::= SEQUENCE { locationEstimate [0] Ext-GeographicalInformation OPTIONAL, decipheringKeys [1] DecipheringKeys OPTIONAL, ..., add-LocationEstimate [2] Add-GeographicalInformation OPTIONAL, velocityEstimate [3] VelocityEstimate OPTIONAL, referenceNumber [4] LCS-ReferenceNumber OPTIONAL, h-gmlc-address [5] GSN-Address OPTIONAL, mo-lrShortCircuit [6] NULL OPTIONAL, reportingPLMNList [7] ReportingPLMNList OPTIONAL } -- Parameters locationEstimate or add-LocationEstimate (one but not both) -- shall be included if and only if the -- molr-Type in LocationRequestArg was set to value locationEstimate. -- Parameter add-LocationEstimate shall not be included if the supportedGADShapes -- parameter was not received in the LCS-MOLRArg. -- The locationEstimate and the add-locationEstimate parameters shall not be sent if -- the supportedGADShapes parameter has been received in LCS-MOLRArg -- and the shape encoded in locationEstimate or add-LocationEstimate is not marked -- as supported in supportedGADShapes. In such a case LCS-MOLRArg -- shall be rejected with error FacilityNotSupported with additional indication -- shapeOfLocationEstimateNotSupported. -- Parameter decipheringKeys shall be included if and only if the molr-Type -- in LocationRequestArg was set to value deCipheringKeys. -- Parameter velocityEstimate may only be included if the lcs-QoS in LCS-MOLRarg includes -- velocityRequest -- decipheringKeys shall not be included for E-UTRAN access. -- referenceNumber shall not be included for E-UTRAN access. -- h-gmlc-address shall not be included for E-UTRAN access. -- mo-lrShortCircuit shall not be included for E-UTRAN access. -- reportingPLMNList shall not be included for E-UTRAN access. DecipheringKeys::= OCTET STRING (SIZE (15)) -- Octets in DecipheringKeys are coded in the same way as the octets 3 to 17 of Deciphering Key IE -- in 3GPP TS 49.031 [14]. I.e. these octets contain Current Deciphering Key, Next Deciphering Key and -- Ciphering Key Flag. LCS-AreaEventRequestArg ::= SEQUENCE { referenceNumber [0] LCS-ReferenceNumber, h-gmlc-address [1] GSN-Address, deferredLocationEventType [3] DeferredLocationEventType, areaEventInfo [4] AreaEventInfo, ... } -- the msAvailableValue in the DeferredLocationEventType is not applicable for this procedure LCS-AreaEventReportArg ::= SEQUENCE { referenceNumber [0] LCS-ReferenceNumber, h-gmlc-address [1] GSN-Address, ... } LCS-AreaEventCancellationArg ::= SEQUENCE { referenceNumber [0] LCS-ReferenceNumber, h-gmlc-address [1] GSN-Address, ... } LCS-PeriodicLocationRequestArg ::= SEQUENCE { referenceNumber [0] LCS-ReferenceNumber, periodicLDRInfo [1] PeriodicLDRInfo, lcsClientExternalID [2] LCSClientExternalID, qoS [3] LCS-QoS OPTIONAL, h-gmlc-address [4] GSN-Address OPTIONAL, mo-lrShortCircuit [5] NULL OPTIONAL, reportingPLMNList [6] ReportingPLMNList OPTIONAL, ... } LCS-PeriodicLocationRequestRes ::= SEQUENCE { mo-lrShortCircuit [0] NULL OPTIONAL, ... } LCS-LocationUpdateArg ::= SEQUENCE { referenceNumber [0] LCS-ReferenceNumber OPTIONAL, add-LocationEstimate[1] Add-GeographicalInformation OPTIONAL, velocityEstimate [2] VelocityEstimate OPTIONAL, sequenceNumber [3] SequenceNumber OPTIONAL, ... } -- add-LocationEstimate shall be included if and only if a location estimate was successfully -- transferred towards an External LCS Client or was successfully obtained for UE self location -- velocityEstimate may only be included if add-LocationEstimate is included LCS-LocationUpdateRes ::= SEQUENCE { terminationCause [0] TerminationCause OPTIONAL, ... } LCS-PeriodicLocationCancellationArg ::= SEQUENCE { referenceNumber [0] LCS-ReferenceNumber, h-gmlc-address [1] GSN-Address OPTIONAL, ... } LCS-PeriodicTriggeredInvokeArg ::= SEQUENCE { referenceNumber [0] LCS-ReferenceNumber, h-gmlc-address [1] GSN-Address, qoS [2] LCS-QoS OPTIONAL, reportingPLMNList [3] ReportingPLMNList OPTIONAL, periodicLocation [4] PeriodicLocation OPTIONAL, areaEventReporting [5] AreaEventReporting OPTIONAL, motionEventReporting [6] MotionEventReporting OPTIONAL, ... } -- Only one of periodicLocation, areaEventReporting and motionEventReporting shall be included. -- responseTime and velocityRequest are not applicable in LCS-QoS. -- reportingPLMNList provides a list of PLMNs in which event reporting is allowed. PeriodicLocation ::= SEQUENCE { periodicLDRInfo [0] PeriodicLDRInfo, ... } AreaEventReporting ::= SEQUENCE { deferredLocationEventType [0] DeferredLocationEventType, areaList [1] AreaList, occurrenceInfo [2] OccurrenceInfo OPTIONAL, intervalTime [3] IntervalTime OPTIONAL, maximumInterval [4] MaximumInterval OPTIONAL, samplingInterval [5] SamplingInterval OPTIONAL, duration [6] Duration OPTIONAL, locationInfo [7] Location-Info OPTIONAL, ... } -- msAvailable and periodicLDR in DeferredLocationEventType are not applicable. -- intervalTime and maximumInterval are not applicable when OccurenceInfo is present with -- the value of oneTimeEvent. AreaList ::= SEQUENCE SIZE (1..maxAreas) OF Area maxAreas INTEGER ::= 250 Area ::= SEQUENCE { areaType [0] AreaType, areaIdentification [1] AreaIdentification, ...} AreaType ::= ENUMERATED { trackingArea (0), ecgi (1), ... } AreaIdentification ::= OCTET STRING (SIZE (5..7)) -- The internal structure is defined as follows: -- octet 1 bits 4321 Mobile Country Code 1st digit -- bits 8765 Mobile Country Code 2nd digit -- octet 2 bits 4321 Mobile Country Code 3rd digit -- bits 8765 Mobile Network Code 3rd digit if 3 digit MNC included -- or filler (1111) -- octet 3 bits 4321 Mobile Network Code 1st digit -- bits 8765 Mobile Network Code 2nd digit -- octets 4 and 5 Tracking Area Code for a Tracking Area (bit 8 of octet 4 is the most significant bit and bit 1 of octet 5 the least significant bit) -- octets 4 until 7 E-UTRAN Cell Identity for an ECGI (bit 8 of octet 4 is the most significant bit and bit 5 of octet 7 the least significant bit) MaximumInterval ::= INTEGER (1..86400) -- maximum time interval between consecutive event reports in seconds. SamplingInterval ::= INTEGER (1..3600) -- maximum time interval between consecutive evaluations by a UE of a trigger event, -- in seconds. Duration ::= INTEGER (1..8640000) -- maximum duration of event reporting by a UE, in seconds Location-Info ::= BIT STRING { locationEstimate (0) } (SIZE (1..32)) -- A bit set to one indicates that the corresponding requirement is present. -- A bit set to zero indicates that the corresponding requirement is absent. -- The locationEstimate is a requirement to provide the UE location for an event report to -- the external client, but the location may be provided by either the UE or network. MotionEventReporting ::= SEQUENCE { linearDistance [0] LinearDistance, occurrenceInfo [1] OccurrenceInfo OPTIONAL, intervalTime [2] IntervalTime OPTIONAL, maximumInterval [3] MaximumInterval OPTIONAL, samplingInterval [4] SamplingInterval OPTIONAL, duration [5] Duration OPTIONAL, locationInfo [6] Location-Info OPTIONAL, ... } -- intervalTime and maximumInterval are not applicable when OccurenceInfo is present with -- the value of oneTimeEvent. LinearDistance ::= INTEGER (1..10000) -- the minimum straight line distance moved by a UE to trigger a motion event report, in meters. LCS-PeriodicTriggeredInvokeRes ::= SEQUENCE { ...} END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/SS-Errors.asn
-- 3GPP TS 24.080 V15.0.0 (2018-06) -- 4.3.1 Errors ASN.1 specification -- The following ASN.1 module provides an ASN.1 specification of errors. Errors from MAP are imported in the SS Protocol module in subclause 4.5. The module defines errors by allocating them a local value. For the involved errors the same local values as in MAP are allocated. SS-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Access (2) modules (3) ss-Errors (1) version12 (12)} DEFINITIONS ::= BEGIN IMPORTS ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)}; -- The MAP errors -- unknownSubscriber, bearerServiceNotProvisioned, teleserviceNotProvisioned, -- illegalSS-Operation, ss-ErrorStatus, ss-NotAvailable, ss-SubscriptionViolation, -- ss-Incompatibility, systemFailure, dataMissing, unexpectedDataValue, facilityNotSupported, -- pw-RegistrationFailure, negativePW-Check, callBarred, numberOfPW-AttemptsViolation, -- absentSubscriber, illegalSubscriber, illegalEquipment, ussd-Busy, unknownAlphabet, -- forwardingViolation, forwardingFailed, resourceLimitation -- are imported from MAP-Errors in SS-Protocol module. -- errors definition resourcesNotAvailable ERROR ::= { CODE local:127 } maxNumberOfMPTY-ParticipantsExceeded ERROR ::= { CODE local:126 } invalidDeflectedToNumber ERROR ::= { CODE local:125 } specialServiceCode ERROR ::= { CODE local:124 } deflectionToServedSubscriber ERROR ::= { CODE local:123 } rejectedByNetwork ERROR ::= { CODE local:122 } rejectedByUser ERROR ::= { CODE local:121 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/SS-Operations.asn
-- 3GPP TS 24.080 V15.0.0 (2018-06) -- 4.2 Operation types SS-Operations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Access (2) modules (3) ss-Operations (0) version12 (12)} DEFINITIONS ::= BEGIN EXPORTS -- exports operations -- operations defined in this specification processUnstructuredSS-Data, notifySS, forwardChargeAdvice, forwardCUG-Info, buildMPTY, holdMPTY, retrieveMPTY, splitMPTY, explicitCT, accessRegisterCCEntry, callDeflection, userUserService, lcs-LocationNotification, lcs-MOLR, lcs-AreaEventRequest, lcs-AreaEventReport, lcs-AreaEventCancellation, lcs-PeriodicLocationRequest, lcs-LocationUpdate, lcs-PeriodicLocationCancellation, lcs-PeriodicTriggeredInvoke; IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} -- The MAP operations: -- registerSS, eraseSS, activateSS, deactivateSS, interrogateSS, registerPassword, -- getPassword, processUnstructuredSS-Request, unstructuredSS-Request, unstructuredSS-Notify -- forwardCheckSS-Indication -- are imported from MAP-Operations in SS-Protocol module. -- imports SS-data types NotifySS-Arg, ForwardChargeAdviceArg, ForwardCUG-InfoArg, SS-UserData, AccessRegisterCCEntryArg, CallDeflectionArg, UserUserServiceArg, LocationNotificationArg, LocationNotificationRes, LCS-MOLRArg, LCS-MOLRRes, LCS-AreaEventRequestArg, LCS-AreaEventReportArg, LCS-AreaEventCancellationArg, LCS-PeriodicLocationRequestArg, LCS-PeriodicLocationRequestRes, LCS-LocationUpdateArg, LCS-LocationUpdateRes, LCS-PeriodicLocationCancellationArg, LCS-PeriodicTriggeredInvokeArg, LCS-PeriodicTriggeredInvokeRes FROM SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Access (2) modules (3) ss-DataTypes (2) version12 (12)} -- imports MAP-SS-data types RegisterCC-EntryRes FROM MAP-SS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SS-DataTypes (14) version12 (12)} -- imports MAP-errors illegalSS-Operation, ss-ErrorStatus, ss-NotAvailable, ss-SubscriptionViolation, ss-Incompatibility, systemFailure, facilityNotSupported, callBarred, unexpectedDataValue, shortTermDenial, longTermDenial, dataMissing, forwardingViolation, forwardingFailed, positionMethodFailure, resourceLimitation FROM MAP-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-Errors (10) version12 (12)} -- imports SS-Errors resourcesNotAvailable, maxNumberOfMPTY-ParticipantsExceeded, deflectionToServedSubscriber, invalidDeflectedToNumber, specialServiceCode, rejectedByUser, rejectedByNetwork FROM SS-Errors { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Access (2) modules (3) ss-Errors (1) version12 (12)} ; -- operations definition processUnstructuredSS-Data OPERATION ::= { -- Timer T(PUSSD)= 15s to 30s ARGUMENT SS-UserData RESULT SS-UserData -- optional ERRORS { systemFailure | unexpectedDataValue} CODE local:19 } notifySS OPERATION ::= { ARGUMENT NotifySS-Arg CODE local:16 } forwardChargeAdvice OPERATION ::= { -- Timer T(AoC)= 1s to 40s ARGUMENT ForwardChargeAdviceArg RETURN RESULT TRUE CODE local:125 } forwardCUG-Info OPERATION ::= { ARGUMENT ForwardCUG-InfoArg CODE local:120 } buildMPTY OPERATION ::= { -- Timer T(BuildMPTY)= 5s to 30s RETURN RESULT TRUE ERRORS { illegalSS-Operation | ss-ErrorStatus | ss-NotAvailable | ss-Incompatibility | systemFailure | resourcesNotAvailable | maxNumberOfMPTY-ParticipantsExceeded} CODE local:124 } holdMPTY OPERATION ::= { -- Timer T(HoldMPTY)= 5s to 30s RETURN RESULT TRUE ERRORS { illegalSS-Operation | ss-ErrorStatus | ss-Incompatibility | facilityNotSupported | systemFailure} CODE local:123 } retrieveMPTY OPERATION ::= { -- Timer T(RetrieveMPTY)= 5s to 30s RETURN RESULT TRUE ERRORS { illegalSS-Operation | ss-ErrorStatus | ss-Incompatibility | facilityNotSupported | systemFailure} CODE local:122 } splitMPTY OPERATION ::= { -- Timer T(SplitMPTY)= 5s to 30s RETURN RESULT TRUE ERRORS { illegalSS-Operation | ss-ErrorStatus | ss-Incompatibility | facilityNotSupported | systemFailure} CODE local:121 } explicitCT OPERATION ::= { -- Timer T(ECT)= 5s to 15s RETURN RESULT TRUE ERRORS { illegalSS-Operation | ss-ErrorStatus | ss-NotAvailable | ss-Incompatibility | facilityNotSupported | systemFailure | resourcesNotAvailable | callBarred} CODE local:126 } accessRegisterCCEntry OPERATION ::= { -- Timer T(AccRegCCEntry)= 30s ARGUMENT AccessRegisterCCEntryArg RESULT RegisterCC-EntryRes ERRORS { systemFailure | dataMissing | unexpectedDataValue | callBarred | illegalSS-Operation | ss-ErrorStatus | ss-Incompatibility | shortTermDenial | longTermDenial | facilityNotSupported} CODE local:119 } -- the timer value is defined by T308, see also in TS 24.008 for definition of timer T308 callDeflection OPERATION ::= { -- Timer T(CD)= 30s ARGUMENT CallDeflectionArg RETURN RESULT TRUE ERRORS { illegalSS-Operation | ss-ErrorStatus | ss-NotAvailable | ss-Incompatibility | facilityNotSupported | systemFailure | resourcesNotAvailable | forwardingViolation | callBarred | deflectionToServedSubscriber | invalidDeflectedToNumber | specialServiceCode | forwardingFailed} CODE local:117 } -- the timer value is defined by T305, see also in TS 24.008 for definition of timer T305 -- extensionContainer shall not be used with this operation userUserService OPERATION ::= { -- Timer T(UUS3)= 10s ARGUMENT UserUserServiceArg RETURN RESULT TRUE ERRORS { illegalSS-Operation | ss-ErrorStatus | ss-NotAvailable | ss-Incompatibility | facilityNotSupported | systemFailure | resourcesNotAvailable | rejectedByNetwork | rejectedByUser} CODE local:118 } -- The timer value for UUS3 is 10s; it is applicable only if UUS3 is activated by FACILITY -- message. If UUS service (UUS1, UUS2 or UUS3) is activated by SETUP message, no timers are -- needed. In those cases Return Result or Return Error must be received within certain call -- control messages, see 3GPP TS 24.087. -- extensionContainer shall not be used with this operation. lcs-LocationNotification OPERATION ::= { -- Timer T(LCSN)= 10s to 20s ARGUMENT LocationNotificationArg RESULT LocationNotificationRes ERRORS { systemFailure | unexpectedDataValue} CODE local:116 } lcs-MOLR OPERATION ::= { -- Timer T(LCSL)= 10s to 300s ARGUMENT LCS-MOLRArg RESULT LCS-MOLRRes ERRORS { systemFailure | unexpectedDataValue | dataMissing | facilityNotSupported | ss-SubscriptionViolation | positionMethodFailure} CODE local:115 } lcs-AreaEventRequest OPERATION ::= { -- Timer T(LCSN)= 10s to 20s ARGUMENT LCS-AreaEventRequestArg RETURN RESULT TRUE ERRORS { systemFailure | facilityNotSupported | unexpectedDataValue} CODE local:114 } lcs-AreaEventReport OPERATION ::= { -- Timer T(LCSL)= 10s to 300s ARGUMENT LCS-AreaEventReportArg RETURN RESULT TRUE ERRORS { systemFailure | unexpectedDataValue | facilityNotSupported} CODE local:113 } lcs-AreaEventCancellation OPERATION ::= { -- Timer T(LCSN)= 10s to 20s ARGUMENT LCS-AreaEventCancellationArg RETURN RESULT TRUE ERRORS { systemFailure | facilityNotSupported | unexpectedDataValue} CODE local:112 } lcs-PeriodicLocationRequest OPERATION ::= { -- Timer T(LCSN)= 10s to 20s ARGUMENT LCS-PeriodicLocationRequestArg RESULT LCS-PeriodicLocationRequestRes ERRORS { systemFailure | facilityNotSupported | unexpectedDataValue | dataMissing } CODE local: 111 } lcs-LocationUpdate OPERATION ::= { -- Timer T(LCSN)= 10s to 20s ARGUMENT LCS-LocationUpdateArg RESULT LCS-LocationUpdateRes ERRORS { systemFailure | unexpectedDataValue} CODE local: 110 } lcs-PeriodicLocationCancellation OPERATION ::= { -- Timer T(LCSN)= 10s to 20s ARGUMENT LCS-PeriodicLocationCancellationArg RETURN RESULT TRUE ERRORS { systemFailure | unexpectedDataValue} CODE local: 109 } lcs-PeriodicTriggeredInvoke OPERATION ::= { -- Timer T(LCSN)= 10s to 20s ARGUMENT LCS-PeriodicTriggeredInvokeArg RESULT LCS-PeriodicTriggeredInvokeRes ERRORS { systemFailure | facilityNotSupported | unexpectedDataValue | dataMissing | resourceLimitation } CODE local: 108 } END
ASN.1
wireshark/epan/dissectors/asn1/gsm_map/SS-Protocol.asn
-- 3GPP TS 24.080 V15.0.0 (2018-06) -- 4.5 Operations and errors implementation -- For the actual implementation of supplementary services, operations and errors have to be defined by value. The following ASN.1 module, imports operation from the ASN.1 module described in subclause 4.2 and operations and errors from MAP. SS-Protocol { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Access (2) modules (3) ss-Protocol (3) version12 (12)} DEFINITIONS ::= BEGIN IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} -- imports operations -- imports operation from MAP-MobileServiceOperations forwardCheckSS-Indication FROM MAP-MobileServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-MobileServiceOperations (5) version12 (12)} -- imports operations from MAP-SupplementaryServiceOperations registerSS, eraseSS, activateSS, deactivateSS, interrogateSS, registerPassword, getPassword, processUnstructuredSS-Request, unstructuredSS-Request, unstructuredSS-Notify, eraseCC-Entry FROM MAP-SupplementaryServiceOperations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-SupplementaryServiceOperations (8) version12 (12)} -- imports operations from SS-Operations processUnstructuredSS-Data, notifySS, forwardChargeAdvice, buildMPTY, holdMPTY, retrieveMPTY, splitMPTY, explicitCT, forwardCUG-Info, accessRegisterCCEntry, callDeflection, userUserService, lcs-LocationNotification, lcs-MOLR, lcs-AreaEventRequest, lcs-AreaEventReport, lcs-AreaEventCancellation, lcs-PeriodicLocationRequest, lcs-LocationUpdate, lcs-PeriodicLocationCancellation FROM SS-Operations { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Access (2) modules (3) ss-Operations (0) version12 (12)} ; Supported-SS-Operations OPERATION ::= {forwardCheckSS-Indication | registerSS | eraseSS | activateSS | deactivateSS | interrogateSS | registerPassword | getPassword | processUnstructuredSS-Request | unstructuredSS-Request | unstructuredSS-Notify | eraseCC-Entry | processUnstructuredSS-Data | notifySS | forwardChargeAdvice | buildMPTY | holdMPTY | retrieveMPTY | splitMPTY | explicitCT | forwardCUG-Info | accessRegisterCCEntry | callDeflection | userUserService | lcs-LocationNotification | lcs-MOLR | lcs-AreaEventRequest | lcs-AreaEventReport | lcs-AreaEventCancellation | lcs-PeriodicLocationRequest | lcs-LocationUpdate | lcs-PeriodicLocationCancellation | lcs-PeriodicTriggeredInvoke } END
Text
wireshark/epan/dissectors/asn1/h225/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h225 ) set( PROTO_OPT ) set( EXPORT_FILES ${PROTOCOL_NAME}-exp.cnf ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST H323-MESSAGES.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../h235/h235-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../h245/h245-exp.cnf" ) ASN2WRS()
Configuration
wireshark/epan/dissectors/asn1/h225/h225.cnf
# h225.cnf # H.225 conformation file # Copyright 2004 Anders Broman #.IMPORT ../h235/h235-exp.cnf #.IMPORT ../h245/h245-exp.cnf #---------------------------------------------------------------------------------------- #.EXPORTS ONLY_VALS WS_DLL NO_PROT_PREFIX H323-UU-PDU/h323-message-body FacilityReason GatekeeperRejectReason UnregRequestReason UnregRejectReason BandRejectReason DisengageReason DisengageRejectReason InfoRequestNakReason AdmissionRejectReason LocationRejectReason RegistrationRejectReason #.MODULE_EXPORTS RasMessage EXTERN WS_DLL NonStandardParameter PublicTypeOfNumber PrivateTypeOfNumber AliasAddress NO_PROT_PREFIX PartyNumber PresentationIndicator ScreeningIndicator CallIdentifier ConferenceIdentifier CircuitIdentifier GenericIdentifier GenericData BandWidth TimeToLive TransportAddress AlternateTransportAddresses TransportChannelInfo CallReferenceValue GloballyUniqueID TunnelledProtocol IntegrityMechanism ICV CryptoH323Token TransportQOS FeatureSet CircuitInfo EndpointType SupportedProtocols GatekeeperIdentifier ServiceControlSession ReleaseCompleteReason EXTERN WS_DLL ExtendedAliasAddress_PDU #.END #.PDU H323-UserInformation RasMessage ExtendedAliasAddress #.END #---------------------------------------------------------------------------------------- #.OMIT_ASSIGNMENT EncodedFastStartToken FastStartToken #.END #.VIRTUAL_ASSGN FastStart Setup-UUIE/fastStart #.SET_TYPE Setup-UUIE/fastStart FastStart CallProceeding-UUIE/fastStart FastStart Connect-UUIE/fastStart FastStart Alerting-UUIE/fastStart FastStart Information-UUIE/fastStart FastStart Facility-UUIE/fastStart FastStart Progress-UUIE/fastStart FastStart #.VIRTUAL_ASSGN H245Control H323-UU-PDU/h245Control ParallelH245Control Setup-UUIE/parallelH245Control DialedDigits AliasAddress/dialledDigits #.VIRTUAL_ASSGN DestinationInfo AdmissionRequest/destinationInfo #.SET_TYPE AdmissionRequest/destinationInfo DestinationInfo AdmissionConfirm/destinationInfo DestinationInfo LocationRequest/destinationInfo DestinationInfo LocationConfirm/destinationInfo DestinationInfo #.VIRTUAL_ASSGN H245TransportAddress TransportAddress #.SET_TYPE Setup-UUIE/h245Address H245TransportAddress CallProceeding-UUIE/h245Address H245TransportAddress Connect-UUIE/h245Address H245TransportAddress Alerting-UUIE/h245Address H245TransportAddress Facility-UUIE/h245Address H245TransportAddress Progress-UUIE/h245Address H245TransportAddress #.FIELD_RENAME H245TransportAddress/ipAddress h245IpAddress H245TransportAddress/ipAddress/ip h245Ip H245TransportAddress/ipAddress/port h245IpPort H245TransportAddress/ipSourceRoute h245IpSourceRoute H245TransportAddress/ipSourceRoute/route h245Route H245TransportAddress/ipSourceRoute/routing h245Routing H245TransportAddress/ipxAddress h245IpxAddress H245TransportAddress/ipxAddress/port h245IpxPort H245TransportAddress/ip6Address h245Ip6Address H245TransportAddress/ip6Address/ip h245Ip6 H245TransportAddress/ip6Address/port h245Ip6port DisplayName/language displayName_language Endpoint/remoteExtensionAddress/_item ep_remoteExtensionAddress_item AdmissionConfirm/remoteExtensionAddress/_item ac_remoteExtensionAddress_item #.FIELD_ATTR H245TransportAddress/ipAddress/ip ABBREV=h245Ip H245TransportAddress/ipAddress/port ABBREV=h245IpPort H245TransportAddress/ip6Address/ip ABBREV=h245Ip6 H245TransportAddress/ip6Address/port ABBREV=h245Ip6port H245TransportAddress/ipxAddress/port ABBREV=h245IpxPort TransportAddress/ipSourceRoute/ip ABBREV=src_route_ipV4 TransportAddress/ipSourceRoute/port ABBREV=ipV4_src_port TransportAddress/ipAddress/ip ABBREV=ipV4 TransportAddress/ipAddress/port ABBREV=ipV4_port TransportAddress/ip6Address/ip ABBREV=ipV6 TransportAddress/ip6Address/port ABBREV=ipV6_port TransportAddress/ipxAddress/port ABBREV=ipx_port DisplayName/language ABBREV=displayName_language ExtendedAliasAddress/address ABBREV=extAliasAddress Endpoint/remoteExtensionAddress/_item ABBREV=remoteExtensionAddress.item AdmissionConfirm/remoteExtensionAddress/_item ABBREV=ac_remoteExtensionAddress_item #.VIRTUAL_ASSGN Language Setup-UUIE/language #.SET_TYPE Connect-UUIE/language Language Setup-UUIE/language Language RegistrationRequest/language Language AdmissionConfirm/language Language LocationRequest/language Language #---------------------------------------------------------------------------------------- #.TYPE_RENAME CallCreditServiceControl/callStartingPoint CallCreditServiceControl_callStartingPoint TunnelledProtocol/id TunnelledProtocol_id ServiceControlSession/reason ServiceControlSession_reason RasUsageSpecification/callStartingPoint RasUsageSpecificationcallStartingPoint CapacityReportingSpecification/when CapacityReportingSpecification_when RasUsageSpecification/when RasUsageSpecification_when TransportAddress/ipAddress/ip IpV4 #---------------------------------------------------------------------------------------- #.FIELD_RENAME RasUsageSpecification/callStartingPoint/alerting alerting_flg CallCreditServiceControl/callStartingPoint/alerting alerting_flg UseSpecifiedTransport/annexE annexE_flg UUIEsRequested/callProceeding callProceeding_flg CicInfo/cic cic_2_4 UUIEsRequested/connect connect_bool NonStandardIdentifier/object nsiOID NonStandardParameter/data nsp_data H323-UU-PDU/h323-message-body/empty empty_flg RasUsageInfoTypes/endTime endTime_flg UUIEsRequested/facility facility_bool CallsAvailable/group group_IA5String GroupID/group group_IA5String Setup-UUIE/hopCount hopCount_1_31 UUIEsRequested/information information_bool TransportAddress/ip6Address/ip ipV6 TransportAddress/ipAddress/ip ipV4 TransportAddress/ipSourceRoute/ip src_route_ipV4 RTPSession/multicast multicast_flg UUIEsRequested/notify notify_bool TransportAddress/ipxAddress/port ipx_port TransportAddress/ipAddress/port ipV4_port TransportAddress/ipSourceRoute/port ipV4_src_port TransportAddress/ip6Address/port ipV6_port UUIEsRequested/progress progress_bool Facility-UUIE/reason facilityReason UnregistrationRequest/reason unregRequestReason ReleaseComplete-UUIE/reason releaseCompleteReason BandwidthReject/rejectReason bandRejectReason UnregistrationReject/rejectReason unregRejectReason RegistrationReject/rejectReason registrationRejectReason LocationReject/rejectReason locationRejectReason DisengageReject/rejectReason disengageRejectReason GatekeeperReject/rejectReason gatekeeperRejectReason UUIEsRequested/releaseComplete releaseComplete_bool UseSpecifiedTransport/sctp sctp_flg ServiceControlSession/sessionId sessionId_0_255 UUIEsRequested/setup setup_bool UUIEsRequested/setupAcknowledge setupAcknowledge_bool Setup-UUIE/sourceInfo setup-UUIE_sourceInfo UUIEsRequested/status status_bool UUIEsRequested/statusInquiry statusInquiry_bool RasUsageInfoTypes/terminationCause terminationCause_flg CapacityReportingSpecification/when capacityReportingSpecification_when UUIEsRequested/alerting alerting_bool LocationConfirm/callSignalAddress locationConfirm_callSignalAddress RasUsageSpecification/callStartingPoint/connect connect_flg CallCreditServiceControl/callStartingPoint/connect connect_flg Alerting-UUIE/destinationInfo uUIE_destinationInfo CallProceeding-UUIE/destinationInfo uUIE_destinationInfo Connect-UUIE/destinationInfo uUIE_destinationInfo Facility-UUIE/destinationInfo uUIE_destinationInfo Progress-UUIE/destinationInfo uUIE_destinationInfo TunnelledProtocol/id tunnelledProtocol_id SecurityCapabilities/integrity securityCapabilities_integrity GenericIdentifier/nonStandard genericIdentifier_nonStandard AlternateGK/rasAddress alternateGK_rasAddress GatekeeperRequest/rasAddress gatekeeperRequest_rasAddress GatekeeperConfirm/rasAddress gatekeeperConfirm_rasAddress LocationConfirm/rasAddress locationConfirm_rasAddress InfoRequestResponse/rasAddress infoRequestResponse_rasAddress Setup-UUIE/remoteExtensionAddress uUIE_remoteExtensionAddress Facility-UUIE/remoteExtensionAddress uUIE_remoteExtensionAddress VendorIdentifier/vendor vendorIdentifier_vendor RasUsageSpecification/callStartingPoint ras_callStartingPoint ReleaseCompleteReason/securityError rLC_securityError GatekeeperRejectReason/securityError gkRej_securityError RegistrationRejectReason/securityError reg_securityError CallIdentifier/guid guid ExtendedAliasAddress/address extAliasAddress IsupNumber/e164Number isupE164Number IsupNumber/dataPartyNumber isupDataPartyNumber IsupNumber/telexPartyNumber isupTelexPartyNumber IsupNumber/privateNumber isupPrivateNumber IsupNumber/nationalStandardPartyNumber isupNationalStandardPartyNumber #---------------------------------------------------------------------------------------- #.FN_BODY H323-UU-PDU/h323-message-body VAL_PTR = &message_body_val gint32 message_body_val; h225_packet_info* h225_pi; contains_faststart = FALSE; call_id_guid = NULL; %(DEFAULT_BODY)s col_append_fstr(actx->pinfo->cinfo, COL_INFO, "CS: %%s ", val_to_str(message_body_val, T_h323_message_body_vals, "<unknown>")); h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { if (h225_pi->msg_type == H225_CS) { /* Don't override msg_tag value from IRR */ h225_pi->msg_tag = message_body_val; } if (call_id_guid) { h225_pi->guid = *call_id_guid; } } if (contains_faststart == TRUE ) { col_append_str(actx->pinfo->cinfo, COL_INFO, "OpenLogicalChannel " ); } col_set_fence(actx->pinfo->cinfo,COL_INFO); #.END #---------------------------------------------------------------------------------------- #.FN_BODY FastStart/_item VAL_PTR = &value_tvb tvbuff_t *value_tvb = NULL; char codec_str[50]; h225_packet_info* h225_pi; codec_str[0] = '\0'; %(DEFAULT_BODY)s if (value_tvb && tvb_reported_length(value_tvb)) { dissect_h245_FastStart_OLC(value_tvb, actx->pinfo, tree, codec_str); } /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { char temp[50]; snprintf(temp, 50, "%%s %%s", h225_pi->frame_label, codec_str); (void) g_strlcpy(h225_pi->frame_label, temp, 50); h225_pi->is_faststart = TRUE; } contains_faststart = TRUE; #.END #---------------------------------------------------------------------------------------- #.FN_BODY RasMessage VAL_PTR = &rasmessage_value gint32 rasmessage_value; h225_packet_info* h225_pi; call_id_guid = NULL; %(DEFAULT_BODY)s col_add_fstr(actx->pinfo->cinfo, COL_INFO, "RAS: %%s ", val_to_str(rasmessage_value, h225_RasMessage_vals, "<unknown>")); h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->msg_tag = rasmessage_value; if (call_id_guid) { h225_pi->guid = *call_id_guid; } } #.END #---------------------------------------------------------------------------------------- #.FN_HDR DestinationInfo/_item h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->is_destinationInfo = TRUE; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY DialedDigits VAL_PTR = &value_tvb tvbuff_t *value_tvb = NULL; guint len = 0; h225_packet_info* h225_pi; %(DEFAULT_BODY)s h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi && h225_pi->is_destinationInfo == TRUE) { if (value_tvb) { len = tvb_reported_length(value_tvb); /* XXX - should this be allocated as an ephemeral string? */ if (len > sizeof h225_pi->dialedDigits - 1) len = sizeof h225_pi->dialedDigits - 1; tvb_memcpy(value_tvb, (guint8*)h225_pi->dialedDigits, 0, len); } h225_pi->dialedDigits[len] = '\0'; h225_pi->is_destinationInfo = FALSE; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY H245TransportAddress/ipAddress/ip VAL_PTR = &value_tvb tvbuff_t *value_tvb; ipv4_address = 0; %(DEFAULT_BODY)s if (value_tvb) ipv4_address = tvb_get_ipv4(value_tvb, 0); #.END #---------------------------------------------------------------------------------------- #.FN_BODY H245TransportAddress/ip6Address/ip VAL_PTR = &value_tvb tvbuff_t *value_tvb; ipv6_address = ipv6_address_zeros; %(DEFAULT_BODY)s if (value_tvb) tvb_get_ipv6(value_tvb, 0, &ipv6_address); #.END #---------------------------------------------------------------------------------------- #.FN_PARS H245TransportAddress/ipAddress/port VAL_PTR = &ip_port #---------------------------------------------------------------------------------------- #.FN_PARS H245TransportAddress/ip6Address/port VAL_PTR = &ip_port #---------------------------------------------------------------------------------------- #.FN_BODY ParallelH245Control/_item VAL_PTR = &h245_tvb tvbuff_t *h245_tvb = NULL; %(DEFAULT_BODY)s next_tvb_add_handle(h245_list, h245_tvb, (h225_h245_in_tree)?tree:NULL, h245dg_handle); #.END #---------------------------------------------------------------------------------------- #.FN_BODY H245Control/_item VAL_PTR = &h245_tvb tvbuff_t *h245_tvb = NULL; %(DEFAULT_BODY)s next_tvb_add_handle(h245_list, h245_tvb, (h225_h245_in_tree)?tree:NULL, h245dg_handle); #.END #---------------------------------------------------------------------------------------- #.FN_HDR H323-UU-PDU/h323-message-body/empty h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR H323-UU-PDU/h323-message-body/empty h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_EMPTY; } #.END #---------------------------------------------------------------------------------------- #.FN_HDR Status-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR Status-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_STATUS; snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR Information-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR Information-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_INFORMATION; snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR Progress-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR Progress-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_PROGRESS; if (contains_faststart) { char temp[50]; snprintf(temp, 50, "%s OLC (%s)", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>"), h225_pi->frame_label); (void) g_strlcpy(h225_pi->frame_label, temp, 50); } else snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR SetupAcknowledge-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR SetupAcknowledge-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_SETUP_ACK; snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR Facility-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR Facility-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_FACILITY; snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR H323-UU-PDU/h245Tunnelling h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { #.END #---------------------------------------------------------------------------------------- #.FN_PARS H323-UU-PDU/h245Tunnelling VAL_PTR = &(h225_pi->is_h245Tunneling) #---------------------------------------------------------------------------------------- #.FN_FTR H323-UU-PDU/h245Tunnelling } #.END #---------------------------------------------------------------------------------------- #.FN_HDR Setup-UUIE h225_packet_info* h225_pi; contains_faststart = FALSE; #.END #---------------------------------------------------------------------------------------- #.FN_FTR Setup-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_SETUP; if (contains_faststart) { char temp[50]; snprintf(temp, 50, "%s OLC (%s)", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>"), h225_pi->frame_label); (void) g_strlcpy(h225_pi->frame_label, temp, 50); } else snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR CallProceeding-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR CallProceeding-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_CALL_PROCEDING; if (contains_faststart) { char temp[50]; snprintf(temp, 50, "%s OLC (%s)", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>"), h225_pi->frame_label); (void) g_strlcpy(h225_pi->frame_label, temp, 50); } else snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR Alerting-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR Alerting-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_ALERTING; if (contains_faststart) { char temp[50]; snprintf(temp, 50, "%s OLC (%s)", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>"), h225_pi->frame_label); (void) g_strlcpy(h225_pi->frame_label, temp, 50); } else snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR ReleaseComplete-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR ReleaseComplete-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_RELEASE_COMPLET; snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR Connect-UUIE h225_packet_info* h225_pi; #.END #---------------------------------------------------------------------------------------- #.FN_FTR Connect-UUIE /* Add to packet info */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { h225_pi->cs_type = H225_CONNECT; if (contains_faststart) { char temp[50]; snprintf(temp, 50, "%s OLC (%s)", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>"), h225_pi->frame_label); (void) g_strlcpy(h225_pi->frame_label, temp, 50); } else snprintf(h225_pi->frame_label, 50, "%s", val_to_str(h225_pi->cs_type, T_h323_message_body_vals, "<unknown>")); } #.END #---------------------------------------------------------------------------------------- #.FN_HDR H245TransportAddress h225_packet_info* h225_pi; ipv4_address=0; ipv6_address = ipv6_address_zeros; ip_port=0; #.END #---------------------------------------------------------------------------------------- #.FN_FTR H245TransportAddress /* we need this info for TAPing */ h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi) { h225_pi->is_h245 = TRUE; h225_pi->h245_address = ipv4_address; h225_pi->h245_port = ip_port; } if ( !actx->pinfo->fd->visited && h245_handle && ip_port!=0 ) { address src_addr; conversation_t *conv=NULL; if (ipv4_address!=0) { set_address(&src_addr, AT_IPv4, 4, &ipv4_address); } else if (memcmp(ipv6_address.bytes, ipv6_address_zeros.bytes, sizeof(ipv6_address.bytes))!=0) { set_address(&src_addr, AT_IPv6, 16, ipv6_address.bytes); } else { return offset; } conv=find_conversation(actx->pinfo->num, &src_addr, &src_addr, CONVERSATION_TCP, ip_port, ip_port, NO_ADDR_B|NO_PORT_B); if(!conv){ conv=conversation_new(actx->pinfo->num, &src_addr, &src_addr, CONVERSATION_TCP, ip_port, ip_port, NO_ADDR2|NO_PORT2); conversation_set_dissector(conv, h245_handle); } } #.END #---------------------------------------------------------------------------------------- #.FN_BODY FacilityReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY GatekeeperRejectReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY UnregRequestReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY UnregRejectReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY BandRejectReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY DisengageReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #---------------------------------------------------------------------------------------- #.FN_BODY DisengageRejectReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY AdmissionRejectReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY LocationRejectReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY RegistrationRejectReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY InfoRequestNakReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY ReleaseCompleteReason VAL_PTR = &value gint32 value; h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); %(DEFAULT_BODY)s if (h225_pi != NULL) { h225_pi->reason = value; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY CallIdentifier/guid tvbuff_t *guid_tvb = NULL; actx->value_ptr = &guid_tvb; %(DEFAULT_BODY)s if (guid_tvb) tvb_get_ntohguid(guid_tvb, 0, call_id_guid = wmem_new(actx->pinfo->pool, e_guid_t)); actx->value_ptr = NULL; #.END #---------------------------------------------------------------------------------------- #.FN_PARS GloballyUniqueID VAL_PTR = (tvbuff_t **)actx->value_ptr #---------------------------------------------------------------------------------------- #.FN_HDR RequestSeqNum h225_packet_info* h225_pi; h225_pi = (h225_packet_info*)p_get_proto_data(actx->pinfo->pool, actx->pinfo, proto_h225, 0); if (h225_pi != NULL) { #.END #---------------------------------------------------------------------------------------- #.FN_PARS RequestSeqNum VAL_PTR = &(h225_pi->requestSeqNum) #---------------------------------------------------------------------------------------- #.FN_FTR RequestSeqNum } #.END #---------------------------------------------------------------------------------------- #.FN_BODY H323-UU-PDU/h4501SupplementaryService/_item VAL_PTR = &h4501_tvb tvbuff_t *h4501_tvb = NULL; %(DEFAULT_BODY)s if (h4501_tvb && tvb_reported_length(h4501_tvb)) { call_dissector(h4501_handle, h4501_tvb, actx->pinfo, tree); } #.END #---------------------------------------------------------------------------------------- #--- TunnelledProtocol ------------------------------------------------------------------ #.FN_HDR TunnelledProtocol tpOID = ""; #.FN_FTR TunnelledProtocol tp_handle = dissector_get_string_handle(tp_dissector_table, tpOID); #.FN_PARS TunnelledProtocol/id/tunnelledProtocolObjectID FN_VARIANT = _str VAL_PTR = &tpOID #.END #.FN_HDR H323-UU-PDU/tunnelledSignallingMessage tp_handle = NULL; #.FN_BODY H323-UU-PDU/tunnelledSignallingMessage/messageContent/_item VAL_PTR = &next_tvb tvbuff_t *next_tvb = NULL; %(DEFAULT_BODY)s next_tvb_add_handle(tp_list, next_tvb, (h225_tp_in_tree)?tree:NULL, tp_handle); #.END #--- NonStandardParameter --------------------------------------------------------------- #.FN_PARS NonStandardIdentifier/object FN_VARIANT = _str VAL_PTR = &nsiOID #.END #.FN_BODY NonStandardIdentifier VAL_PTR = &value gint32 value; nsiOID = ""; h221NonStandard = 0; %(DEFAULT_BODY)s switch (value) { case 0 : /* object */ nsp_handle = dissector_get_string_handle(nsp_object_dissector_table, nsiOID); break; case 1 : /* h221NonStandard */ nsp_handle = dissector_get_uint_handle(nsp_h221_dissector_table, h221NonStandard); break; default : nsp_handle = NULL; } #.END #.FN_HDR H221NonStandard t35CountryCode = 0; t35Extension = 0; manufacturerCode = 0; #.FN_FTR H221NonStandard h221NonStandard = ((t35CountryCode * 256) + t35Extension) * 65536 + manufacturerCode; proto_tree_add_uint(tree, hf_h221Manufacturer, tvb, (offset>>3)-4, 4, h221NonStandard); #.FN_PARS H221NonStandard/t35CountryCode VAL_PTR = &t35CountryCode H221NonStandard/t35Extension VAL_PTR = &t35Extension H221NonStandard/manufacturerCode VAL_PTR = &manufacturerCode #.END #.FN_HDR NonStandardParameter nsp_handle = NULL; #.FN_BODY NonStandardParameter/data VAL_PTR = &next_tvb tvbuff_t *next_tvb = NULL; %(DEFAULT_BODY)s if (next_tvb && tvb_reported_length(next_tvb)) { call_dissector((nsp_handle)?nsp_handle:data_handle, next_tvb, actx->pinfo, tree); } #.END #=== Generic Extensible Framework ======================================================= #.FN_HDR GenericData void *priv_data = actx->private_data; gef_ctx_t *gefx; /* check if not inherited from FeatureDescriptor */ gefx = gef_ctx_get(actx->private_data); if (!gefx) { gefx = gef_ctx_alloc(actx->pinfo->pool, NULL, "GenericData"); actx->private_data = gefx; } #.FN_FTR actx->private_data = priv_data; #.END #.FN_HDR EnumeratedParameter gef_ctx_t *parent_gefx; parent_gefx = gef_ctx_get(actx->private_data); actx->private_data = gef_ctx_alloc(actx->pinfo->pool, parent_gefx, NULL); #.FN_FTR actx->private_data = parent_gefx; #.END #---------------------------------------------------------------------------------------- #.FN_HDR FeatureDescriptor void *priv_data = actx->private_data; actx->private_data = gef_ctx_alloc(actx->pinfo->pool, NULL, "FeatureDescriptor"); #.FN_FTR actx->private_data = priv_data; #.END #---------------------------------------------------------------------------------------- #.FN_HDR GenericIdentifier gef_ctx_t *gefx; proto_item* ti; #.FN_FTR gef_ctx_update_key(actx->pinfo->pool, gef_ctx_get(actx->private_data)); gefx = gef_ctx_get(actx->private_data); if (gefx) { ti = proto_tree_add_string(tree, hf_h225_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); dissector_try_string_new(gef_name_dissector_table, gefx->key, tvb_new_subset_length_caplen(tvb, offset>>3, 0, 0), actx->pinfo, tree, FALSE, actx); } actx->private_data = gefx; /* subdissector could overwrite it */ #.END #.FN_BODY GenericIdentifier/standard VAL_PTR = &value_int guint32 value_int = (guint32)-1; gef_ctx_t *gefx; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) gefx->id = wmem_strdup_printf(actx->pinfo->pool, "%%u", value_int); #.END #.FN_BODY GenericIdentifier/oid FN_VARIANT = _str VAL_PTR = &oid_str const gchar *oid_str = NULL; gef_ctx_t *gefx; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) gefx->id = oid_str; #.END #---------------------------------------------------------------------------------------- #.FN_BODY Content/raw VAL_PTR = &value_tvb tvbuff_t *value_tvb; gef_ctx_t *gefx; proto_item* ti; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) { ti = proto_tree_add_string(tree, hf_h225_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, actx->pinfo, %(TREE)s, actx); } #.END #=== end of GEF ========================================================================= # TBCD-STRING is additionally constrained # parameter stack is used for passing this constraint #.FN_HDR TBCD-STRING int min_len, max_len; gboolean has_extension; get_size_constraint_from_stack(actx, "TBCD_STRING", &min_len, &max_len, &has_extension); #.FN_PARS TBCD-STRING MIN_VAL = min_len MAX_VAL = max_len EXT = has_extension #.END #.TYPE_ATTR H221NonStandard/t35CountryCode TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = VALS(T35CountryCode_vals) TransportAddress/ipAddress/ip TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL TransportAddress/ip6Address/ip TYPE = FT_IPv6 DISPLAY = BASE_NONE STRINGS = NULL H245TransportAddress/ipAddress/ip TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL H245TransportAddress/ip6Address/ip TYPE = FT_IPv6 DISPLAY = BASE_NONE STRINGS = NULL VendorIdentifier/productId TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL VendorIdentifier/versionId TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL H323-UserInformation/user-data/protocol-discriminator TYPE = FT_UINT32 DISPLAY = BASE_DEC|BASE_EXT_STRING STRINGS = &q931_protocol_discriminator_vals_ext H323-UU-PDU/tunnelledSignallingMessage/messageContent/_item TYPE = FT_UINT32 DISPLAY = BASE_DEC NonStandardParameter/data TYPE = FT_UINT32 DISPLAY = BASE_DEC FastStart/_item TYPE = FT_UINT32 DISPLAY = BASE_DEC ParallelH245Control/_item TYPE = FT_UINT32 DISPLAY = BASE_DEC H245Control/_item TYPE = FT_UINT32 DISPLAY = BASE_DEC GloballyUniqueID TYPE = FT_GUID DISPLAY = BASE_NONE H323-UU-PDU/h4501SupplementaryService/_item TYPE = FT_UINT32 DISPLAY = BASE_DEC #.END
ASN.1
wireshark/epan/dissectors/asn1/h225/H323-MESSAGES.asn
-- H323-MESSAGES.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/formal-language/itu-t/h/h225-0/2009/H323-MESSAGES.asn -- -- Module H323-MESSAGES (H.225.0:12/2009) H323-MESSAGES {itu-t(0) recommendation(0) h(8) h225-0(2250) version(0) 7 h323-messages(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS SIGNED{}, ENCRYPTED{}, HASHED{}, ChallengeString, TimeStamp, RandomVal, Password, EncodedPwdCertToken, ClearToken, CryptoToken, AuthenticationMechanism FROM H235-SECURITY-MESSAGES DataProtocolCapability, T38FaxProfile, QOSCapability FROM MULTIMEDIA-SYSTEM-CONTROL {itu-t(0) recommendation(0) h(8) h245(245) version(0) 15 multimedia-system-control(0)}; H323-UserInformation ::= SEQUENCE -- root for all H.225.0 call signalling messages { h323-uu-pdu H323-UU-PDU, user-data SEQUENCE {protocol-discriminator INTEGER(0..255), user-information OCTET STRING(SIZE (1..131)), ...} OPTIONAL, ... } H323-UU-PDU ::= SEQUENCE { h323-message-body CHOICE {setup Setup-UUIE, callProceeding CallProceeding-UUIE, connect Connect-UUIE, alerting Alerting-UUIE, information Information-UUIE, releaseComplete ReleaseComplete-UUIE, facility Facility-UUIE, ..., progress Progress-UUIE, empty NULL, -- used when a Facility message is sent,-- -- but the Facility-UUIE is not to be invoked -- (possible when transporting supplementary -- services messages in versions prior to -- H.225.0 version 4) status Status-UUIE, statusInquiry StatusInquiry-UUIE, setupAcknowledge SetupAcknowledge-UUIE, notify Notify-UUIE}, nonStandardData NonStandardParameter OPTIONAL, ..., h4501SupplementaryService SEQUENCE OF OCTET STRING OPTIONAL, -- each sequence of octet string is defined as one -- H4501SupplementaryService APDU as defined in -- Table 3/H.450.1 h245Tunnelling BOOLEAN, -- if TRUE, tunnelling of H.245 messages is enabled h245Control SEQUENCE OF OCTET STRING OPTIONAL, nonStandardControl SEQUENCE OF NonStandardParameter OPTIONAL, callLinkage CallLinkage OPTIONAL, tunnelledSignallingMessage SEQUENCE {tunnelledProtocolID TunnelledProtocol, -- tunnelled signalling-- -- protocol ID messageContent SEQUENCE OF OCTET STRING, -- sequence of entire -- -- message(s) tunnellingRequired NULL OPTIONAL, nonStandardData NonStandardParameter OPTIONAL, ...} OPTIONAL, provisionalRespToH245Tunnelling NULL OPTIONAL, stimulusControl StimulusControl OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL } StimulusControl ::= SEQUENCE { nonStandard NonStandardParameter OPTIONAL, isText NULL OPTIONAL, h248Message OCTET STRING OPTIONAL, ... } Alerting-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, destinationInfo EndpointType, h245Address TransportAddress OPTIONAL, ..., callIdentifier CallIdentifier, h245SecurityMode H245Security OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, fastStart SEQUENCE OF OCTET STRING OPTIONAL, multipleCalls BOOLEAN, maintainConnection BOOLEAN, alertingAddress SEQUENCE OF AliasAddress OPTIONAL, presentationIndicator PresentationIndicator OPTIONAL, screeningIndicator ScreeningIndicator OPTIONAL, fastConnectRefused NULL OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, capacity CallCapacity OPTIONAL, featureSet FeatureSet OPTIONAL, displayName SEQUENCE OF DisplayName OPTIONAL } CallProceeding-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, destinationInfo EndpointType, h245Address TransportAddress OPTIONAL, ..., callIdentifier CallIdentifier, h245SecurityMode H245Security OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, fastStart SEQUENCE OF OCTET STRING OPTIONAL, multipleCalls BOOLEAN, maintainConnection BOOLEAN, fastConnectRefused NULL OPTIONAL, featureSet FeatureSet OPTIONAL } Connect-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, h245Address TransportAddress OPTIONAL, destinationInfo EndpointType, conferenceID ConferenceIdentifier, ..., callIdentifier CallIdentifier, h245SecurityMode H245Security OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, fastStart SEQUENCE OF OCTET STRING OPTIONAL, multipleCalls BOOLEAN, maintainConnection BOOLEAN, language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL, -- RFC 1766 language tag connectedAddress SEQUENCE OF AliasAddress OPTIONAL, presentationIndicator PresentationIndicator OPTIONAL, screeningIndicator ScreeningIndicator OPTIONAL, fastConnectRefused NULL OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, capacity CallCapacity OPTIONAL, featureSet FeatureSet OPTIONAL, displayName SEQUENCE OF DisplayName OPTIONAL } Information-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, ..., callIdentifier CallIdentifier, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, fastStart SEQUENCE OF OCTET STRING OPTIONAL, fastConnectRefused NULL OPTIONAL, circuitInfo CircuitInfo OPTIONAL } ReleaseComplete-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, reason ReleaseCompleteReason OPTIONAL, ..., callIdentifier CallIdentifier, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, busyAddress SEQUENCE OF AliasAddress OPTIONAL, presentationIndicator PresentationIndicator OPTIONAL, screeningIndicator ScreeningIndicator OPTIONAL, capacity CallCapacity OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, featureSet FeatureSet OPTIONAL, destinationInfo EndpointType OPTIONAL, displayName SEQUENCE OF DisplayName OPTIONAL } ReleaseCompleteReason ::= CHOICE { noBandwidth NULL, -- bandwidth taken away or ARQ denied gatekeeperResources NULL, -- exhausted unreachableDestination NULL, -- no transport path to the destination destinationRejection NULL, -- rejected at destination invalidRevision NULL, noPermission NULL, -- called party's gatekeeper rejects unreachableGatekeeper NULL, -- terminal cannot reach gatekeeper -- for ARQ gatewayResources NULL, badFormatAddress NULL, adaptiveBusy NULL, -- call is dropping due to LAN crowding inConf NULL, -- called party busy undefinedReason NULL, ..., facilityCallDeflection NULL, -- call was deflected using a Facility -- message securityDenied NULL, -- incompatible security settings calledPartyNotRegistered NULL, -- used by gatekeeper when endpoint has -- preGrantedARQ to bypass ARQ/ACF callerNotRegistered NULL, -- used by gatekeeper when endpoint has -- preGrantedARQ to bypass ARQ/ACF newConnectionNeeded NULL, -- indicates that the Setup was not -- accepted on this connection, but that -- the Setup may be accepted on -- a new connection nonStandardReason NonStandardParameter, replaceWithConferenceInvite ConferenceIdentifier, -- call dropped due to -- subsequent invitation -- to a conference -- (see 8.4.3.8/H.323) genericDataReason NULL, neededFeatureNotSupported NULL, tunnelledSignallingRejected NULL, invalidCID NULL, securityError SecurityErrors, hopCountExceeded NULL } Setup-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, h245Address TransportAddress OPTIONAL, sourceAddress SEQUENCE OF AliasAddress OPTIONAL, sourceInfo EndpointType, destinationAddress SEQUENCE OF AliasAddress OPTIONAL, destCallSignalAddress TransportAddress OPTIONAL, destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL, destExtraCRV SEQUENCE OF CallReferenceValue OPTIONAL, activeMC BOOLEAN, conferenceID ConferenceIdentifier, conferenceGoal CHOICE {create NULL, join NULL, invite NULL, ..., capability-negotiation NULL, callIndependentSupplementaryService NULL}, callServices QseriesOptions OPTIONAL, callType CallType, ..., sourceCallSignalAddress TransportAddress OPTIONAL, remoteExtensionAddress AliasAddress OPTIONAL, callIdentifier CallIdentifier, h245SecurityCapability SEQUENCE OF H245Security OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, fastStart SEQUENCE OF OCTET STRING OPTIONAL, mediaWaitForConnect BOOLEAN, canOverlapSend BOOLEAN, endpointIdentifier EndpointIdentifier OPTIONAL, multipleCalls BOOLEAN, maintainConnection BOOLEAN, connectionParameters SEQUENCE-- additional gateway parameters-- {connectionType ScnConnectionType, numberOfScnConnections INTEGER(0..65535), connectionAggregation ScnConnectionAggregation, ...} OPTIONAL, language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL, -- RFC 1766 language tag presentationIndicator PresentationIndicator OPTIONAL, screeningIndicator ScreeningIndicator OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, symmetricOperationRequired NULL OPTIONAL, capacity CallCapacity OPTIONAL, circuitInfo CircuitInfo OPTIONAL, desiredProtocols SEQUENCE OF SupportedProtocols OPTIONAL, neededFeatures SEQUENCE OF FeatureDescriptor OPTIONAL, desiredFeatures SEQUENCE OF FeatureDescriptor OPTIONAL, supportedFeatures SEQUENCE OF FeatureDescriptor OPTIONAL, parallelH245Control SEQUENCE OF OCTET STRING OPTIONAL, additionalSourceAddresses SEQUENCE OF ExtendedAliasAddress OPTIONAL, hopCount INTEGER(1..31) OPTIONAL, displayName SEQUENCE OF DisplayName OPTIONAL } ScnConnectionType ::= CHOICE { unknown NULL, -- should be selected when connection type is unknown bChannel NULL, -- each individual connection on the SCN is 64 kbit/s. -- Note that where SCN delivers 56 kbit/s usable data, -- the actual bandwidth allocated on SCN is still -- 64 kbit/s. hybrid2x64 NULL, -- each connection is a 128 kbit/s hybrid call hybrid384 NULL, -- each connection is an H0 (384 kbit/s) hybrid call hybrid1536 NULL, -- each connection is an H11 (1536 kbit/s) hybrid call hybrid1920 NULL, -- each connection is an H12 (1920 kbit/s) hybrid call multirate NULL, -- bandwidth supplied by SCN using multirate. -- In this case, the information transfer rate octet -- in the bearer capability shall be set to multirate -- and the rate multiplier octet shall denote the -- number of B channels. ... } ScnConnectionAggregation ::= CHOICE { auto NULL, -- aggregation mechanism is unknown none NULL, -- call produced using a single SCN connection h221 NULL, -- use H.221 framing to aggregate the connections bonded-mode1 NULL, -- use ISO/IEC 13871 bonding mode 1. -- Use bonded-mode1 to signal a bonded call if the -- precise bonding mode to be used is unknown. bonded-mode2 NULL, -- use ISO/IEC 13871 bonding mode 2 bonded-mode3 NULL, -- use ISO/IEC 13871 bonding mode 3 ... } PresentationIndicator ::= CHOICE { presentationAllowed NULL, presentationRestricted NULL, addressNotAvailable NULL, ... } ScreeningIndicator ::= ENUMERATED { userProvidedNotScreened(0), -- number was provided by a remote user -- and has not been screened by a gatekeeper userProvidedVerifiedAndPassed(1), -- number was provided by user -- equipment (or by a remote network), and has -- been screened by a gatekeeper userProvidedVerifiedAndFailed(2), -- number was provided by user -- equipment (or by a remote network), and the -- gatekeeper has determined that the -- information is incorrect networkProvided(3), -- number was provided by a gatekeeper ... } Facility-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, alternativeAddress TransportAddress OPTIONAL, alternativeAliasAddress SEQUENCE OF AliasAddress OPTIONAL, conferenceID ConferenceIdentifier OPTIONAL, reason FacilityReason, ..., callIdentifier CallIdentifier, destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL, remoteExtensionAddress AliasAddress OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, conferences SEQUENCE OF ConferenceList OPTIONAL, h245Address TransportAddress OPTIONAL, fastStart SEQUENCE OF OCTET STRING OPTIONAL, multipleCalls BOOLEAN, maintainConnection BOOLEAN, fastConnectRefused NULL OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, circuitInfo CircuitInfo OPTIONAL, featureSet FeatureSet OPTIONAL, destinationInfo EndpointType OPTIONAL, h245SecurityMode H245Security OPTIONAL } ConferenceList ::= SEQUENCE { conferenceID ConferenceIdentifier OPTIONAL, conferenceAlias AliasAddress OPTIONAL, nonStandardData NonStandardParameter OPTIONAL, ... } FacilityReason ::= CHOICE { routeCallToGatekeeper NULL, -- call must use gatekeeper model -- gatekeeper is alternativeAddress callForwarded NULL, routeCallToMC NULL, undefinedReason NULL, ..., conferenceListChoice NULL, startH245 NULL, -- recipient should connect to h245Address noH245 NULL, -- endpoint does not support H.245 newTokens NULL, featureSetUpdate NULL, forwardedElements NULL, transportedInformation NULL } Progress-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, destinationInfo EndpointType, h245Address TransportAddress OPTIONAL, callIdentifier CallIdentifier, h245SecurityMode H245Security OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, fastStart SEQUENCE OF OCTET STRING OPTIONAL, ..., multipleCalls BOOLEAN, maintainConnection BOOLEAN, fastConnectRefused NULL OPTIONAL } TransportAddress ::= CHOICE { ipAddress SEQUENCE {ip OCTET STRING(SIZE (4)), port INTEGER(0..65535)}, ipSourceRoute SEQUENCE {ip OCTET STRING(SIZE (4)), port INTEGER(0..65535), route SEQUENCE OF OCTET STRING(SIZE (4)), routing CHOICE {strict NULL, loose NULL, ...}, ...}, ipxAddress SEQUENCE {node OCTET STRING(SIZE (6)), netnum OCTET STRING(SIZE (4)), port OCTET STRING(SIZE (2))}, ip6Address SEQUENCE {ip OCTET STRING(SIZE (16)), port INTEGER(0..65535), ...}, netBios OCTET STRING(SIZE (16)), nsap OCTET STRING(SIZE (1..20)), nonStandardAddress NonStandardParameter, ... } Status-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, callIdentifier CallIdentifier, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, ... } StatusInquiry-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, callIdentifier CallIdentifier, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, ... } SetupAcknowledge-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, callIdentifier CallIdentifier, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, ... } Notify-UUIE ::= SEQUENCE { protocolIdentifier ProtocolIdentifier, callIdentifier CallIdentifier, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, ..., connectedAddress SEQUENCE OF AliasAddress OPTIONAL, presentationIndicator PresentationIndicator OPTIONAL, screeningIndicator ScreeningIndicator OPTIONAL, destinationInfo EndpointType OPTIONAL, displayName SEQUENCE OF DisplayName OPTIONAL } -- Beginning of common message elements section EndpointType ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, vendor VendorIdentifier OPTIONAL, gatekeeper GatekeeperInfo OPTIONAL, gateway GatewayInfo OPTIONAL, mcu McuInfo OPTIONAL, -- mc must be set as well terminal TerminalInfo OPTIONAL, mc BOOLEAN, -- shall not be set by itself undefinedNode BOOLEAN, ..., set BIT STRING(SIZE (32)) OPTIONAL, -- shall not be used with mc, gatekeeper -- code points for the various SET devices -- are defined in the respective SET Annexes supportedTunnelledProtocols SEQUENCE OF TunnelledProtocol OPTIONAL -- list of supported tunnelled protocols } GatewayInfo ::= SEQUENCE { protocol SEQUENCE OF SupportedProtocols OPTIONAL, nonStandardData NonStandardParameter OPTIONAL, ... } SupportedProtocols ::= CHOICE { nonStandardData NonStandardParameter, h310 H310Caps, h320 H320Caps, h321 H321Caps, h322 H322Caps, h323 H323Caps, h324 H324Caps, voice VoiceCaps, t120-only T120OnlyCaps, ..., nonStandardProtocol NonStandardProtocol, t38FaxAnnexbOnly T38FaxAnnexbOnlyCaps, sip SIPCaps } H310Caps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix } H320Caps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix } H321Caps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix } H322Caps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix } H323Caps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix } H324Caps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix } VoiceCaps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix } T120OnlyCaps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix } NonStandardProtocol ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix, ... } T38FaxAnnexbOnlyCaps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix, t38FaxProtocol DataProtocolCapability, t38FaxProfile T38FaxProfile, ... } SIPCaps ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, dataRatesSupported SEQUENCE OF DataRate OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix OPTIONAL, ... } McuInfo ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ..., protocol SEQUENCE OF SupportedProtocols OPTIONAL } TerminalInfo ::= SEQUENCE {nonStandardData NonStandardParameter OPTIONAL, ... } GatekeeperInfo ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ... } VendorIdentifier ::= SEQUENCE { vendor H221NonStandard, productId OCTET STRING(SIZE (1..256)) OPTIONAL, -- per vendor versionId OCTET STRING(SIZE (1..256)) OPTIONAL, -- per product ..., enterpriseNumber OBJECT IDENTIFIER OPTIONAL } H221NonStandard ::= SEQUENCE { t35CountryCode INTEGER(0..255), t35Extension INTEGER(0..255), manufacturerCode INTEGER(0..65535), ... } TunnelledProtocol ::= SEQUENCE { id CHOICE {tunnelledProtocolObjectID OBJECT IDENTIFIER, tunnelledProtocolAlternateID TunnelledProtocolAlternateIdentifier, ...}, subIdentifier IA5String(SIZE (1..64)) OPTIONAL, ... } TunnelledProtocolAlternateIdentifier ::= SEQUENCE { protocolType IA5String(SIZE (1..64)), protocolVariant IA5String(SIZE (1..64)) OPTIONAL, ... } NonStandardParameter ::= SEQUENCE { nonStandardIdentifier NonStandardIdentifier, data OCTET STRING } NonStandardIdentifier ::= CHOICE { object OBJECT IDENTIFIER, h221NonStandard H221NonStandard, ... } AliasAddress ::= CHOICE { dialledDigits IA5String(SIZE (1..128))(FROM ("0123456789#*,")), h323-ID BMPString(SIZE (1..256)), -- Basic ISO/IEC 10646 (Unicode) ..., url-ID IA5String(SIZE (1..512)), -- URL style address transportID TransportAddress, email-ID IA5String(SIZE (1..512)), -- rfc822-compliant email address partyNumber PartyNumber, mobileUIM MobileUIM, isupNumber IsupNumber } AddressPattern ::= CHOICE { wildcard AliasAddress, range SEQUENCE {startOfRange PartyNumber, endOfRange PartyNumber}, ... } PartyNumber ::= CHOICE { e164Number PublicPartyNumber, -- the numbering plan is according to -- ITUT Recs E.163 and E.164. dataPartyNumber NumberDigits, -- not used, value reserved. telexPartyNumber NumberDigits, -- not used, value reserved. privateNumber PrivatePartyNumber, -- the numbering plan is according to -- ISO/IEC 11571. nationalStandardPartyNumber NumberDigits, -- not used, value reserved. ... } PublicPartyNumber ::= SEQUENCE { publicTypeOfNumber PublicTypeOfNumber, publicNumberDigits NumberDigits } PrivatePartyNumber ::= SEQUENCE { privateTypeOfNumber PrivateTypeOfNumber, privateNumberDigits NumberDigits } NumberDigits ::= IA5String(SIZE (1..128))(FROM ("0123456789#*,")) DisplayName ::= SEQUENCE { language IA5String OPTIONAL, -- RFC4646 language tag name BMPString(SIZE (1..80)) } PublicTypeOfNumber ::= CHOICE { unknown NULL, -- if used number digits carry prefix -- indicating type -- of number according to national -- recommendations. internationalNumber NULL, nationalNumber NULL, networkSpecificNumber NULL, -- not used, value reserved subscriberNumber NULL, abbreviatedNumber NULL, -- valid only for called party number at -- the outgoing access, network -- substitutes -- appropriate number. ... } PrivateTypeOfNumber ::= CHOICE { unknown NULL, level2RegionalNumber NULL, level1RegionalNumber NULL, pISNSpecificNumber NULL, localNumber NULL, abbreviatedNumber NULL, ... } MobileUIM ::= CHOICE { ansi-41-uim ANSI-41-UIM, -- Americas standards Wireless Networks gsm-uim GSM-UIM, -- European standards Wireless Networks ... } TBCD-STRING ::= IA5String(FROM ("0123456789#*abc")) ANSI-41-UIM ::= SEQUENCE { imsi TBCD-STRING(SIZE (3..16)) OPTIONAL, min TBCD-STRING(SIZE (3..16)) OPTIONAL, mdn TBCD-STRING(SIZE (3..16)) OPTIONAL, msisdn TBCD-STRING(SIZE (3..16)) OPTIONAL, esn TBCD-STRING(SIZE (16)) OPTIONAL, mscid TBCD-STRING(SIZE (3..16)) OPTIONAL, system-id CHOICE {sid TBCD-STRING(SIZE (1..4)), mid TBCD-STRING(SIZE (1..4)), ...}, systemMyTypeCode OCTET STRING(SIZE (1)) OPTIONAL, systemAccessType OCTET STRING(SIZE (1)) OPTIONAL, qualificationInformationCode OCTET STRING(SIZE (1)) OPTIONAL, sesn TBCD-STRING(SIZE (16)) OPTIONAL, soc TBCD-STRING(SIZE (3..16)) OPTIONAL, ... -- IMSI refers to International Mobile Station Identification -- MIN refers to Mobile Identification Number -- MDN refers to Mobile Directory Number -- MSISDN refers to Mobile Station ISDN number -- ESN Refers to Electronic Serial Number -- MSCID refers to Mobile Switching Center number + Market ID or System ID -- SID refers to System Identification and MID refers to Market -- Identification -- SystemMyTypeCode refers to vendor identification number -- SystemAccessType refers to the system access type like power down -- registration or call -- origination or Short Message response etc. -- Qualification Information Code refers to the validity -- SESN Refers to SIM Electronic Serial Number for Security purposes of -- User Identification -- SOC refers to System Operator Code } GSM-UIM ::= SEQUENCE { imsi TBCD-STRING(SIZE (3..16)) OPTIONAL, tmsi OCTET STRING(SIZE (1..4)) OPTIONAL, msisdn TBCD-STRING(SIZE (3..16)) OPTIONAL, imei TBCD-STRING(SIZE (15..16)) OPTIONAL, hplmn TBCD-STRING(SIZE (1..4)) OPTIONAL, vplmn TBCD-STRING(SIZE (1..4)) OPTIONAL, -- IMSI refers to International Mobile Station Identification -- MSISDN refers to Mobile Station ISDN number -- IMEI Refers to International Mobile Equipment Identification -- VPLMN or HPLMN refers to Visiting or Home Public Land Mobile Network -- number ... } IsupNumber ::= CHOICE { e164Number IsupPublicPartyNumber, -- the numbering plan is according to -- ITUT Recs E.163 and E.164. dataPartyNumber IsupDigits, -- not used, value reserved. telexPartyNumber IsupDigits, -- not used, value reserved. privateNumber IsupPrivatePartyNumber, -- the numbering plan is according to -- ISO/IEC 11571. nationalStandardPartyNumber IsupDigits, -- not used, value reserved. ... } IsupPublicPartyNumber ::= SEQUENCE { natureOfAddress NatureOfAddress, address IsupDigits, ... } IsupPrivatePartyNumber ::= SEQUENCE { privateTypeOfNumber PrivateTypeOfNumber, address IsupDigits, ... } NatureOfAddress ::= CHOICE { unknown NULL, subscriberNumber NULL, nationalNumber NULL, internationalNumber NULL, networkSpecificNumber NULL, routingNumberNationalFormat NULL, routingNumberNetworkSpecificFormat NULL, routingNumberWithCalledDirectoryNumber NULL, ... } IsupDigits ::= IA5String(SIZE (1..128))(FROM ("0123456789ABCDE")) ExtendedAliasAddress ::= SEQUENCE { address AliasAddress, presentationIndicator PresentationIndicator OPTIONAL, screeningIndicator ScreeningIndicator OPTIONAL, ... } Endpoint ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, aliasAddress SEQUENCE OF AliasAddress OPTIONAL, callSignalAddress SEQUENCE OF TransportAddress OPTIONAL, rasAddress SEQUENCE OF TransportAddress OPTIONAL, endpointType EndpointType OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, priority INTEGER(0..127) OPTIONAL, remoteExtensionAddress SEQUENCE OF AliasAddress OPTIONAL, destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL, ..., alternateTransportAddresses AlternateTransportAddresses OPTIONAL, circuitInfo CircuitInfo OPTIONAL, featureSet FeatureSet OPTIONAL } AlternateTransportAddresses ::= SEQUENCE { annexE SEQUENCE OF TransportAddress OPTIONAL, ..., sctp SEQUENCE OF TransportAddress OPTIONAL } UseSpecifiedTransport ::= CHOICE {tcp NULL, annexE NULL, ..., sctp NULL } AlternateGK ::= SEQUENCE { rasAddress TransportAddress, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, needToRegister BOOLEAN, priority INTEGER(0..127), ... } AltGKInfo ::= SEQUENCE { alternateGatekeeper SEQUENCE OF AlternateGK, altGKisPermanent BOOLEAN, ... } SecurityServiceMode ::= CHOICE { nonStandard NonStandardParameter, none NULL, default NULL, ... -- can be extended with other specific modes } SecurityCapabilities ::= SEQUENCE { nonStandard NonStandardParameter OPTIONAL, encryption SecurityServiceMode, authenticaton SecurityServiceMode, integrity SecurityServiceMode, ... } SecurityErrors ::= CHOICE { securityWrongSyncTime NULL, -- either time server -- problem or network delay securityReplay NULL, -- replay attack encountered securityWrongGeneralID NULL, -- wrong general ID securityWrongSendersID NULL, -- wrong senders ID securityIntegrityFailed NULL, -- integrity check failed securityWrongOID NULL, -- wrong token OIDs or crypto alg -- OIDs securityDHmismatch NULL, -- mismatch of DH parameters securityCertificateExpired NULL, -- certificate has expired securityCertificateDateInvalid NULL, -- certificate is not yet valid securityCertificateRevoked NULL, -- certificate was found revoked securityCertificateNotReadable NULL, -- decoding error securityCertificateSignatureInvalid NULL, -- wrong signature in the -- certificate securityCertificateMissing NULL, -- no certificate available securityCertificateIncomplete NULL, -- missing expected certificate -- extensions securityUnsupportedCertificateAlgOID NULL, -- crypto algs not understood securityUnknownCA NULL, -- CA/root certificate could not -- be found ... } SecurityErrors2 ::= CHOICE { securityWrongSyncTime NULL, -- either time server problem or network -- delay securityReplay NULL, -- replay attack encountered securityWrongGeneralID NULL, -- wrong general ID securityWrongSendersID NULL, -- wrong senders ID securityIntegrityFailed NULL, -- integrity check failed securityWrongOID NULL, -- wrong token OIDs or crypto alg OIDs ... } H245Security ::= CHOICE { nonStandard NonStandardParameter, noSecurity NULL, tls SecurityCapabilities, ipsec SecurityCapabilities, ... } QseriesOptions ::= SEQUENCE { q932Full BOOLEAN, -- if true, indicates full support for Q.932 q951Full BOOLEAN, -- if true, indicates full support for Q.951 q952Full BOOLEAN, -- if true, indicates full support for Q.952 q953Full BOOLEAN, -- if true, indicates full support for Q.953 q955Full BOOLEAN, -- if true, indicates full support for Q.955 q956Full BOOLEAN, -- if true, indicates full support for Q.956 q957Full BOOLEAN, -- if true, indicates full support for Q.957 q954Info Q954Details, ... } Q954Details ::= SEQUENCE { conferenceCalling BOOLEAN, threePartyService BOOLEAN, ... } GloballyUniqueID ::= OCTET STRING(SIZE (16)) ConferenceIdentifier ::= GloballyUniqueID RequestSeqNum ::= INTEGER(1..65535) GatekeeperIdentifier ::= BMPString(SIZE (1..128)) BandWidth ::= INTEGER(0..4294967295) -- in 100s of bits CallReferenceValue ::= INTEGER(0..65535) EndpointIdentifier ::= BMPString(SIZE (1..128)) ProtocolIdentifier ::= OBJECT IDENTIFIER TimeToLive ::= INTEGER(1..4294967295) -- in seconds H248PackagesDescriptor ::= OCTET STRING -- This octet string contains ASN.1 -- PER encoded H.248 -- PackagesDescriptor H248SignalsDescriptor ::= OCTET STRING -- This octet string contains -- ASN.1 PER encoded H.248 -- SignalsDescriptor. FeatureDescriptor ::= GenericData CallIdentifier ::= SEQUENCE {guid GloballyUniqueID, ... } EncryptIntAlg ::= CHOICE { -- core encryption algorithms for RAS message integrity nonStandard NonStandardParameter, isoAlgorithm OBJECT IDENTIFIER, -- defined in ISO/IEC 9979 ... } NonIsoIntegrityMechanism ::= CHOICE { -- HMAC mechanism used, no truncation, tagging may be necessary! hMAC-MD5 NULL, hMAC-iso10118-2-s EncryptIntAlg, -- according to ISO/IEC 10118-2 using -- EncryptIntAlg as core block -- encryption algorithm (short MAC) hMAC-iso10118-2-l EncryptIntAlg, -- according to ISO/IEC 10118-2 using -- EncryptIntAlg as core block -- encryption algorithm (long MAC) hMAC-iso10118-3 OBJECT IDENTIFIER, -- according to ISO/IEC 10118-3 using -- OID as hash function (OID is -- SHA-1, -- RIPE-MD160, -- RIPE-MD128) ... } IntegrityMechanism ::= CHOICE { -- for RAS message integrity nonStandard NonStandardParameter, digSig NULL, -- indicates to apply a digital signature iso9797 OBJECT IDENTIFIER, -- according to ISO/IEC 9797 using OID as -- core encryption algorithm (X-CBC MAC) nonIsoIM NonIsoIntegrityMechanism, ... } ICV ::= SEQUENCE { algorithmOID OBJECT IDENTIFIER, -- the algorithm used to compute the -- signature icv BIT STRING-- the computed cryptographic -- -- integrity check value or signature } FastStartToken ::= ClearToken (WITH COMPONENTS { ..., timeStamp PRESENT, dhkey PRESENT, generalID PRESENT -- set to "alias" --}) EncodedFastStartToken ::= TYPE-IDENTIFIER.&Type(FastStartToken) CryptoH323Token ::= CHOICE { cryptoEPPwdHash SEQUENCE {alias AliasAddress, -- alias of entity generating hash-- timeStamp TimeStamp, -- timestamp used in hash-- token HASHED{EncodedPwdCertToken-- generalID set to -- -- "alias" -- }}, cryptoGKPwdHash SEQUENCE {gatekeeperId GatekeeperIdentifier, -- GatekeeperID of GK generating -- -- hash timeStamp TimeStamp, -- timestamp used in hash-- token HASHED{EncodedPwdCertToken-- generalID set to -- -- Gatekeeperid -- }}, cryptoEPPwdEncr ENCRYPTED{EncodedPwdCertToken-- generalID set to -- -- Gatekeeperid -- }, cryptoGKPwdEncr ENCRYPTED{EncodedPwdCertToken-- generalID set to -- -- Gatekeeperid -- }, cryptoEPCert SIGNED{EncodedPwdCertToken-- generalID set to -- -- Gatekeeperid -- }, cryptoGKCert SIGNED{EncodedPwdCertToken-- generalID set to alias -- }, cryptoFastStart SIGNED{EncodedFastStartToken}, nestedcryptoToken CryptoToken, ... } DataRate ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, channelRate BandWidth, channelMultiplier INTEGER(1..256) OPTIONAL, ... } CallLinkage ::= SEQUENCE { globalCallId GloballyUniqueID OPTIONAL, threadId GloballyUniqueID OPTIONAL, ... } SupportedPrefix ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, prefix AliasAddress, ... } CapacityReportingCapability ::= SEQUENCE {canReportCallCapacity BOOLEAN, ... } CapacityReportingSpecification ::= SEQUENCE { when SEQUENCE {callStart NULL OPTIONAL, callEnd NULL OPTIONAL, ...}, ... } CallCapacity ::= SEQUENCE { maximumCallCapacity CallCapacityInfo OPTIONAL, currentCallCapacity CallCapacityInfo OPTIONAL, ... } CallCapacityInfo ::= SEQUENCE { voiceGwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, h310GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, h320GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, h321GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, h322GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, h323GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, h324GwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, t120OnlyGwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, t38FaxAnnexbOnlyGwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, terminalCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, mcuCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL, ..., sipGwCallsAvailable SEQUENCE OF CallsAvailable OPTIONAL } CallsAvailable ::= SEQUENCE { calls INTEGER(0..4294967295), group IA5String(SIZE (1..128)) OPTIONAL, ..., carrier CarrierInfo OPTIONAL } CircuitInfo ::= SEQUENCE { sourceCircuitID CircuitIdentifier OPTIONAL, destinationCircuitID CircuitIdentifier OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, ... } CircuitIdentifier ::= SEQUENCE { cic CicInfo OPTIONAL, group GroupID OPTIONAL, ..., carrier CarrierInfo OPTIONAL } CicInfo ::= SEQUENCE { cic SEQUENCE OF OCTET STRING(SIZE (2..4)), pointCode OCTET STRING(SIZE (2..5)), ... } GroupID ::= SEQUENCE { member SEQUENCE OF INTEGER(0..65535) OPTIONAL, group IA5String(SIZE (1..128)), ... } CarrierInfo ::= SEQUENCE { carrierIdentificationCode OCTET STRING(SIZE (3..4)) OPTIONAL, carrierName IA5String(SIZE (1..128)) OPTIONAL, ... } ServiceControlDescriptor ::= CHOICE { url IA5String(SIZE (0..512)), -- indicates a URL- -- referenced -- protocol/resource signal H248SignalsDescriptor, nonStandard NonStandardParameter, callCreditServiceControl CallCreditServiceControl, ... } ServiceControlSession ::= SEQUENCE { sessionId INTEGER(0..255), contents ServiceControlDescriptor OPTIONAL, reason CHOICE {open NULL, refresh NULL, close NULL, ...}, ... } RasUsageInfoTypes ::= SEQUENCE { nonStandardUsageTypes SEQUENCE OF NonStandardParameter, startTime NULL OPTIONAL, endTime NULL OPTIONAL, terminationCause NULL OPTIONAL, ... } RasUsageSpecification ::= SEQUENCE { when SEQUENCE {start NULL OPTIONAL, end NULL OPTIONAL, inIrr NULL OPTIONAL, ...}, callStartingPoint SEQUENCE {alerting NULL OPTIONAL, connect NULL OPTIONAL, ...} OPTIONAL, required RasUsageInfoTypes, ... } RasUsageInformation ::= SEQUENCE { nonStandardUsageFields SEQUENCE OF NonStandardParameter, alertingTime TimeStamp OPTIONAL, connectTime TimeStamp OPTIONAL, endTime TimeStamp OPTIONAL, ... } CallTerminationCause ::= CHOICE { releaseCompleteReason ReleaseCompleteReason, releaseCompleteCauseIE OCTET STRING(SIZE (2..32)), ... } BandwidthDetails ::= SEQUENCE { sender BOOLEAN, -- TRUE=sender, FALSE=receiver multicast BOOLEAN, -- TRUE if stream is multicast bandwidth BandWidth, -- Bandwidth used for stream rtcpAddresses TransportChannelInfo, -- RTCP addresses for media stream ... } CallCreditCapability ::= SEQUENCE { canDisplayAmountString BOOLEAN OPTIONAL, canEnforceDurationLimit BOOLEAN OPTIONAL, ... } CallCreditServiceControl ::= SEQUENCE { amountString BMPString(SIZE (1..512)) OPTIONAL, -- (Unicode) billingMode CHOICE {credit NULL, debit NULL, ...} OPTIONAL, callDurationLimit INTEGER(1..4294967295) OPTIONAL, -- in seconds enforceCallDurationLimit BOOLEAN OPTIONAL, callStartingPoint CHOICE {alerting NULL, connect NULL, ...} OPTIONAL, ... } GenericData ::= SEQUENCE { id GenericIdentifier, parameters SEQUENCE (SIZE (1..512)) OF EnumeratedParameter OPTIONAL, ... } GenericIdentifier ::= CHOICE { standard INTEGER(0..16383, ...), oid OBJECT IDENTIFIER, nonStandard GloballyUniqueID, ... } EnumeratedParameter ::= SEQUENCE { id GenericIdentifier, content Content OPTIONAL, ... } Content ::= CHOICE { raw OCTET STRING, text IA5String, unicode BMPString, bool BOOLEAN, number8 INTEGER(0..255), number16 INTEGER(0..65535), number32 INTEGER(0..4294967295), id GenericIdentifier, alias AliasAddress, transport TransportAddress, compound SEQUENCE (SIZE (1..512)) OF EnumeratedParameter, nested SEQUENCE (SIZE (1..16)) OF GenericData, ... } FeatureSet ::= SEQUENCE { replacementFeatureSet BOOLEAN, neededFeatures SEQUENCE OF FeatureDescriptor OPTIONAL, desiredFeatures SEQUENCE OF FeatureDescriptor OPTIONAL, supportedFeatures SEQUENCE OF FeatureDescriptor OPTIONAL, ... } TransportChannelInfo ::= SEQUENCE { sendAddress TransportAddress OPTIONAL, recvAddress TransportAddress OPTIONAL, ... } RTPSession ::= SEQUENCE { rtpAddress TransportChannelInfo, rtcpAddress TransportChannelInfo, cname PrintableString, ssrc INTEGER(1..4294967295), sessionId INTEGER(1..255), associatedSessionIds SEQUENCE OF INTEGER(1..255), ..., multicast NULL OPTIONAL, bandwidth BandWidth OPTIONAL } RehomingModel ::= CHOICE {gatekeeperBased NULL, endpointBased NULL } RasMessage ::= CHOICE { gatekeeperRequest GatekeeperRequest, gatekeeperConfirm GatekeeperConfirm, gatekeeperReject GatekeeperReject, registrationRequest RegistrationRequest, registrationConfirm RegistrationConfirm, registrationReject RegistrationReject, unregistrationRequest UnregistrationRequest, unregistrationConfirm UnregistrationConfirm, unregistrationReject UnregistrationReject, admissionRequest AdmissionRequest, admissionConfirm AdmissionConfirm, admissionReject AdmissionReject, bandwidthRequest BandwidthRequest, bandwidthConfirm BandwidthConfirm, bandwidthReject BandwidthReject, disengageRequest DisengageRequest, disengageConfirm DisengageConfirm, disengageReject DisengageReject, locationRequest LocationRequest, locationConfirm LocationConfirm, locationReject LocationReject, infoRequest InfoRequest, infoRequestResponse InfoRequestResponse, nonStandardMessage NonStandardMessage, unknownMessageResponse UnknownMessageResponse, ..., requestInProgress RequestInProgress, resourcesAvailableIndicate ResourcesAvailableIndicate, resourcesAvailableConfirm ResourcesAvailableConfirm, infoRequestAck InfoRequestAck, infoRequestNak InfoRequestNak, serviceControlIndication ServiceControlIndication, serviceControlResponse ServiceControlResponse, admissionConfirmSequence SEQUENCE OF AdmissionConfirm } GatekeeperRequest ::= SEQUENCE --(GRQ) { requestSeqNum RequestSeqNum, protocolIdentifier ProtocolIdentifier, nonStandardData NonStandardParameter OPTIONAL, rasAddress TransportAddress, endpointType EndpointType, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, callServices QseriesOptions OPTIONAL, endpointAlias SEQUENCE OF AliasAddress OPTIONAL, ..., alternateEndpoints SEQUENCE OF Endpoint OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, authenticationCapability SEQUENCE OF AuthenticationMechanism OPTIONAL, algorithmOIDs SEQUENCE OF OBJECT IDENTIFIER OPTIONAL, integrity SEQUENCE OF IntegrityMechanism OPTIONAL, integrityCheckValue ICV OPTIONAL, supportsAltGK NULL OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, supportsAssignedGK BOOLEAN, assignedGatekeeper AlternateGK OPTIONAL } GatekeeperConfirm ::= SEQUENCE --(GCF) { requestSeqNum RequestSeqNum, protocolIdentifier ProtocolIdentifier, nonStandardData NonStandardParameter OPTIONAL, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, rasAddress TransportAddress, ..., alternateGatekeeper SEQUENCE OF AlternateGK OPTIONAL, authenticationMode AuthenticationMechanism OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, algorithmOID OBJECT IDENTIFIER OPTIONAL, integrity SEQUENCE OF IntegrityMechanism OPTIONAL, integrityCheckValue ICV OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL, rehomingModel RehomingModel OPTIONAL } GatekeeperReject ::= SEQUENCE --(GRJ) { requestSeqNum RequestSeqNum, protocolIdentifier ProtocolIdentifier, nonStandardData NonStandardParameter OPTIONAL, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, rejectReason GatekeeperRejectReason, ..., altGKInfo AltGKInfo OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL } GatekeeperRejectReason ::= CHOICE { resourceUnavailable NULL, terminalExcluded NULL, -- permission failure, not a resource -- failure invalidRevision NULL, undefinedReason NULL, ..., securityDenial NULL, genericDataReason NULL, neededFeatureNotSupported NULL, securityError SecurityErrors } RegistrationRequest ::= SEQUENCE --(RRQ) { requestSeqNum RequestSeqNum, protocolIdentifier ProtocolIdentifier, nonStandardData NonStandardParameter OPTIONAL, discoveryComplete BOOLEAN, callSignalAddress SEQUENCE OF TransportAddress, rasAddress SEQUENCE OF TransportAddress, terminalType EndpointType, terminalAlias SEQUENCE OF AliasAddress OPTIONAL, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, endpointVendor VendorIdentifier, ..., alternateEndpoints SEQUENCE OF Endpoint OPTIONAL, timeToLive TimeToLive OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, keepAlive BOOLEAN, endpointIdentifier EndpointIdentifier OPTIONAL, willSupplyUUIEs BOOLEAN, maintainConnection BOOLEAN, alternateTransportAddresses AlternateTransportAddresses OPTIONAL, additiveRegistration NULL OPTIONAL, terminalAliasPattern SEQUENCE OF AddressPattern OPTIONAL, supportsAltGK NULL OPTIONAL, usageReportingCapability RasUsageInfoTypes OPTIONAL, multipleCalls BOOLEAN OPTIONAL, supportedH248Packages SEQUENCE OF H248PackagesDescriptor OPTIONAL, callCreditCapability CallCreditCapability OPTIONAL, capacityReportingCapability CapacityReportingCapability OPTIONAL, capacity CallCapacity OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, restart NULL OPTIONAL, supportsACFSequences NULL OPTIONAL, supportsAssignedGK BOOLEAN, assignedGatekeeper AlternateGK OPTIONAL, transportQOS TransportQOS OPTIONAL, language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL } RegistrationConfirm ::= SEQUENCE --(RCF) { requestSeqNum RequestSeqNum, protocolIdentifier ProtocolIdentifier, nonStandardData NonStandardParameter OPTIONAL, callSignalAddress SEQUENCE OF TransportAddress, terminalAlias SEQUENCE OF AliasAddress OPTIONAL, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, endpointIdentifier EndpointIdentifier, ..., alternateGatekeeper SEQUENCE OF AlternateGK OPTIONAL, timeToLive TimeToLive OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, willRespondToIRR BOOLEAN, preGrantedARQ SEQUENCE {makeCall BOOLEAN, useGKCallSignalAddressToMakeCall BOOLEAN, answerCall BOOLEAN, useGKCallSignalAddressToAnswer BOOLEAN, ..., irrFrequencyInCall INTEGER(1..65535) OPTIONAL, -- in seconds; -- -- not present -- if GK does -- not want IRRs totalBandwidthRestriction BandWidth OPTIONAL, -- total limit -- -- for all -- concurrent -- calls alternateTransportAddresses AlternateTransportAddresses OPTIONAL, useSpecifiedTransport UseSpecifiedTransport OPTIONAL } OPTIONAL, maintainConnection BOOLEAN, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, supportsAdditiveRegistration NULL OPTIONAL, terminalAliasPattern SEQUENCE OF AddressPattern OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix OPTIONAL, usageSpec SEQUENCE OF RasUsageSpecification OPTIONAL, featureServerAlias AliasAddress OPTIONAL, capacityReportingSpec CapacityReportingSpecification OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL, rehomingModel RehomingModel OPTIONAL, transportQOS TransportQOS OPTIONAL } RegistrationReject ::= SEQUENCE --(RRJ) { requestSeqNum RequestSeqNum, protocolIdentifier ProtocolIdentifier, nonStandardData NonStandardParameter OPTIONAL, rejectReason RegistrationRejectReason, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, ..., altGKInfo AltGKInfo OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL } RegistrationRejectReason ::= CHOICE { discoveryRequired NULL, invalidRevision NULL, invalidCallSignalAddress NULL, invalidRASAddress NULL, -- supplied address is invalid duplicateAlias SEQUENCE OF AliasAddress, -- alias registered to another -- endpoint invalidTerminalType NULL, undefinedReason NULL, transportNotSupported NULL, -- one or more of the transports ..., transportQOSNotSupported NULL, -- endpoint QoS not supported resourceUnavailable NULL, -- gatekeeper resources exhausted invalidAlias NULL, -- alias not consistent with -- gatekeeper rules securityDenial NULL, fullRegistrationRequired NULL, -- registration permission has -- expired additiveRegistrationNotSupported NULL, invalidTerminalAliases SEQUENCE {terminalAlias SEQUENCE OF AliasAddress OPTIONAL, terminalAliasPattern SEQUENCE OF AddressPattern OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix OPTIONAL, ...}, genericDataReason NULL, neededFeatureNotSupported NULL, securityError SecurityErrors, registerWithAssignedGK NULL } UnregistrationRequest ::= SEQUENCE --(URQ) { requestSeqNum RequestSeqNum, callSignalAddress SEQUENCE OF TransportAddress, endpointAlias SEQUENCE OF AliasAddress OPTIONAL, nonStandardData NonStandardParameter OPTIONAL, endpointIdentifier EndpointIdentifier OPTIONAL, ..., alternateEndpoints SEQUENCE OF Endpoint OPTIONAL, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, reason UnregRequestReason OPTIONAL, endpointAliasPattern SEQUENCE OF AddressPattern OPTIONAL, supportedPrefixes SEQUENCE OF SupportedPrefix OPTIONAL, alternateGatekeeper SEQUENCE OF AlternateGK OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL } UnregRequestReason ::= CHOICE { reregistrationRequired NULL, ttlExpired NULL, securityDenial NULL, undefinedReason NULL, ..., maintenance NULL, securityError SecurityErrors2, registerWithAssignedGK NULL } UnregistrationConfirm ::= SEQUENCE --(UCF) { requestSeqNum RequestSeqNum, nonStandardData NonStandardParameter OPTIONAL, ..., tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL } UnregistrationReject ::= SEQUENCE --(URJ) { requestSeqNum RequestSeqNum, rejectReason UnregRejectReason, nonStandardData NonStandardParameter OPTIONAL, ..., altGKInfo AltGKInfo OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL } UnregRejectReason ::= CHOICE { notCurrentlyRegistered NULL, callInProgress NULL, undefinedReason NULL, ..., permissionDenied NULL, -- requesting user not allowed to -- unregister specified user securityDenial NULL, securityError SecurityErrors2 } AdmissionRequest ::= SEQUENCE --(ARQ) { requestSeqNum RequestSeqNum, callType CallType, callModel CallModel OPTIONAL, endpointIdentifier EndpointIdentifier, destinationInfo SEQUENCE OF AliasAddress OPTIONAL, destCallSignalAddress TransportAddress OPTIONAL, destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL, srcInfo SEQUENCE OF AliasAddress, srcCallSignalAddress TransportAddress OPTIONAL, bandWidth BandWidth, callReferenceValue CallReferenceValue, nonStandardData NonStandardParameter OPTIONAL, callServices QseriesOptions OPTIONAL, conferenceID ConferenceIdentifier, activeMC BOOLEAN, answerCall BOOLEAN, -- answering a call ..., canMapAlias BOOLEAN, -- can handle alias address callIdentifier CallIdentifier, srcAlternatives SEQUENCE OF Endpoint OPTIONAL, destAlternatives SEQUENCE OF Endpoint OPTIONAL, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, transportQOS TransportQOS OPTIONAL, willSupplyUUIEs BOOLEAN, callLinkage CallLinkage OPTIONAL, gatewayDataRate DataRate OPTIONAL, capacity CallCapacity OPTIONAL, circuitInfo CircuitInfo OPTIONAL, desiredProtocols SEQUENCE OF SupportedProtocols OPTIONAL, desiredTunnelledProtocol TunnelledProtocol OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, canMapSrcAlias BOOLEAN } CallType ::= CHOICE { pointToPoint NULL, -- Point-to-point oneToN NULL, -- no interaction (FFS) nToOne NULL, -- no interaction (FFS) nToN NULL, -- interactive (multipoint) ... } CallModel ::= CHOICE {direct NULL, gatekeeperRouted NULL, ... } TransportQOS ::= CHOICE { endpointControlled NULL, gatekeeperControlled NULL, noControl NULL, ..., qOSCapabilities SEQUENCE SIZE (1..256) OF QOSCapability } AdmissionConfirm ::= SEQUENCE --(ACF) { requestSeqNum RequestSeqNum, bandWidth BandWidth, callModel CallModel, destCallSignalAddress TransportAddress, irrFrequency INTEGER(1..65535) OPTIONAL, nonStandardData NonStandardParameter OPTIONAL, ..., destinationInfo SEQUENCE OF AliasAddress OPTIONAL, destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL, destinationType EndpointType OPTIONAL, remoteExtensionAddress SEQUENCE OF AliasAddress OPTIONAL, alternateEndpoints SEQUENCE OF Endpoint OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, transportQOS TransportQOS OPTIONAL, willRespondToIRR BOOLEAN, uuiesRequested UUIEsRequested, language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL, alternateTransportAddresses AlternateTransportAddresses OPTIONAL, useSpecifiedTransport UseSpecifiedTransport OPTIONAL, circuitInfo CircuitInfo OPTIONAL, usageSpec SEQUENCE OF RasUsageSpecification OPTIONAL, supportedProtocols SEQUENCE OF SupportedProtocols OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, multipleCalls BOOLEAN OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, modifiedSrcInfo SEQUENCE OF AliasAddress OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL } UUIEsRequested ::= SEQUENCE { setup BOOLEAN, callProceeding BOOLEAN, connect BOOLEAN, alerting BOOLEAN, information BOOLEAN, releaseComplete BOOLEAN, facility BOOLEAN, progress BOOLEAN, empty BOOLEAN, ..., status BOOLEAN, statusInquiry BOOLEAN, setupAcknowledge BOOLEAN, notify BOOLEAN } AdmissionReject ::= SEQUENCE --(ARJ) { requestSeqNum RequestSeqNum, rejectReason AdmissionRejectReason, nonStandardData NonStandardParameter OPTIONAL, ..., altGKInfo AltGKInfo OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, callSignalAddress SEQUENCE OF TransportAddress OPTIONAL, integrityCheckValue ICV OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL } AdmissionRejectReason ::= CHOICE { calledPartyNotRegistered NULL, -- cannot translate address invalidPermission NULL, -- permission has expired requestDenied NULL, undefinedReason NULL, callerNotRegistered NULL, routeCallToGatekeeper NULL, invalidEndpointIdentifier NULL, resourceUnavailable NULL, ..., securityDenial NULL, qosControlNotSupported NULL, incompleteAddress NULL, aliasesInconsistent NULL, -- multiple aliases in request -- identify distinct people routeCallToSCN SEQUENCE OF PartyNumber, exceedsCallCapacity NULL, -- destination does not have the -- capacity for this call collectDestination NULL, collectPIN NULL, genericDataReason NULL, neededFeatureNotSupported NULL, securityError SecurityErrors2, securityDHmismatch NULL, -- mismatch of DH parameters noRouteToDestination NULL, -- destination unreachable unallocatedNumber NULL, -- destination number unassigned registerWithAssignedGK NULL } BandwidthRequest ::= SEQUENCE --(BRQ) { requestSeqNum RequestSeqNum, endpointIdentifier EndpointIdentifier, conferenceID ConferenceIdentifier, callReferenceValue CallReferenceValue, callType CallType OPTIONAL, bandWidth BandWidth, nonStandardData NonStandardParameter OPTIONAL, ..., callIdentifier CallIdentifier, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, answeredCall BOOLEAN, callLinkage CallLinkage OPTIONAL, capacity CallCapacity OPTIONAL, usageInformation RasUsageInformation OPTIONAL, bandwidthDetails SEQUENCE OF BandwidthDetails OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, transportQOS TransportQOS OPTIONAL } BandwidthConfirm ::= SEQUENCE --(BCF) { requestSeqNum RequestSeqNum, bandWidth BandWidth, nonStandardData NonStandardParameter OPTIONAL, ..., tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, capacity CallCapacity OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, transportQOS TransportQOS OPTIONAL } BandwidthReject ::= SEQUENCE --(BRJ) { requestSeqNum RequestSeqNum, rejectReason BandRejectReason, allowedBandWidth BandWidth, nonStandardData NonStandardParameter OPTIONAL, ..., altGKInfo AltGKInfo OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL } BandRejectReason ::= CHOICE { notBound NULL, -- discovery permission has aged invalidConferenceID NULL, -- possible revision invalidPermission NULL, -- true permission violation insufficientResources NULL, invalidRevision NULL, undefinedReason NULL, ..., securityDenial NULL, securityError SecurityErrors2 } LocationRequest ::= SEQUENCE --(LRQ) { requestSeqNum RequestSeqNum, endpointIdentifier EndpointIdentifier OPTIONAL, destinationInfo SEQUENCE OF AliasAddress, nonStandardData NonStandardParameter OPTIONAL, replyAddress TransportAddress, ..., sourceInfo SEQUENCE OF AliasAddress OPTIONAL, canMapAlias BOOLEAN, -- can handle alias address gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, desiredProtocols SEQUENCE OF SupportedProtocols OPTIONAL, desiredTunnelledProtocol TunnelledProtocol OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, hopCount INTEGER(1..255) OPTIONAL, circuitInfo CircuitInfo OPTIONAL, callIdentifier CallIdentifier OPTIONAL, bandWidth BandWidth OPTIONAL, sourceEndpointInfo SEQUENCE OF AliasAddress OPTIONAL, canMapSrcAlias BOOLEAN, language SEQUENCE OF IA5String(SIZE (1..32)) OPTIONAL } LocationConfirm ::= SEQUENCE --(LCF) { requestSeqNum RequestSeqNum, callSignalAddress TransportAddress, rasAddress TransportAddress, nonStandardData NonStandardParameter OPTIONAL, ..., destinationInfo SEQUENCE OF AliasAddress OPTIONAL, destExtraCallInfo SEQUENCE OF AliasAddress OPTIONAL, destinationType EndpointType OPTIONAL, remoteExtensionAddress SEQUENCE OF AliasAddress OPTIONAL, alternateEndpoints SEQUENCE OF Endpoint OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, alternateTransportAddresses AlternateTransportAddresses OPTIONAL, supportedProtocols SEQUENCE OF SupportedProtocols OPTIONAL, multipleCalls BOOLEAN OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, circuitInfo CircuitInfo OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, modifiedSrcInfo SEQUENCE OF AliasAddress OPTIONAL, bandWidth BandWidth OPTIONAL } LocationReject ::= SEQUENCE --(LRJ) { requestSeqNum RequestSeqNum, rejectReason LocationRejectReason, nonStandardData NonStandardParameter OPTIONAL, ..., altGKInfo AltGKInfo OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL } LocationRejectReason ::= CHOICE { notRegistered NULL, invalidPermission NULL, -- exclusion by administrator or feature requestDenied NULL, undefinedReason NULL, ..., securityDenial NULL, aliasesInconsistent NULL, -- multiple aliases in request -- identify distinct people routeCalltoSCN SEQUENCE OF PartyNumber, resourceUnavailable NULL, genericDataReason NULL, neededFeatureNotSupported NULL, hopCountExceeded NULL, incompleteAddress NULL, securityError SecurityErrors2, securityDHmismatch NULL, -- mismatch of DH parameters noRouteToDestination NULL, -- destination unreachable unallocatedNumber NULL -- destination number unassigned } DisengageRequest ::= SEQUENCE --(DRQ) { requestSeqNum RequestSeqNum, endpointIdentifier EndpointIdentifier, conferenceID ConferenceIdentifier, callReferenceValue CallReferenceValue, disengageReason DisengageReason, nonStandardData NonStandardParameter OPTIONAL, ..., callIdentifier CallIdentifier, gatekeeperIdentifier GatekeeperIdentifier OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, answeredCall BOOLEAN, callLinkage CallLinkage OPTIONAL, capacity CallCapacity OPTIONAL, circuitInfo CircuitInfo OPTIONAL, usageInformation RasUsageInformation OPTIONAL, terminationCause CallTerminationCause OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL } DisengageReason ::= CHOICE { forcedDrop NULL, -- gatekeeper is forcing the drop normalDrop NULL, -- associated with normal drop undefinedReason NULL, ... } DisengageConfirm ::= SEQUENCE --(DCF) { requestSeqNum RequestSeqNum, nonStandardData NonStandardParameter OPTIONAL, ..., tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, capacity CallCapacity OPTIONAL, circuitInfo CircuitInfo OPTIONAL, usageInformation RasUsageInformation OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL } DisengageReject ::= SEQUENCE --(DRJ) { requestSeqNum RequestSeqNum, rejectReason DisengageRejectReason, nonStandardData NonStandardParameter OPTIONAL, ..., altGKInfo AltGKInfo OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL } DisengageRejectReason ::= CHOICE { notRegistered NULL, -- not registered with gatekeeper requestToDropOther NULL, -- cannot request drop for others ..., securityDenial NULL, securityError SecurityErrors2 } InfoRequest ::= SEQUENCE --(IRQ) { requestSeqNum RequestSeqNum, callReferenceValue CallReferenceValue, nonStandardData NonStandardParameter OPTIONAL, replyAddress TransportAddress OPTIONAL, ..., callIdentifier CallIdentifier, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, uuiesRequested UUIEsRequested OPTIONAL, callLinkage CallLinkage OPTIONAL, usageInfoRequested RasUsageInfoTypes OPTIONAL, segmentedResponseSupported NULL OPTIONAL, nextSegmentRequested INTEGER(0..65535) OPTIONAL, capacityInfoRequested NULL OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, assignedGatekeeper AlternateGK OPTIONAL } InfoRequestResponse ::= SEQUENCE --(IRR) { nonStandardData NonStandardParameter OPTIONAL, requestSeqNum RequestSeqNum, endpointType EndpointType, endpointIdentifier EndpointIdentifier, rasAddress TransportAddress, callSignalAddress SEQUENCE OF TransportAddress, endpointAlias SEQUENCE OF AliasAddress OPTIONAL, perCallInfo SEQUENCE OF SEQUENCE {nonStandardData NonStandardParameter OPTIONAL, callReferenceValue CallReferenceValue, conferenceID ConferenceIdentifier, originator BOOLEAN OPTIONAL, audio SEQUENCE OF RTPSession OPTIONAL, video SEQUENCE OF RTPSession OPTIONAL, data SEQUENCE OF TransportChannelInfo OPTIONAL, h245 TransportChannelInfo, callSignalling TransportChannelInfo, callType CallType, bandWidth BandWidth, callModel CallModel, ..., callIdentifier CallIdentifier, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, substituteConfIDs SEQUENCE OF ConferenceIdentifier, pdu SEQUENCE OF SEQUENCE {h323pdu H323-UU-PDU, sent BOOLEAN -- TRUE is sent, FALSE is received } OPTIONAL, callLinkage CallLinkage OPTIONAL, usageInformation RasUsageInformation OPTIONAL, circuitInfo CircuitInfo OPTIONAL} OPTIONAL, ..., tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, needResponse BOOLEAN, capacity CallCapacity OPTIONAL, irrStatus InfoRequestResponseStatus OPTIONAL, unsolicited BOOLEAN, genericData SEQUENCE OF GenericData OPTIONAL } InfoRequestResponseStatus ::= CHOICE { complete NULL, incomplete NULL, segment INTEGER(0..65535), invalidCall NULL, ... } InfoRequestAck ::= SEQUENCE --(IACK) { requestSeqNum RequestSeqNum, nonStandardData NonStandardParameter OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, ... } InfoRequestNak ::= SEQUENCE --(INAK) { requestSeqNum RequestSeqNum, nonStandardData NonStandardParameter OPTIONAL, nakReason InfoRequestNakReason, altGKInfo AltGKInfo OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, ... } InfoRequestNakReason ::= CHOICE { notRegistered NULL, -- not registered with gatekeeper securityDenial NULL, undefinedReason NULL, ..., securityError SecurityErrors2 } NonStandardMessage ::= SEQUENCE { requestSeqNum RequestSeqNum, nonStandardData NonStandardParameter, ..., tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL } UnknownMessageResponse ::= SEQUENCE -- (XRS) { requestSeqNum RequestSeqNum, ..., tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, messageNotUnderstood OCTET STRING } RequestInProgress ::= SEQUENCE -- (RIP) { requestSeqNum RequestSeqNum, nonStandardData NonStandardParameter OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, delay INTEGER(1..65535), ... } ResourcesAvailableIndicate ::= SEQUENCE --(RAI) { requestSeqNum RequestSeqNum, protocolIdentifier ProtocolIdentifier, nonStandardData NonStandardParameter OPTIONAL, endpointIdentifier EndpointIdentifier, protocols SEQUENCE OF SupportedProtocols, almostOutOfResources BOOLEAN, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, ..., capacity CallCapacity OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL } ResourcesAvailableConfirm ::= SEQUENCE --(RAC) { requestSeqNum RequestSeqNum, protocolIdentifier ProtocolIdentifier, nonStandardData NonStandardParameter OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, ..., genericData SEQUENCE OF GenericData OPTIONAL } ServiceControlIndication ::= SEQUENCE --(SCI) { requestSeqNum RequestSeqNum, nonStandardData NonStandardParameter OPTIONAL, serviceControl SEQUENCE OF ServiceControlSession, endpointIdentifier EndpointIdentifier OPTIONAL, callSpecific SEQUENCE {callIdentifier CallIdentifier, conferenceID ConferenceIdentifier, answeredCall BOOLEAN, ...} OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, ... } ServiceControlResponse ::= SEQUENCE --(SCR) { requestSeqNum RequestSeqNum, result CHOICE {started NULL, failed NULL, stopped NULL, notAvailable NULL, neededFeatureNotSupported NULL, ...} OPTIONAL, nonStandardData NonStandardParameter OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoH323Token OPTIONAL, integrityCheckValue ICV OPTIONAL, featureSet FeatureSet OPTIONAL, genericData SEQUENCE OF GenericData OPTIONAL, ... } END -- of ASN.1 -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
C
wireshark/epan/dissectors/asn1/h225/packet-h225-template.c
/* packet-h225.c * Routines for h225 packet dissection * Copyright 2005, Anders Broman <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * * To quote the author of the previous H323/H225/H245 dissector: * "This is a complete replacement of the previous limitied dissector * that Ronnie was crazy enough to write by hand. It was a lot of time * to hack it by hand, but it is incomplete and buggy and it is good when * it will go away." * Ronnie did a great job and all the VoIP users had made good use of it! * Credit to Tomas Kukosa for developing the asn2wrs compiler. * */ #include "config.h" #include <epan/packet.h> #include <epan/conversation.h> #include <epan/proto_data.h> #include <epan/prefs.h> #include <epan/oids.h> #include <epan/next_tvb.h> #include <epan/asn1.h> #include <epan/t35.h> #include <epan/tap.h> #include <epan/stat_tap_ui.h> #include <epan/rtd_table.h> #include "packet-frame.h" #include "packet-tpkt.h" #include "packet-per.h" #include "packet-h225.h" #include "packet-h235.h" #include "packet-h245.h" #include "packet-h323.h" #include "packet-q931.h" #include "packet-tls.h" #define PNAME "H323-MESSAGES" #define PSNAME "H.225.0" #define PFNAME "h225" #define UDP_PORT_RAS_RANGE "1718-1719" #define TCP_PORT_CS 1720 #define TLS_PORT_CS 1300 void proto_register_h225(void); static h225_packet_info* create_h225_packet_info(packet_info *pinfo); static void ras_call_matching(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, h225_packet_info *pi); /* Item of ras request list*/ typedef struct _h225ras_call_t { guint32 requestSeqNum; e_guid_t guid; guint32 req_num; /* frame number request seen */ guint32 rsp_num; /* frame number response seen */ nstime_t req_time; /* arrival time of request */ gboolean responded; /* true, if request has been responded */ struct _h225ras_call_t *next_call; /* pointer to next ras request with same SequenceNumber and conversation handle */ } h225ras_call_t; /* Item of ras-request key list*/ typedef struct _h225ras_call_info_key { guint reqSeqNum; conversation_t *conversation; } h225ras_call_info_key; /* Global Memory Chunks for lists and Global hash tables*/ static wmem_map_t *ras_calls[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; /* functions, needed using ras-request and halfcall matching*/ static h225ras_call_t * find_h225ras_call(h225ras_call_info_key *h225ras_call_key ,int category); static h225ras_call_t * new_h225ras_call(h225ras_call_info_key *h225ras_call_key, packet_info *pinfo, e_guid_t *guid, int category); static h225ras_call_t * append_h225ras_call(h225ras_call_t *prev_call, packet_info *pinfo, e_guid_t *guid, int category); static dissector_handle_t h225ras_handle; static dissector_handle_t data_handle; /* Subdissector tables */ static dissector_table_t nsp_object_dissector_table; static dissector_table_t nsp_h221_dissector_table; static dissector_table_t tp_dissector_table; static dissector_table_t gef_name_dissector_table; static dissector_table_t gef_content_dissector_table; static dissector_handle_t h245_handle=NULL; static dissector_handle_t h245dg_handle=NULL; static dissector_handle_t h4501_handle=NULL; static dissector_handle_t nsp_handle; static dissector_handle_t tp_handle; static next_tvb_list_t *h245_list; static next_tvb_list_t *tp_list; /* Initialize the protocol and registered fields */ static int h225_tap = -1; static int proto_h225 = -1; static int hf_h221Manufacturer = -1; static int hf_h225_ras_req_frame = -1; static int hf_h225_ras_rsp_frame = -1; static int hf_h225_ras_dup = -1; static int hf_h225_ras_deltatime = -1; static int hf_h225_debug_dissector_try_string = -1; #include "packet-h225-hf.c" /* Initialize the subtree pointers */ static gint ett_h225 = -1; #include "packet-h225-ett.c" /* Preferences */ static guint h225_tls_port = TLS_PORT_CS; static gboolean h225_reassembly = TRUE; static gboolean h225_h245_in_tree = TRUE; static gboolean h225_tp_in_tree = TRUE; /* Global variables */ static guint32 ipv4_address; static ws_in6_addr ipv6_address; static ws_in6_addr ipv6_address_zeros = {{0}}; static guint32 ip_port; static gboolean contains_faststart = FALSE; static e_guid_t *call_id_guid; /* NonStandardParameter */ static const char *nsiOID; static guint32 h221NonStandard; static guint32 t35CountryCode; static guint32 t35Extension; static guint32 manufacturerCode; /* TunnelledProtocol */ static const char *tpOID; static const value_string ras_message_category[] = { { 0, "Gatekeeper "}, { 1, "Registration "}, { 2, "UnRegistration"}, { 3, "Admission "}, { 4, "Bandwidth "}, { 5, "Disengage "}, { 6, "Location "}, { 0, NULL } }; typedef enum _ras_type { RAS_REQUEST, RAS_CONFIRM, RAS_REJECT, RAS_OTHER }ras_type; typedef enum _ras_category { RAS_GATEKEEPER, RAS_REGISTRATION, RAS_UNREGISTRATION, RAS_ADMISSION, RAS_BANDWIDTH, RAS_DISENGAGE, RAS_LOCATION, RAS_OTHERS }ras_category; #define NUM_RAS_STATS 7 static tap_packet_status h225rassrt_packet(void *phs, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *phi, tap_flags_t flags _U_) { rtd_data_t* rtd_data = (rtd_data_t*)phs; rtd_stat_table* rs = &rtd_data->stat_table; const h225_packet_info *pi=(const h225_packet_info *)phi; ras_type rasmsg_type = RAS_OTHER; ras_category rascategory = RAS_OTHERS; if (pi->msg_type != H225_RAS || pi->msg_tag == -1) { /* No RAS Message or uninitialized msg_tag -> return */ return TAP_PACKET_DONT_REDRAW; } if (pi->msg_tag < 21) { /* */ rascategory = (ras_category)(pi->msg_tag / 3); rasmsg_type = (ras_type)(pi->msg_tag % 3); } else { /* No SRT yet (ToDo) */ return TAP_PACKET_DONT_REDRAW; } switch(rasmsg_type) { case RAS_REQUEST: if(pi->is_duplicate){ rs->time_stats[rascategory].req_dup_num++; } else { rs->time_stats[rascategory].open_req_num++; } break; case RAS_CONFIRM: /* no break - delay stats are identical for Confirm and Reject */ case RAS_REJECT: if(pi->is_duplicate){ /* Duplicate is ignored */ rs->time_stats[rascategory].rsp_dup_num++; } else if (!pi->request_available) { /* no request was seen, ignore response */ rs->time_stats[rascategory].disc_rsp_num++; } else { rs->time_stats[rascategory].open_req_num--; time_stat_update(&(rs->time_stats[rascategory].rtd[0]),&(pi->delta_time), pinfo); } break; default: return TAP_PACKET_DONT_REDRAW; } return TAP_PACKET_REDRAW; } #include "packet-h225-fn.c" /* Forward declaration we need below */ void proto_reg_handoff_h225(void); /* * Functions needed for Ras-Hash-Table */ /* compare 2 keys */ static gint h225ras_call_equal(gconstpointer k1, gconstpointer k2) { const h225ras_call_info_key* key1 = (const h225ras_call_info_key*) k1; const h225ras_call_info_key* key2 = (const h225ras_call_info_key*) k2; return (key1->reqSeqNum == key2->reqSeqNum && key1->conversation == key2->conversation); } /* calculate a hash key */ static guint h225ras_call_hash(gconstpointer k) { const h225ras_call_info_key* key = (const h225ras_call_info_key*) k; return key->reqSeqNum + GPOINTER_TO_UINT(key->conversation); } h225ras_call_t * find_h225ras_call(h225ras_call_info_key *h225ras_call_key ,int category) { h225ras_call_t *h225ras_call = (h225ras_call_t *)wmem_map_lookup(ras_calls[category], h225ras_call_key); return h225ras_call; } h225ras_call_t * new_h225ras_call(h225ras_call_info_key *h225ras_call_key, packet_info *pinfo, e_guid_t *guid, int category) { h225ras_call_info_key *new_h225ras_call_key; h225ras_call_t *h225ras_call = NULL; /* Prepare the value data. "req_num" and "rsp_num" are frame numbers; frame numbers are 1-origin, so we use 0 to mean "we don't yet know in which frame the reply for this call appears". */ new_h225ras_call_key = wmem_new(wmem_file_scope(), h225ras_call_info_key); new_h225ras_call_key->reqSeqNum = h225ras_call_key->reqSeqNum; new_h225ras_call_key->conversation = h225ras_call_key->conversation; h225ras_call = wmem_new(wmem_file_scope(), h225ras_call_t); h225ras_call->req_num = pinfo->num; h225ras_call->rsp_num = 0; h225ras_call->requestSeqNum = h225ras_call_key->reqSeqNum; h225ras_call->responded = FALSE; h225ras_call->next_call = NULL; h225ras_call->req_time=pinfo->abs_ts; h225ras_call->guid=*guid; /* store it */ wmem_map_insert(ras_calls[category], new_h225ras_call_key, h225ras_call); return h225ras_call; } h225ras_call_t * append_h225ras_call(h225ras_call_t *prev_call, packet_info *pinfo, e_guid_t *guid, int category _U_) { h225ras_call_t *h225ras_call = NULL; /* Prepare the value data. "req_num" and "rsp_num" are frame numbers; frame numbers are 1-origin, so we use 0 to mean "we don't yet know in which frame the reply for this call appears". */ h225ras_call = wmem_new(wmem_file_scope(), h225ras_call_t); h225ras_call->req_num = pinfo->num; h225ras_call->rsp_num = 0; h225ras_call->requestSeqNum = prev_call->requestSeqNum; h225ras_call->responded = FALSE; h225ras_call->next_call = NULL; h225ras_call->req_time=pinfo->abs_ts; h225ras_call->guid=*guid; prev_call->next_call = h225ras_call; return h225ras_call; } static void h225_frame_end(void) { /* next_tvb pointers are allocated in packet scope, clear it. */ h245_list = NULL; tp_list = NULL; } static int dissect_h225_H323UserInformation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { proto_item *it; proto_tree *tr; int offset = 0; h225_packet_info* h225_pi; /* Init struct for collecting h225_packet_info */ h225_pi = create_h225_packet_info(pinfo); h225_pi->msg_type = H225_CS; p_add_proto_data(pinfo->pool, pinfo, proto_h225, 0, h225_pi); register_frame_end_routine(pinfo, h225_frame_end); h245_list = next_tvb_list_new(pinfo->pool); tp_list = next_tvb_list_new(pinfo->pool); col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME); col_clear(pinfo->cinfo, COL_INFO); it=proto_tree_add_protocol_format(tree, proto_h225, tvb, 0, -1, PSNAME" CS"); tr=proto_item_add_subtree(it, ett_h225); offset = dissect_H323_UserInformation_PDU(tvb, pinfo, tr, NULL); if (h245_list->count){ col_append_str(pinfo->cinfo, COL_PROTOCOL, "/"); col_set_fence(pinfo->cinfo, COL_PROTOCOL); } next_tvb_call(h245_list, pinfo, tree, h245dg_handle, data_handle); next_tvb_call(tp_list, pinfo, tree, NULL, data_handle); tap_queue_packet(h225_tap, pinfo, h225_pi); return offset; } static int dissect_h225_h225_RasMessage(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_){ proto_item *it; proto_tree *tr; guint32 offset=0; h225_packet_info* h225_pi; /* Init struct for collecting h225_packet_info */ h225_pi = create_h225_packet_info(pinfo); h225_pi->msg_type = H225_RAS; p_add_proto_data(pinfo->pool, pinfo, proto_h225, 0, h225_pi); register_frame_end_routine(pinfo, h225_frame_end); h245_list = next_tvb_list_new(pinfo->pool); tp_list = next_tvb_list_new(pinfo->pool); col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME); it=proto_tree_add_protocol_format(tree, proto_h225, tvb, offset, -1, PSNAME" RAS"); tr=proto_item_add_subtree(it, ett_h225); offset = dissect_RasMessage_PDU(tvb, pinfo, tr, NULL); ras_call_matching(tvb, pinfo, tr, h225_pi); next_tvb_call(h245_list, pinfo, tree, h245dg_handle, data_handle); next_tvb_call(tp_list, pinfo, tree, NULL, data_handle); tap_queue_packet(h225_tap, pinfo, h225_pi); return offset; } /* The following values represent the size of their valuestring arrays */ #define RAS_MSG_TYPES (sizeof(h225_RasMessage_vals) / sizeof(value_string)) #define CS_MSG_TYPES (sizeof(T_h323_message_body_vals) / sizeof(value_string)) #define GRJ_REASONS (sizeof(GatekeeperRejectReason_vals) / sizeof(value_string)) #define RRJ_REASONS (sizeof(RegistrationRejectReason_vals) / sizeof(value_string)) #define URQ_REASONS (sizeof(UnregRequestReason_vals) / sizeof(value_string)) #define URJ_REASONS (sizeof(UnregRejectReason_vals) / sizeof(value_string)) #define ARJ_REASONS (sizeof(AdmissionRejectReason_vals) / sizeof(value_string)) #define BRJ_REASONS (sizeof(BandRejectReason_vals) / sizeof(value_string)) #define DRQ_REASONS (sizeof(DisengageReason_vals) / sizeof(value_string)) #define DRJ_REASONS (sizeof(DisengageRejectReason_vals) / sizeof(value_string)) #define LRJ_REASONS (sizeof(LocationRejectReason_vals) / sizeof(value_string)) #define IRQNAK_REASONS (sizeof(InfoRequestNakReason_vals) / sizeof(value_string)) #define REL_CMP_REASONS (sizeof(h225_ReleaseCompleteReason_vals) / sizeof(value_string)) #define FACILITY_REASONS (sizeof(FacilityReason_vals) / sizeof(value_string)) /* TAP STAT INFO */ typedef enum { MESSAGE_TYPE_COLUMN = 0, COUNT_COLUMN } h225_stat_columns; typedef struct _h225_table_item { guint count; /* Message count */ guint table_idx; /* stat_table index */ } h225_table_item_t; static stat_tap_table_item h225_stat_fields[] = {{TABLE_ITEM_STRING, TAP_ALIGN_LEFT, "Message Type or Reason", "%-25s"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Count", "%d"}}; static guint ras_msg_idx[RAS_MSG_TYPES]; static guint cs_msg_idx[CS_MSG_TYPES]; static guint grj_reason_idx[GRJ_REASONS]; static guint rrj_reason_idx[RRJ_REASONS]; static guint urq_reason_idx[URQ_REASONS]; static guint urj_reason_idx[URJ_REASONS]; static guint arj_reason_idx[ARJ_REASONS]; static guint brj_reason_idx[BRJ_REASONS]; static guint drq_reason_idx[DRQ_REASONS]; static guint drj_reason_idx[DRJ_REASONS]; static guint lrj_reason_idx[LRJ_REASONS]; static guint irqnak_reason_idx[IRQNAK_REASONS]; static guint rel_cmp_reason_idx[REL_CMP_REASONS]; static guint facility_reason_idx[FACILITY_REASONS]; static guint other_idx; static void h225_stat_init(stat_tap_table_ui* new_stat) { const char *table_name = "H.225 Messages and Message Reasons"; int num_fields = sizeof(h225_stat_fields)/sizeof(stat_tap_table_item); stat_tap_table *table; int row_idx = 0, msg_idx; stat_tap_table_item_type items[sizeof(h225_stat_fields)/sizeof(stat_tap_table_item)]; table = stat_tap_find_table(new_stat, table_name); if (table) { if (new_stat->stat_tap_reset_table_cb) { new_stat->stat_tap_reset_table_cb(table); } return; } memset(items, 0x0, sizeof(items)); table = stat_tap_init_table(table_name, num_fields, 0, NULL); stat_tap_add_table(new_stat, table); items[MESSAGE_TYPE_COLUMN].type = TABLE_ITEM_STRING; items[COUNT_COLUMN].type = TABLE_ITEM_UINT; items[COUNT_COLUMN].value.uint_value = 0; /* Add a row for each value type */ msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = h225_RasMessage_vals[msg_idx].strptr ? h225_RasMessage_vals[msg_idx].strptr : "Unknown RAS message"; ras_msg_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (h225_RasMessage_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = T_h323_message_body_vals[msg_idx].strptr ? T_h323_message_body_vals[msg_idx].strptr : "Unknown CS message"; cs_msg_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (T_h323_message_body_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = GatekeeperRejectReason_vals[msg_idx].strptr ? GatekeeperRejectReason_vals[msg_idx].strptr : "Unknown gatekeeper reject reason"; grj_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (GatekeeperRejectReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = RegistrationRejectReason_vals[msg_idx].strptr ? RegistrationRejectReason_vals[msg_idx].strptr : "Unknown registration reject reason"; rrj_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (RegistrationRejectReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = UnregRequestReason_vals[msg_idx].strptr ? UnregRequestReason_vals[msg_idx].strptr : "Unknown unregistration request reason"; urq_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (UnregRequestReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = UnregRejectReason_vals[msg_idx].strptr ? UnregRejectReason_vals[msg_idx].strptr : "Unknown unregistration reject reason"; urj_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (UnregRejectReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = AdmissionRejectReason_vals[msg_idx].strptr ? AdmissionRejectReason_vals[msg_idx].strptr : "Unknown admission reject reason"; arj_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (AdmissionRejectReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = BandRejectReason_vals[msg_idx].strptr ? BandRejectReason_vals[msg_idx].strptr : "Unknown band reject reason"; brj_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (BandRejectReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = DisengageReason_vals[msg_idx].strptr ? DisengageReason_vals[msg_idx].strptr : "Unknown disengage reason"; drq_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (DisengageReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = DisengageRejectReason_vals[msg_idx].strptr ? DisengageRejectReason_vals[msg_idx].strptr : "Unknown disengage reject reason"; drj_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (DisengageRejectReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = LocationRejectReason_vals[msg_idx].strptr ? LocationRejectReason_vals[msg_idx].strptr : "Unknown location reject reason"; lrj_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (LocationRejectReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = InfoRequestNakReason_vals[msg_idx].strptr ? InfoRequestNakReason_vals[msg_idx].strptr : "Unknown info request nak reason"; irqnak_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (InfoRequestNakReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = h225_ReleaseCompleteReason_vals[msg_idx].strptr ? h225_ReleaseCompleteReason_vals[msg_idx].strptr : "Unknown release complete reason"; rel_cmp_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (h225_ReleaseCompleteReason_vals[msg_idx].strptr); msg_idx = 0; do { items[MESSAGE_TYPE_COLUMN].value.string_value = FacilityReason_vals[msg_idx].strptr ? FacilityReason_vals[msg_idx].strptr : "Unknown facility reason"; facility_reason_idx[msg_idx] = row_idx; stat_tap_init_table_row(table, row_idx, num_fields, items); row_idx++; msg_idx++; } while (FacilityReason_vals[msg_idx].strptr); items[MESSAGE_TYPE_COLUMN].value.string_value = "Unknown H.225 message"; stat_tap_init_table_row(table, row_idx, num_fields, items); other_idx = row_idx; } static tap_packet_status h225_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *hpi_ptr, tap_flags_t flags _U_) { stat_data_t* stat_data = (stat_data_t*)tapdata; const h225_packet_info *hpi = (const h225_packet_info *)hpi_ptr; int tag_idx = -1; int reason_idx = -1; if(hpi->msg_tag < 0) { /* uninitialized */ return TAP_PACKET_DONT_REDRAW; } switch (hpi->msg_type) { case H225_RAS: tag_idx = ras_msg_idx[MIN(hpi->msg_tag, (int)RAS_MSG_TYPES-1)]; /* Look for reason tag */ if(hpi->reason < 0) { /* uninitialized */ break; } switch(hpi->msg_tag) { case 2: /* GRJ */ reason_idx = grj_reason_idx[MIN(hpi->reason, (int)GRJ_REASONS-1)]; break; case 5: /* RRJ */ reason_idx = rrj_reason_idx[MIN(hpi->reason, (int)RRJ_REASONS-1)]; break; case 6: /* URQ */ reason_idx = urq_reason_idx[MIN(hpi->reason, (int)URQ_REASONS-1)]; break; case 8: /* URJ */ reason_idx = urj_reason_idx[MIN(hpi->reason, (int)URJ_REASONS-1)]; break; case 11: /* ARJ */ reason_idx = arj_reason_idx[MIN(hpi->reason, (int)ARJ_REASONS-1)]; break; case 14: /* BRJ */ reason_idx = brj_reason_idx[MIN(hpi->reason, (int)BRJ_REASONS-1)]; break; case 15: /* DRQ */ reason_idx = drq_reason_idx[MIN(hpi->reason, (int)DRQ_REASONS-1)]; break; case 17: /* DRJ */ reason_idx = drj_reason_idx[MIN(hpi->reason, (int)DRJ_REASONS-1)]; break; case 20: /* LRJ */ reason_idx = lrj_reason_idx[MIN(hpi->reason, (int)LRJ_REASONS-1)]; break; case 29: /* IRQ Nak */ reason_idx = irqnak_reason_idx[MIN(hpi->reason, (int)IRQNAK_REASONS-1)]; break; default: /* do nothing */ break; } break; case H225_CS: tag_idx = cs_msg_idx[MIN(hpi->msg_tag, (int)CS_MSG_TYPES-1)]; /* Look for reason tag */ if(hpi->reason < 0) { /* uninitialized */ break; } switch(hpi->msg_tag) { case 5: /* ReleaseComplete */ reason_idx = rel_cmp_reason_idx[MIN(hpi->reason, (int)REL_CMP_REASONS-1)]; break; case 6: /* Facility */ reason_idx = facility_reason_idx[MIN(hpi->reason, (int)FACILITY_REASONS-1)]; break; default: /* do nothing */ break; } break; case H225_OTHERS: default: tag_idx = other_idx; } if (tag_idx >= 0) { stat_tap_table*table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, 0); stat_tap_table_item_type* msg_data = stat_tap_get_field_data(table, tag_idx, COUNT_COLUMN);; msg_data->value.uint_value++; stat_tap_set_field_data(table, tag_idx, COUNT_COLUMN, msg_data); if (reason_idx >= 0) { msg_data = stat_tap_get_field_data(table, reason_idx, COUNT_COLUMN);; msg_data->value.uint_value++; stat_tap_set_field_data(table, reason_idx, COUNT_COLUMN, msg_data); } return TAP_PACKET_REDRAW; } return TAP_PACKET_DONT_REDRAW; } static void h225_stat_reset(stat_tap_table* table) { guint element; stat_tap_table_item_type* item_data; for (element = 0; element < table->num_elements; element++) { item_data = stat_tap_get_field_data(table, element, COUNT_COLUMN); item_data->value.uint_value = 0; stat_tap_set_field_data(table, element, COUNT_COLUMN, item_data); } } /*--- proto_register_h225 -------------------------------------------*/ void proto_register_h225(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_h221Manufacturer, { "H.225 Manufacturer", "h225.Manufacturer", FT_UINT32, BASE_HEX, VALS(H221ManufacturerCode_vals), 0, "h225.H.221 Manufacturer", HFILL }}, { &hf_h225_ras_req_frame, { "RAS Request Frame", "h225.ras.reqframe", FT_FRAMENUM, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_h225_ras_rsp_frame, { "RAS Response Frame", "h225.ras.rspframe", FT_FRAMENUM, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_h225_ras_dup, { "Duplicate RAS Message", "h225.ras.dup", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }}, { &hf_h225_ras_deltatime, { "RAS Service Response Time", "h225.ras.timedelta", FT_RELATIVE_TIME, BASE_NONE, NULL, 0, "Timedelta between RAS-Request and RAS-Response", HFILL }}, { &hf_h225_debug_dissector_try_string, { "*** DEBUG dissector_try_string", "h225.debug.dissector_try_string", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, #include "packet-h225-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_h225, #include "packet-h225-ettarr.c" }; static tap_param h225_stat_params[] = { { PARAM_FILTER, "filter", "Filter", NULL, TRUE } }; static stat_tap_table_ui h225_stat_table = { REGISTER_STAT_GROUP_TELEPHONY, "H.225", PFNAME, "h225,counter", h225_stat_init, h225_stat_packet, h225_stat_reset, NULL, NULL, sizeof(h225_stat_fields)/sizeof(stat_tap_table_item), h225_stat_fields, sizeof(h225_stat_params)/sizeof(tap_param), h225_stat_params, NULL, 0 }; module_t *h225_module; int i, proto_h225_ras; /* Register protocol */ proto_h225 = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Create a "fake" protocol to get proper display strings for SRT dialogs */ proto_h225_ras = proto_register_protocol("H.225 RAS", "H.225 RAS", "h225_ras"); /* Register fields and subtrees */ proto_register_field_array(proto_h225, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); h225_module = prefs_register_protocol(proto_h225, proto_reg_handoff_h225); prefs_register_uint_preference(h225_module, "tls.port", "H.225 TLS Port", "H.225 Server TLS Port", 10, &h225_tls_port); prefs_register_bool_preference(h225_module, "reassembly", "Reassemble H.225 messages spanning multiple TCP segments", "Whether the H.225 dissector should reassemble messages spanning multiple TCP segments." " To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.", &h225_reassembly); prefs_register_bool_preference(h225_module, "h245_in_tree", "Display tunnelled H.245 inside H.225.0 tree", "ON - display tunnelled H.245 inside H.225.0 tree, OFF - display tunnelled H.245 in root tree after H.225.0", &h225_h245_in_tree); prefs_register_bool_preference(h225_module, "tp_in_tree", "Display tunnelled protocols inside H.225.0 tree", "ON - display tunnelled protocols inside H.225.0 tree, OFF - display tunnelled protocols in root tree after H.225.0", &h225_tp_in_tree); register_dissector(PFNAME, dissect_h225_H323UserInformation, proto_h225); register_dissector("h323ui",dissect_h225_H323UserInformation, proto_h225); h225ras_handle = register_dissector("h225.ras", dissect_h225_h225_RasMessage, proto_h225); nsp_object_dissector_table = register_dissector_table("h225.nsp.object", "H.225 NonStandardParameter Object", proto_h225, FT_STRING, STRING_CASE_SENSITIVE); nsp_h221_dissector_table = register_dissector_table("h225.nsp.h221", "H.225 NonStandardParameter h221", proto_h225, FT_UINT32, BASE_HEX); tp_dissector_table = register_dissector_table("h225.tp", "H.225 Tunnelled Protocol", proto_h225, FT_STRING, STRING_CASE_SENSITIVE); gef_name_dissector_table = register_dissector_table("h225.gef.name", "H.225 Generic Extensible Framework Name", proto_h225, FT_STRING, STRING_CASE_SENSITIVE); gef_content_dissector_table = register_dissector_table("h225.gef.content", "H.225 Generic Extensible Framework Content", proto_h225, FT_STRING, STRING_CASE_SENSITIVE); for(i=0;i<7;i++) { ras_calls[i] = wmem_map_new_autoreset(wmem_epan_scope(), wmem_file_scope(), h225ras_call_hash, h225ras_call_equal); } h225_tap = register_tap(PFNAME); register_rtd_table(proto_h225_ras, PFNAME, NUM_RAS_STATS, 1, ras_message_category, h225rassrt_packet, NULL); register_stat_tap_table_ui(&h225_stat_table); oid_add_from_string("Version 1","0.0.8.2250.0.1"); oid_add_from_string("Version 2","0.0.8.2250.0.2"); oid_add_from_string("Version 3","0.0.8.2250.0.3"); oid_add_from_string("Version 4","0.0.8.2250.0.4"); oid_add_from_string("Version 5","0.0.8.2250.0.5"); oid_add_from_string("Version 6","0.0.8.2250.0.6"); } /*--- proto_reg_handoff_h225 ---------------------------------------*/ void proto_reg_handoff_h225(void) { static gboolean h225_prefs_initialized = FALSE; static dissector_handle_t q931_tpkt_handle; static guint saved_h225_tls_port; if (!h225_prefs_initialized) { dissector_add_uint_range_with_preference("udp.port", UDP_PORT_RAS_RANGE, h225ras_handle); h245_handle = find_dissector("h245"); h245dg_handle = find_dissector("h245dg"); h4501_handle = find_dissector_add_dependency("h4501", proto_h225); data_handle = find_dissector("data"); h225_prefs_initialized = TRUE; q931_tpkt_handle = find_dissector("q931.tpkt"); } else { ssl_dissector_delete(saved_h225_tls_port, q931_tpkt_handle); } saved_h225_tls_port = h225_tls_port; ssl_dissector_add(saved_h225_tls_port, q931_tpkt_handle); } static h225_packet_info* create_h225_packet_info(packet_info *pinfo) { h225_packet_info* pi = wmem_new0(pinfo->pool, h225_packet_info); pi->msg_type = H225_OTHERS; pi->cs_type = H225_OTHER; pi->msg_tag = -1; pi->reason = -1; return pi; } /* The following function contains the routines for RAS request/response matching. A RAS response matches with a request, if both messages have the same RequestSequenceNumber, belong to the same IP conversation and belong to the same RAS "category" (e.g. Admission, Registration). We use hashtables to access the lists of RAS calls (request/response pairs). We have one hashtable for each RAS category. The hashkeys consist of the non-unique 16-bit RequestSequenceNumber and values representing the conversation. In big capture files, we might get different requests with identical keys. These requests aren't necessarily duplicates. They might be valid new requests. At the moment we just use the timedelta between the last valid and the new request to decide if the new request is a duplicate or not. There might be better ways. Two thresholds are defined below. However the decision is made, another problem arises. We can't just add those requests to our hashtables. Instead we create lists of RAS calls with identical keys. The hashtables for RAS calls contain now pointers to the first RAS call in a list of RAS calls with identical keys. These lists aren't expected to contain more than 3 items and are usually single item lists. So we don't need an expensive but intelligent way to access these lists (e.g. hashtables). Just walk through such a list. */ #define THRESHOLD_REPEATED_RESPONDED_CALL 300 #define THRESHOLD_REPEATED_NOT_RESPONDED_CALL 1800 static void ras_call_matching(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, h225_packet_info *pi) { proto_item *hidden_item; conversation_t* conversation = NULL; h225ras_call_info_key h225ras_call_key; h225ras_call_t *h225ras_call = NULL; nstime_t delta; guint msg_category; if(pi->msg_type == H225_RAS && pi->msg_tag < 21) { /* make RAS request/response matching only for tags from 0 to 20 for now */ msg_category = pi->msg_tag / 3; if(pi->msg_tag % 3 == 0) { /* Request Message */ conversation = find_or_create_conversation(pinfo); /* prepare the key data */ h225ras_call_key.reqSeqNum = pi->requestSeqNum; h225ras_call_key.conversation = conversation; /* look up the request */ h225ras_call = find_h225ras_call(&h225ras_call_key ,msg_category); if (h225ras_call != NULL) { /* We've seen requests with this reqSeqNum, with the same source and destination, before - do we have *this* request already? */ /* Walk through list of ras requests with identical keys */ do { if (pinfo->num == h225ras_call->req_num) { /* We have seen this request before -> do nothing */ break; } /* if end of list is reached, exit loop and decide if request is duplicate or not. */ if (h225ras_call->next_call == NULL) { if ( (pinfo->num > h225ras_call->rsp_num && h225ras_call->rsp_num != 0 && pinfo->abs_ts.secs > (h225ras_call->req_time.secs + THRESHOLD_REPEATED_RESPONDED_CALL) ) ||(pinfo->num > h225ras_call->req_num && h225ras_call->rsp_num == 0 && pinfo->abs_ts.secs > (h225ras_call->req_time.secs + THRESHOLD_REPEATED_NOT_RESPONDED_CALL) ) ) { /* if last request has been responded and this request appears after last response (has bigger frame number) and last request occurred more than 300 seconds ago, or if last request hasn't been responded and this request appears after last request (has bigger frame number) and last request occurred more than 1800 seconds ago, we decide that we have a new request */ /* Append new ras call to list */ h225ras_call = append_h225ras_call(h225ras_call, pinfo, &pi->guid, msg_category); } else { /* No, so it's a duplicate request. Mark it as such. */ pi->is_duplicate = TRUE; hidden_item = proto_tree_add_uint(tree, hf_h225_ras_dup, tvb, 0,0, pi->requestSeqNum); proto_item_set_hidden(hidden_item); } break; } h225ras_call = h225ras_call->next_call; } while (h225ras_call != NULL ); } else { h225ras_call = new_h225ras_call(&h225ras_call_key, pinfo, &pi->guid, msg_category); } /* add link to response frame, if available */ if(h225ras_call && h225ras_call->rsp_num != 0){ proto_item *ti = proto_tree_add_uint_format(tree, hf_h225_ras_rsp_frame, tvb, 0, 0, h225ras_call->rsp_num, "The response to this request is in frame %u", h225ras_call->rsp_num); proto_item_set_generated(ti); } /* end of request message handling*/ } else { /* Confirm or Reject Message */ conversation = find_conversation_pinfo(pinfo, 0); if (conversation != NULL) { /* look only for matching request, if matching conversation is available. */ h225ras_call_key.reqSeqNum = pi->requestSeqNum; h225ras_call_key.conversation = conversation; h225ras_call = find_h225ras_call(&h225ras_call_key ,msg_category); if(h225ras_call) { /* find matching ras_call in list of ras calls with identical keys */ do { if (pinfo->num == h225ras_call->rsp_num) { /* We have seen this response before -> stop now with matching ras call */ break; } /* Break when list end is reached */ if(h225ras_call->next_call == NULL) { break; } h225ras_call = h225ras_call->next_call; } while (h225ras_call != NULL) ; if (!h225ras_call) { return; } /* if this is an ACF, ARJ or DCF, DRJ, give guid to tap and make it filterable */ if (msg_category == 3 || msg_category == 5) { pi->guid = h225ras_call->guid; hidden_item = proto_tree_add_guid(tree, hf_h225_guid, tvb, 0, GUID_LEN, &pi->guid); proto_item_set_hidden(hidden_item); } if (h225ras_call->rsp_num == 0) { /* We have not yet seen a response to that call, so this must be the first response; remember its frame number. */ h225ras_call->rsp_num = pinfo->num; } else { /* We have seen a response to this call - but was it *this* response? */ if (h225ras_call->rsp_num != pinfo->num) { /* No, so it's a duplicate response. Mark it as such. */ pi->is_duplicate = TRUE; hidden_item = proto_tree_add_uint(tree, hf_h225_ras_dup, tvb, 0,0, pi->requestSeqNum); proto_item_set_hidden(hidden_item); } } if(h225ras_call->req_num != 0){ proto_item *ti; h225ras_call->responded = TRUE; pi->request_available = TRUE; /* Indicate the frame to which this is a reply. */ ti = proto_tree_add_uint_format(tree, hf_h225_ras_req_frame, tvb, 0, 0, h225ras_call->req_num, "This is a response to a request in frame %u", h225ras_call->req_num); proto_item_set_generated(ti); /* Calculate RAS Service Response Time */ nstime_delta(&delta, &pinfo->abs_ts, &h225ras_call->req_time); pi->delta_time = delta; /* give it to tap */ /* display Ras Service Response Time and make it filterable */ ti = proto_tree_add_time(tree, hf_h225_ras_deltatime, tvb, 0, 0, &(pi->delta_time)); proto_item_set_generated(ti); } } } } } } /* * Editor modelines - https://www.wireshark.org/tools/modelines.html * * Local Variables: * c-basic-offset: 2 * tab-width: 8 * indent-tabs-mode: nil * End: * * vi: set shiftwidth=2 tabstop=8 expandtab: * :indentSize=2:tabSize=8:noTabs=true: */
C/C++
wireshark/epan/dissectors/asn1/h225/packet-h225-template.h
/* packet-h225.h * Routines for h225 packet dissection * Copyright 2005, Anders Broman <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_H225_H #define PACKET_H225_H typedef enum _h225_msg_type { H225_RAS, H225_CS, H225_OTHERS } h225_msg_type; typedef enum _h225_cs_type { H225_SETUP, H225_CALL_PROCEDING, H225_CONNECT, H225_ALERTING, H225_INFORMATION, H225_RELEASE_COMPLET, H225_FACILITY, H225_PROGRESS, H225_EMPTY, H225_STATUS, H225_STATUS_INQUIRY, H225_SETUP_ACK, H225_NOTIFY, H225_OTHER } h225_cs_type; typedef struct _h225_packet_info { h225_msg_type msg_type; /* ras or cs message */ h225_cs_type cs_type; /* cs message type */ gint msg_tag; /* message tag*/ gint reason; /* reason tag, if available */ guint requestSeqNum; /* request sequence number of ras-message, if available */ e_guid_t guid; /* globally unique call id */ gboolean is_duplicate; /* true, if this is a repeated message */ gboolean request_available; /* true, if response matches to a request */ nstime_t delta_time; /* this is the RAS response time delay */ /* added for h225 conversations analysis */ gboolean is_faststart; /* true, if faststart field is included */ gboolean is_h245; gboolean is_h245Tunneling; guint32 h245_address; guint16 h245_port; gchar dialedDigits[129]; /* Dialed Digits in the LRQ and LCF used for voip analysis */ gboolean is_destinationInfo; gchar frame_label[50]; /* the Frame label used by graph_analysis, what is a abreviation of cinfo */ } h225_packet_info; /* * the following allows TAP code access to the messages * without having to duplicate it. With MSVC and a * libwireshark.dll, we need a special declaration. */ #include <epan/asn1.h> #include "packet-per.h" #include "packet-h225-exp.h" #endif /* PACKET_H225_H */ /* * Editor modelines - https://www.wireshark.org/tools/modelines.html * * Local Variables: * c-basic-offset: 2 * tab-width: 8 * indent-tabs-mode: nil * End: * * vi: set shiftwidth=2 tabstop=8 expandtab: * :indentSize=2:tabSize=8:noTabs=true: */
Text
wireshark/epan/dissectors/asn1/h235/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h235 ) set( PROTO_OPT ) set( EXPORT_FILES ${PROTOCOL_NAME}-exp.cnf ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST H235-SECURITY-MESSAGES.asn H235-SRTP.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../h225/h225-exp.cnf" ) ASN2WRS()
ASN.1
wireshark/epan/dissectors/asn1/h235/H235-SECURITY-MESSAGES.asn
-- H235-SECURITY-MESSAGES.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h235.0/2005/H235-SECURITY-MESSAGES.asn -- -- Module H235-SECURITY-MESSAGES (H.235.0:09/2005) H235-SECURITY-MESSAGES DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- EXPORTS All ChallengeString ::= OCTET STRING(SIZE (8..128)) TimeStamp ::= INTEGER(1..4294967295) -- seconds since 00:00 -- 1/1/1970 UTC RandomVal ::= INTEGER -- 32-bit Integer Password ::= BMPString(SIZE (1..128)) Identifier ::= BMPString(SIZE (1..128)) KeyMaterial ::= BIT STRING(SIZE (1..2048)) NonStandardParameter ::= SEQUENCE { nonStandardIdentifier OBJECT IDENTIFIER, data OCTET STRING } -- if local octet representations of these bit strings are used they shall -- utilize standard Network Octet ordering (e.g., Big Endian) DHset ::= SEQUENCE { halfkey BIT STRING(SIZE (0..2048)), -- = g^x mod n modSize BIT STRING(SIZE (0..2048)), -- n generator BIT STRING(SIZE (0..2048)), -- g ... } ECpoint ::= SEQUENCE -- uncompressed (x, y) affine coordinate representation of -- an elliptic curve point { x BIT STRING(SIZE (0..511)) OPTIONAL, y BIT STRING(SIZE (0..511)) OPTIONAL, ... } ECKASDH ::= CHOICE -- parameters for elliptic curve key agreement scheme Diffie-Hellman { eckasdhp SEQUENCE-- parameters for elliptic curves of prime field-- {public-key ECpoint, -- This field contains representation of -- -- the ECKAS-DHp public key value. This field contains the -- initiator's ECKAS-DHp public key value (aP) when this -- information element is sent from originator to receiver. This -- field contains the responder's ECKAS-DHp public key value (bP) -- when this information element is sent back from receiver to -- originator. modulus BIT STRING (SIZE (0.. 511)), -- This field contains -- -- representation of the ECKAS-DHp public modulus value (p). base ECpoint, -- This field contains representation of the -- -- ECKAS-DHp public base (P). weierstrassA BIT STRING (SIZE (0.. 511)), -- This field contains -- -- representation of the ECKAS-DHp Weierstrass coefficient (a). weierstrassB BIT STRING (SIZE (0.. 511))-- This field contains -- -- representation of the ECKAS-DHp Weierstrass coefficient (b). }, eckasdh2 SEQUENCE-- parameters for elliptic curves of characteristic 2 -- {public-key ECpoint, -- This field contains representation of -- -- the ECKAS-DH2 public key value. -- This field contains the initiator's ECKAS-DH2 public key value -- (aP) when this information element is sent from originator to -- receiver. This field contains the responder's ECKAS-DH2 public -- key value (bP) when this information element is sent back from -- receiver to originator. fieldSize BIT STRING (SIZE (0.. 511)), -- This field contains -- -- representation of the ECKAS-DH2 field size value (m). base ECpoint, -- This field contains representation of the -- -- ECKAS-DH2 public base (P). weierstrassA BIT STRING (SIZE (0.. 511)), -- This field contains -- -- representation of the ECKAS-DH2 Weierstrass coefficient (a). weierstrassB BIT STRING (SIZE (0.. 511))-- This field contains -- -- representation of the ECKAS-DH2 Weierstrass coefficient (b). }, ... } ECGDSASignature ::= SEQUENCE -- parameters for elliptic curve digital signature -- algorithm { r BIT STRING(SIZE (0..511)), -- This field contains the -- representation of the r component of the ECGDSA digital -- signature. s BIT STRING(SIZE (0..511))-- This field contains the -- -- representation of the s component of the ECGDSA digital -- signature. } TypedCertificate ::= SEQUENCE { type OBJECT IDENTIFIER, certificate OCTET STRING, ... } AuthenticationBES ::= CHOICE { default NULL, -- encrypted ClearToken radius NULL, -- RADIUS-challenge/response ... } AuthenticationMechanism ::= CHOICE { dhExch NULL, -- Diffie-Hellman pwdSymEnc NULL, -- password with symmetric encryption pwdHash NULL, -- password with hashing certSign NULL, -- Certificate with signature ipsec NULL, -- IPSEC based connection tls NULL, nonStandard NonStandardParameter, -- something else. ..., authenticationBES AuthenticationBES, -- user authentication for BES keyExch OBJECT IDENTIFIER -- key exchange profile } ClearToken ::= SEQUENCE -- a "token" may contain multiple value types. { tokenOID OBJECT IDENTIFIER, timeStamp TimeStamp OPTIONAL, password Password OPTIONAL, dhkey DHset OPTIONAL, challenge ChallengeString OPTIONAL, random RandomVal OPTIONAL, certificate TypedCertificate OPTIONAL, generalID Identifier OPTIONAL, nonStandard NonStandardParameter OPTIONAL, ..., eckasdhkey ECKASDH OPTIONAL, -- elliptic curve Key Agreement -- Scheme-Diffie Hellman Analogue -- (ECKAS-DH) sendersID Identifier OPTIONAL, h235Key H235Key OPTIONAL, -- central distributed key in V3 profileInfo SEQUENCE OF ProfileElement OPTIONAL -- profile-specific } -- An object identifier should be placed in the tokenOID field when a -- ClearToken is included directly in a message (as opposed to being -- encrypted). In all other cases, an application should use the -- object identifier { 0 0 } to indicate that the tokenOID value is not -- present. -- Start all the cryptographic parameterized types here... -- ProfileElement ::= SEQUENCE { elementID INTEGER(0..255), -- element identifier, as defined by -- profile paramS Params OPTIONAL, -- any element-specific parameters element Element OPTIONAL, -- value in required form ... } Element ::= CHOICE { octets OCTET STRING, integer INTEGER, bits BIT STRING, name BMPString, flag BOOLEAN, ... } SIGNED{ToBeSigned} ::= SEQUENCE { toBeSigned ToBeSigned, algorithmOID OBJECT IDENTIFIER, paramS Params, -- any "runtime" parameters signature BIT STRING -- could be an RSA or an ASN.1 coded ECGDSA Signature }(CONSTRAINED BY { -- Verify or Sign Certificate --}) ENCRYPTED{ToBeEncrypted} ::= SEQUENCE { algorithmOID OBJECT IDENTIFIER, paramS Params, -- any "runtime" parameters encryptedData OCTET STRING }(CONSTRAINED BY { -- Encrypt or Decrypt --ToBeEncrypted}) HASHED{ToBeHashed} ::= SEQUENCE { algorithmOID OBJECT IDENTIFIER, paramS Params, -- any "runtime" parameters hash BIT STRING }(CONSTRAINED BY { -- Hash --ToBeHashed}) IV8 ::= OCTET STRING(SIZE (8)) -- initial value for 64-bit block ciphers IV16 ::= OCTET STRING(SIZE (16)) -- initial value for 128-bit block ciphers -- signing algorithm used must select one of these types of parameters -- needed by receiving end of signature. Params ::= SEQUENCE { ranInt INTEGER OPTIONAL, -- some integer value iv8 IV8 OPTIONAL, -- 8-octet initialization vector ..., iv16 IV16 OPTIONAL, -- 16-octet initialization vector iv OCTET STRING OPTIONAL, -- arbitrary length initialization vector clearSalt OCTET STRING OPTIONAL -- unencrypted salting key for encryption } EncodedGeneralToken ::= TYPE-IDENTIFIER.&Type(ClearToken -- general usage token --) PwdCertToken ::= ClearToken(WITH COMPONENTS { ..., timeStamp PRESENT, generalID PRESENT }) EncodedPwdCertToken ::= TYPE-IDENTIFIER.&Type(PwdCertToken) CryptoToken ::= CHOICE { cryptoEncryptedToken SEQUENCE-- General purpose/application specific token-- {tokenOID OBJECT IDENTIFIER, token ENCRYPTED {EncodedGeneralToken} }, cryptoSignedToken SEQUENCE-- General purpose/application specific token-- {tokenOID OBJECT IDENTIFIER, token SIGNED {EncodedGeneralToken} }, cryptoHashedToken SEQUENCE-- General purpose/application specific token-- {tokenOID OBJECT IDENTIFIER, hashedVals ClearToken, token HASHED {EncodedGeneralToken} }, cryptoPwdEncr ENCRYPTED{EncodedPwdCertToken}, ... } -- These allow the passing of session keys within the H.245 OLC structure. -- They are encoded as standalone ASN.1 and based as an OCTET STRING within -- H.245 H235Key ::= CHOICE -- This is used with the H.245 or ClearToken "h235Key" field { secureChannel KeyMaterial, sharedSecret ENCRYPTED{EncodedKeySyncMaterial}, certProtectedKey SIGNED{EncodedKeySignedMaterial}, ..., secureSharedSecret V3KeySyncMaterial -- for H.235 V3 endpoints } KeySignedMaterial ::= SEQUENCE { generalId Identifier, -- slave's alias mrandom RandomVal, -- master's random value srandom RandomVal OPTIONAL, -- slave's random value timeStamp TimeStamp OPTIONAL, -- master's timestamp for unsolicited EU encrptval ENCRYPTED{EncodedKeySyncMaterial} } EncodedKeySignedMaterial ::= TYPE-IDENTIFIER.&Type(KeySignedMaterial) H235CertificateSignature ::= SEQUENCE { certificate TypedCertificate, responseRandom RandomVal, requesterRandom RandomVal OPTIONAL, signature SIGNED{EncodedReturnSig}, ... } ReturnSig ::= SEQUENCE { generalId Identifier, -- slave's alias responseRandom RandomVal, requestRandom RandomVal OPTIONAL, certificate TypedCertificate OPTIONAL -- requested certificate } EncodedReturnSig ::= TYPE-IDENTIFIER.&Type(ReturnSig) KeySyncMaterial ::= SEQUENCE { generalID Identifier, keyMaterial KeyMaterial, ... } EncodedKeySyncMaterial ::= TYPE-IDENTIFIER.&Type(KeySyncMaterial) V3KeySyncMaterial ::= SEQUENCE { generalID Identifier OPTIONAL, -- peer terminal ID algorithmOID OBJECT IDENTIFIER OPTIONAL, -- encryption algorithm paramS Params, -- IV encryptedSessionKey OCTET STRING OPTIONAL, -- encrypted session key encryptedSaltingKey OCTET STRING OPTIONAL, -- encrypted media salting -- key clearSaltingKey OCTET STRING OPTIONAL, -- unencrypted media salting -- key paramSsalt Params OPTIONAL, -- IV (and clear salt) for salting -- key encryption keyDerivationOID OBJECT IDENTIFIER OPTIONAL, -- key derivation -- method ..., genericKeyMaterial OCTET STRING OPTIONAL -- ASN.1-encoded key material-- -- form is dependent on associated media encryption tag } END -- End of H235-SECURITY-MESSAGES DEFINITIONS -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h235/H235-SRTP.asn
-- H235-SRTP.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h235.8/2005/H235-SRTP.asn -- -- Module H235-SRTP (H.235.8:09/2005) H235-SRTP DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS GenericData FROM H323-MESSAGES; SrtpCryptoCapability ::= SEQUENCE OF SrtpCryptoInfo -- used in H.245 genericH235SecurityCapability SrtpCryptoInfo ::= SEQUENCE { cryptoSuite OBJECT IDENTIFIER OPTIONAL, sessionParams SrtpSessionParameters OPTIONAL, allowMKI BOOLEAN OPTIONAL, ... } SrtpKeys ::= SEQUENCE OF SrtpKeyParameters -- used in H.235 V3KeySyncMaterial SrtpKeyParameters ::= SEQUENCE { masterKey OCTET STRING, masterSalt OCTET STRING, lifetime CHOICE {powerOfTwo INTEGER, specific INTEGER, ...} OPTIONAL, mki SEQUENCE {length INTEGER(1..128), value OCTET STRING, ...} OPTIONAL, ... } SrtpSessionParameters ::= SEQUENCE { kdr INTEGER(0..24) OPTIONAL, -- power of 2 unencryptedSrtp BOOLEAN OPTIONAL, unencryptedSrtcp BOOLEAN OPTIONAL, unauthenticatedSrtp BOOLEAN OPTIONAL, fecOrder FecOrder OPTIONAL, windowSizeHint INTEGER(64..65535) OPTIONAL, newParameter SEQUENCE OF GenericData OPTIONAL, ... } FecOrder ::= SEQUENCE { fecBeforeSrtp NULL OPTIONAL, fecAfterSrtp NULL OPTIONAL, ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
Configuration
wireshark/epan/dissectors/asn1/h235/h235.cnf
# h235.cnf # H.235.x conformation file # 2004 Tomas Kukosa #.IMPORT ../h225/h225-exp.cnf #.EXPORTS SIGNED ENCRYPTED HASHED TimeStamp ClearToken CryptoToken AuthenticationMechanism SrtpKeys #.END #.PDU SrtpCryptoCapability #.END #.OMIT_ASSIGNMENT ECGDSASignature H235CertificateSignature EncodedGeneralToken EncodedPwdCertToken PwdCertToken EncodedKeySignedMaterial KeySignedMaterial EncodedReturnSig ReturnSig EncodedKeySyncMaterial KeySyncMaterial #.END #.FIELD_RENAME TypedCertificate/certificate certificatedata SIGNED/signature signaturedata CryptoToken/cryptoHashedToken/token hashedToken CryptoToken/cryptoSignedToken/token signedToken CryptoToken/cryptoEncryptedToken/token encryptedToken #.END #.TYPE_ATTR TimeStamp TYPE = FT_ABSOLUTE_TIME DISPLAY = ABSOLUTE_TIME_LOCAL #.END #.FIELD_ATTR NonStandardParameter/data TYPE = FT_UINT32 DISPLAY = BASE_DEC #.END #.FN_HDR SIGNED proto_item *hidden_item; hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA); proto_item_set_hidden(hidden_item); #.END #.FN_HDR ENCRYPTED proto_item *hidden_item; hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA); proto_item_set_hidden(hidden_item); #.END #.FN_HDR HASHED proto_item *hidden_item; hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA); proto_item_set_hidden(hidden_item); #.END #.FN_HDR ClearToken proto_item *hidden_item; hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA); proto_item_set_hidden(hidden_item); #.END #.FN_HDR CryptoToken proto_item *hidden_item; hidden_item = proto_tree_add_item(tree, proto_h235, tvb, offset>>3, 0, ENC_NA); proto_item_set_hidden(hidden_item); #.END
C
wireshark/epan/dissectors/asn1/h235/packet-h235-template.c
/* packet-h235.c * Routines for H.235 packet dissection * 2004 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> #include "packet-per.h" #include "packet-h235.h" #include "packet-h225.h" #define PNAME "H235-SECURITY-MESSAGES" #define PSNAME "H.235" #define PFNAME "h235" #define OID_MIKEY "0.0.8.235.0.3.76" #define OID_MIKEY_PS "0.0.8.235.0.3.72" #define OID_MIKEY_DHHMAC "0.0.8.235.0.3.73" #define OID_MIKEY_PK_SIGN "0.0.8.235.0.3.74" #define OID_MIKEY_DH_SIGN "0.0.8.235.0.3.75" #define OID_TG "0.0.8.235.0.3.70" #define OID_SG "0.0.8.235.0.3.71" void proto_register_h235(void); void proto_reg_handoff_h235(void); /* Initialize the protocol and registered fields */ static int proto_h235 = -1; #include "packet-h235-hf.c" /* Initialize the subtree pointers */ #include "packet-h235-ett.c" static int dissect_xxx_ToBeSigned(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) { dissect_per_not_decoded_yet(tree, actx->pinfo, tvb, "ToBeSigned"); return offset; } #include "packet-h235-fn.c" /*--- proto_register_h235 ----------------------------------------------*/ void proto_register_h235(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-h235-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-h235-ettarr.c" }; /* Register protocol */ proto_h235 = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_h235, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); /* OID names */ /* H.235.1, Chapter 15, Table 3 */ /* A */ oid_add_from_string("all fields in RAS/CS","0.0.8.235.0.1.1"); oid_add_from_string("all fields in RAS/CS","0.0.8.235.0.2.1"); /* T */ oid_add_from_string("ClearToken","0.0.8.235.0.1.5"); oid_add_from_string("ClearToken","0.0.8.235.0.2.5"); /* U */ oid_add_from_string("HMAC-SHA1-96","0.0.8.235.0.1.6"); oid_add_from_string("HMAC-SHA1-96","0.0.8.235.0.2.6"); /* H.235.7, Chapter 5, Table 1 */ oid_add_from_string("MIKEY", OID_MIKEY); oid_add_from_string("MIKEY-PS", OID_MIKEY_PS); oid_add_from_string("MIKEY-DHHMAC", OID_MIKEY_DHHMAC); oid_add_from_string("MIKEY-PK-SIGN", OID_MIKEY_PK_SIGN); oid_add_from_string("MIKEY-DH-SIGN", OID_MIKEY_DH_SIGN); /* H.235.7, Chapter 8.5 */ oid_add_from_string("TG",OID_TG); /* H.235.7, Chapter 9.5 */ oid_add_from_string("SG",OID_SG); /* H.235.8, Chapter 4.2, Table 2 */ oid_add_from_string("AES_CM_128_HMAC_SHA1_80","0.0.8.235.0.4.91"); oid_add_from_string("AES_CM_128_HMAC_SHA1_32","0.0.8.235.0.4.92"); oid_add_from_string("F8_128_HMAC_SHA1_80","0.0.8.235.0.4.93"); } /*--- proto_reg_handoff_h235 -------------------------------------------*/ void proto_reg_handoff_h235(void) { dissector_handle_t mikey_handle; mikey_handle = find_dissector("mikey"); /* H.235.7, Chapter 7.1, MIKEY operation at "session level" */ dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY "/nonCollapsing/0", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY_PS "/nonCollapsing/0", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY_DHHMAC "/nonCollapsing/0", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY_PK_SIGN "/nonCollapsing/0", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY_DH_SIGN "/nonCollapsing/0", mikey_handle); dissector_add_string("h245.gef.content", "EncryptionSync/0", mikey_handle); /* H.235.7, Chapter 7.2, MIKEY operation at "media level" */ dissector_add_string("h245.gef.content", "EncryptionSync/76", mikey_handle); dissector_add_string("h245.gef.content", "EncryptionSync/72", mikey_handle); dissector_add_string("h245.gef.content", "EncryptionSync/73", mikey_handle); dissector_add_string("h245.gef.content", "EncryptionSync/74", mikey_handle); dissector_add_string("h245.gef.content", "EncryptionSync/75", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY "/nonCollapsing/76", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY_PS "/nonCollapsing/72", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY_DHHMAC "/nonCollapsing/73", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY_PK_SIGN "/nonCollapsing/74", mikey_handle); dissector_add_string("h245.gef.content", "GenericCapability/" OID_MIKEY_DH_SIGN "/nonCollapsing/75", mikey_handle); /* H.235.8, Chapter 4.1.2, SrtpCryptoCapability transport */ dissector_add_string("h245.gef.content", "GenericCapability/0.0.8.235.0.4.90/nonCollapsingRaw", create_dissector_handle(dissect_SrtpCryptoCapability_PDU, proto_h235)); }
C/C++
wireshark/epan/dissectors/asn1/h235/packet-h235-template.h
/* packet-h235.h * Routines for H.235 packet dissection * 2004 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_H235_H #define PACKET_H235_H #include "packet-h235-exp.h" #endif /* PACKET_H235_H */
Text
wireshark/epan/dissectors/asn1/h245/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h245 ) set( PROTO_OPT ) set( EXPORT_FILES ${PROTOCOL_NAME}-exp.cnf ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST MULTIMEDIA-SYSTEM-CONTROL.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) set( EXTRA_CNF ) ASN2WRS()
Configuration
wireshark/epan/dissectors/asn1/h245/h245.cnf
# H.245 conformation file # Copyright 2005 Anders Broman anders.broman[at]ericsson.com #---------------------------------------------------------------------------------------- #.OPT PER ALIGNED #.END #.MODULE_EXPORTS T38FaxProfile DataProtocolCapability NO_PROT_PREFIX OpenLogicalChannel QOSCapability H223Capability EXTERN WS_DLL H223LogicalChannelParameters TransportAddress UnicastAddress MulticastAddress Capability #.END #.PDU OpenLogicalChannel #.MAKE_ENUM RequestMessage TYPE_PREFIX ResponseMessage TYPE_PREFIX CommandMessage TYPE_PREFIX IndicationMessage TYPE_PREFIX AudioCapability TYPE_PREFIX #.END #---------------------------------------------------------------------------------------- #.VIRTUAL_ASSGN G723AnnexCAudioMode G7231AnnexCCapability/g723AnnexCAudioMode G7231AnnexCMode/g723AnnexCAudioMode Application DataApplicationCapability/application Nlpid Application/nlpid DataMode/application/nlpid Al3 H223LogicalChannelParameters/adaptationLayerType/al3 H223ModeParameters/adaptationLayerType/al3 ArqType H223AL1MParameters/arqType H223AL3MParameters/arqType Restriction FlowControlCommand/restriction FlowControlIndication/restriction Scope FlowControlCommand/scope FlowControlIndication/scope JitterIndication/scope EncryptedAlphanumeric UserInputIndication/extendedAlphanumeric/encryptedAlphanumeric UserInputIndication/encryptedAlphanumeric DepSeparateStream DepFECData/rfc2733/mode/separateStream DepFECMode/rfc2733Mode/mode/separateStream Rfc2733Format FECCapability/rfc2733Format FECMode/rfc2733Format #---------------------------------------------------------------------------------------- #.FN_BODY MultiplexEntryDescriptor /*MultiplexEntryDescriptor*/ h223_me = NULL; h223_mc = 0; %(DEFAULT_BODY)s if(h223_set_mc_handle) (*h223_set_mc_handle)(%(ACTX)s->pinfo, h223_mc, h223_me); /* stuff */ #.END #---------------------------------------------------------------------------------------- #.FN_PARS MultiplexTableEntryNumber VAL_PTR = &value #.FN_BODY MultiplexTableEntryNumber guint32 value; %(DEFAULT_BODY)s h223_mc = value & 0xf; #.END #---------------------------------------------------------------------------------------- #.FN_BODY MultiplexEntryDescriptor/elementList /* create a h223_mux_element to hold onto the head of the list, since * h223_me will track the tail */ h223_mux_element dummy_me; memset (&dummy_me, 0, sizeof (h223_mux_element)); h223_me = &dummy_me; %(DEFAULT_BODY)s /* set h223_me to the head of the list for MEDescriptor to pick up */ h223_me = dummy_me.next; #.END #---------------------------------------------------------------------------------------- #.FN_HDR MultiplexElement /*MultiplexElement*/ h223_mux_element* me = wmem_new(wmem_file_scope(), h223_mux_element); h223_me->next = me; h223_me = me; h223_me->next = NULL; #.END #---------------------------------------------------------------------------------------- #.FN_PARS MultiplexElement/type/logicalChannelNumber VAL_PTR = &value #.FN_BODY MultiplexElement/type/logicalChannelNumber /*MultiplexElement/type/logicalChannelNumber*/ guint32 value; %(DEFAULT_BODY)s h223_me->sublist = NULL; h223_me->vc = value & 0xffff; #.END #---------------------------------------------------------------------------------------- #.FN_BODY MultiplexElement/type/subElementList h223_mux_element dummy_me, *parent_me = h223_me; memset (&dummy_me, 0, sizeof (h223_mux_element)); h223_me = &dummy_me; %(DEFAULT_BODY)s parent_me->sublist = dummy_me.next; h223_me = parent_me; h223_me->vc = 0; #.END #---------------------------------------------------------------------------------------- #.FN_FTR MultiplexElement/repeatCount/untilClosingFlag h223_me->repeat_count = 0; #.END #---------------------------------------------------------------------------------------- #.FN_PARS MultiplexElement/repeatCount/finite VAL_PTR = &value #.FN_BODY MultiplexElement/repeatCount/finite guint32 value; %(DEFAULT_BODY)s h223_me->repeat_count = value & 0xffff; #.END #---------------------------------------------------------------------------------------- #.FN_BODY LogicalChannelNumber VAL_PTR = &value guint32 value; %(DEFAULT_BODY)s h245_lc_temp = value & 0xfff; #.END #=== OpenLogicalChannel ================================================================= #.FN_BODY OpenLogicalChannel gint32 temp; upcoming_olc = (!actx->pinfo->fd->visited) ? wmem_new0(wmem_file_scope(), olc_info_t) : NULL; h223_fw_lc_num = 0; h223_lc_params_temp = NULL; %(DEFAULT_BODY)s if(h223_fw_lc_num != 0 && h223_fw_lc_params) { h223_pending_olc *pending = wmem_new(wmem_file_scope(), h223_pending_olc); pending->fw_channel_params = h223_fw_lc_params; pending->rev_channel_params = h223_rev_lc_params; temp = h223_fw_lc_num; if (%(ACTX)s->pinfo->p2p_dir > -1) wmem_map_insert(h223_pending_olc_reqs[%(ACTX)s->pinfo->p2p_dir], GINT_TO_POINTER(temp), pending); } if (upcoming_olc) { if (fast_start) { h245_setup_channels(actx->pinfo, &upcoming_olc->rev_lc); } else { wmem_map_insert(h245_pending_olc_reqs, wmem_strdup(wmem_file_scope(), gen_olc_key(upcoming_olc->fwd_lc_num, &%(ACTX)s->pinfo->dst, &%(ACTX)s->pinfo->src, actx->pinfo->pool)), upcoming_olc); } } upcoming_olc = NULL; if (h245_pi != NULL) h245_pi->msg_type = H245_OpenLogChn; #.END #---------------------------------------------------------------------------------------- #.FN_FTR OpenLogicalChannel/forwardLogicalChannelNumber if (upcoming_olc) upcoming_olc->fwd_lc_num = h245_lc_temp; h223_fw_lc_num = h245_lc_temp; #.END #---------------------------------------------------------------------------------------- #.FN_BODY OpenLogicalChannel/forwardLogicalChannelParameters upcoming_channel = (upcoming_olc) ? &upcoming_olc->fwd_lc : NULL; h245_lc_dissector = NULL; %(DEFAULT_BODY)s if(h223_lc_params_temp && h245_lc_dissector) h223_lc_params_temp->subdissector = h245_lc_dissector; else if(h223_lc_params_temp) h223_lc_params_temp->subdissector = data_handle; if (upcoming_channel && codec_type) { (void) g_strlcpy(upcoming_channel->data_type_str, codec_type, sizeof(upcoming_channel->data_type_str)); } upcoming_channel = NULL; #.END #---------------------------------------------------------------------------------------- #.FN_HDR OpenLogicalChannel/forwardLogicalChannelParameters/multiplexParameters/h223LogicalChannelParameters h223_fw_lc_params = wmem_new(wmem_file_scope(), h223_lc_params); h223_fw_lc_params->al_type = al_nonStandard; h223_fw_lc_params->al_params = NULL; h223_fw_lc_params->segmentable = 0; h223_fw_lc_params->subdissector = NULL; h223_lc_params_temp = h223_fw_lc_params; #.END #---------------------------------------------------------------------------------------- #.FN_BODY OpenLogicalChannel/reverseLogicalChannelParameters upcoming_channel = (upcoming_olc) ? &upcoming_olc->rev_lc : NULL; %(DEFAULT_BODY)s if (upcoming_channel && codec_type) { (void) g_strlcpy(upcoming_channel->data_type_str, codec_type, sizeof(upcoming_channel->data_type_str)); } upcoming_channel = NULL; #.END #---------------------------------------------------------------------------------------- #.FN_HDR OpenLogicalChannel/reverseLogicalChannelParameters/multiplexParameters/h223LogicalChannelParameters h223_rev_lc_params = wmem_new(wmem_file_scope(), h223_lc_params); h223_rev_lc_params->al_type = al_nonStandard; h223_rev_lc_params->al_params = NULL; h223_rev_lc_params->segmentable = 0; h223_rev_lc_params->subdissector = NULL; h223_lc_params_temp = h223_rev_lc_params; #.END #======================================================================================== #=== OpenLogicalChannelAck ============================================================== #.FN_BODY OpenLogicalChannelAck guint32 temp; int p2p_dir; h223_pending_olc *pend; const gchar *olc_key; olc_info_t *olc_req; upcoming_olc = (!actx->pinfo->fd->visited) ? wmem_new0(actx->pinfo->pool, olc_info_t) : NULL; h223_fw_lc_num = 0; h223_rev_lc_num = 0; %(DEFAULT_BODY)s temp = h223_fw_lc_num; p2p_dir = %(ACTX)s->pinfo->p2p_dir; if(%(ACTX)s->pinfo->p2p_dir == P2P_DIR_SENT) %(ACTX)s->pinfo->p2p_dir = P2P_DIR_RECV; else %(ACTX)s->pinfo->p2p_dir = P2P_DIR_SENT; pend = (h223_pending_olc *)wmem_map_lookup( h223_pending_olc_reqs[%(ACTX)s->pinfo->p2p_dir], GINT_TO_POINTER(temp) ); if (pend) { DISSECTOR_ASSERT( ( h223_rev_lc_num && pend->rev_channel_params) || (!h223_rev_lc_num && !pend->rev_channel_params) ); if(h223_add_lc_handle) { (*h223_add_lc_handle)( %(ACTX)s->pinfo, h223_fw_lc_num, pend->fw_channel_params); if(h223_rev_lc_num) (*h223_add_lc_handle)( %(ACTX)s->pinfo, h223_rev_lc_num, pend->rev_channel_params); } } else { /* we missed the OpenLogicalChannel packet */ } %(ACTX)s->pinfo->p2p_dir = p2p_dir; if (upcoming_olc) { olc_key = gen_olc_key(upcoming_olc->fwd_lc_num, &%(ACTX)s->pinfo->src, &%(ACTX)s->pinfo->dst, actx->pinfo->pool); olc_req = (olc_info_t *)wmem_map_lookup(h245_pending_olc_reqs, olc_key); if (olc_req) { update_unicast_addr(&olc_req->fwd_lc.media_addr, &upcoming_olc->fwd_lc.media_addr); update_unicast_addr(&olc_req->fwd_lc.media_control_addr, &upcoming_olc->fwd_lc.media_control_addr); update_unicast_addr(&olc_req->rev_lc.media_addr, &upcoming_olc->rev_lc.media_addr); update_unicast_addr(&olc_req->rev_lc.media_control_addr, &upcoming_olc->rev_lc.media_control_addr); h245_setup_channels(actx->pinfo, &olc_req->fwd_lc); h245_setup_channels(actx->pinfo, &olc_req->rev_lc); wmem_map_remove(h245_pending_olc_reqs, olc_key); } else { h245_setup_channels(actx->pinfo, &upcoming_olc->fwd_lc); } } upcoming_olc = NULL; if (h245_pi != NULL) h245_pi->msg_type = H245_OpenLogChnAck; #.END #---------------------------------------------------------------------------------------- #.FN_FTR OpenLogicalChannelAck/forwardLogicalChannelNumber if (upcoming_olc) upcoming_olc->fwd_lc_num = h245_lc_temp; h223_fw_lc_num = h245_lc_temp; #.END #---------------------------------------------------------------------------------------- #.FN_BODY OpenLogicalChannelAck/forwardMultiplexAckParameters upcoming_channel = (upcoming_olc) ? &upcoming_olc->fwd_lc : NULL; %(DEFAULT_BODY)s upcoming_channel = NULL; #.END #---------------------------------------------------------------------------------------- #.FN_FTR OpenLogicalChannelAck/reverseLogicalChannelParameters/reverseLogicalChannelNumber h223_rev_lc_num = h245_lc_temp; #.END #======================================================================================== #---------------------------------------------------------------------------------------- #.FN_HDR H223LogicalChannelParameters/adaptationLayerType/al1Framed if(h223_lc_params_temp) h223_lc_params_temp->al_type = al1Framed; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H223LogicalChannelParameters/adaptationLayerType/al1NotFramed if(h223_lc_params_temp) h223_lc_params_temp->al_type = al1NotFramed; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H223LogicalChannelParameters/adaptationLayerType/al2WithoutSequenceNumbers if(h223_lc_params_temp) h223_lc_params_temp->al_type = al2WithoutSequenceNumbers; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H223LogicalChannelParameters/adaptationLayerType/al2WithSequenceNumbers if(h223_lc_params_temp) h223_lc_params_temp->al_type = al2WithSequenceNumbers; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H223LogicalChannelParameters/adaptationLayerType/al3 if(h223_lc_params_temp) { h223_lc_params_temp->al_type = al3; h223_lc_params_temp->al_params = wmem_new(wmem_file_scope(), h223_al3_params); } #.END #---------------------------------------------------------------------------------------- #.FN_PARS Al3/controlFieldOctets VAL_PTR = &value #.FN_BODY Al3/controlFieldOctets guint32 value; %(DEFAULT_BODY)s if(h223_lc_params_temp && h223_lc_params_temp->al_params) ((h223_al3_params*)h223_lc_params_temp->al_params)->control_field_octets = value & 3 ; #.END #---------------------------------------------------------------------------------------- #.FN_PARS Al3/sendBufferSize VAL_PTR = &value #.FN_BODY Al3/sendBufferSize guint32 value; %(DEFAULT_BODY)s if(h223_lc_params_temp && h223_lc_params_temp->al_params) ((h223_al3_params*)h223_lc_params_temp->al_params)->send_buffer_size = value & 0xfffff; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H223LogicalChannelParameters/adaptationLayerType/al1M if(h223_lc_params_temp) h223_lc_params_temp->al_type = al1M; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H223LogicalChannelParameters/adaptationLayerType/al2M if(h223_lc_params_temp) h223_lc_params_temp->al_type = al2M; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H223LogicalChannelParameters/adaptationLayerType/al3M if(h223_lc_params_temp) h223_lc_params_temp->al_type = al3M; #.END #---------------------------------------------------------------------------------------- #.FN_PARS H223LogicalChannelParameters/segmentableFlag VAL_PTR = &value #.FN_BODY H223LogicalChannelParameters/segmentableFlag gboolean value; %(DEFAULT_BODY)s if(h223_lc_params_temp) h223_lc_params_temp->segmentable = value; #.END #---------------------------------------------------------------------------------------- #.FN_FTR H263VideoCapability h245_lc_dissector = h263_handle; #.END #---------------------------------------------------------------------------------------- #.FN_BODY RequestMessage VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s print_info_column(%(ACTX)s->pinfo->cinfo, &value, h245_RequestMessage_vals, h245_RequestMessage_short_vals); if (( codec_type != NULL ) && ( value == RequestMessage_openLogicalChannel) ){ col_append_fstr(%(ACTX)s->pinfo->cinfo, COL_INFO, "(%%s) ", codec_type ); } col_set_fence(%(ACTX)s->pinfo->cinfo,COL_INFO); /* Add to packet info */ if (h245_pi == NULL) return offset; if (strlen(h245_pi->frame_label) == 0) { snprintf(h245_pi->frame_label, 50, "%%s", val_to_str(value, h245_RequestMessage_short_vals, "UKN")); /* if it is OLC or RM*/ if ((codec_type != NULL) && (( value == RequestMessage_openLogicalChannel) || ( value == RequestMessage_requestMode))) { (void) g_strlcat(h245_pi->frame_label, " (", 50); (void) g_strlcat(h245_pi->frame_label, codec_type, 50); (void) g_strlcat(h245_pi->frame_label, ")", 50); } } (void) g_strlcat(h245_pi->comment, val_to_str(value, h245_RequestMessage_vals, "<unknown>"), 50); #.END #---------------------------------------------------------------------------------------- #.FN_BODY ResponseMessage VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s print_info_column(%(ACTX)s->pinfo->cinfo, &value, h245_ResponseMessage_vals, h245_ResponseMessage_short_vals); col_set_fence(%(ACTX)s->pinfo->cinfo,COL_INFO); if (h245_pi != NULL){ /* Add to packet info */ if ( strlen(h245_pi->frame_label) == 0 ){ snprintf(h245_pi->frame_label, 50, "%%s", val_to_str(value, h245_ResponseMessage_short_vals, "UKN")); } (void) g_strlcat(h245_pi->comment, val_to_str(value, h245_ResponseMessage_vals, "<unknown>"), 50); } #.END #---------------------------------------------------------------------------------------- #.FN_BODY IndicationMessage VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s print_info_column(%(ACTX)s->pinfo->cinfo, &value, h245_IndicationMessage_vals, h245_IndicationMessage_short_vals); col_set_fence(%(ACTX)s->pinfo->cinfo,COL_INFO); /* Add to packet info */ if (h245_pi !=NULL){ if ( strlen(h245_pi->frame_label) == 0 ){ snprintf(h245_pi->frame_label, 50, "%%s", val_to_str(value, h245_IndicationMessage_short_vals, "UKN")); } (void) g_strlcat(h245_pi->comment, val_to_str(value, h245_IndicationMessage_vals, "<unknown>"), 50); } #.END #---------------------------------------------------------------------------------------- #.FN_BODY CommandMessage VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s print_info_column(%(ACTX)s->pinfo->cinfo, &value, h245_CommandMessage_vals, h245_CommandMessage_short_vals); col_set_fence(%(ACTX)s->pinfo->cinfo,COL_INFO); /* Add to packet info */ if (h245_pi != NULL){ if ( strlen(h245_pi->frame_label) == 0 ){ snprintf(h245_pi->frame_label, 50, "%%s", val_to_str(value, h245_CommandMessage_short_vals, "UKN")); } (void) g_strlcat(h245_pi->comment, val_to_str(value, h245_CommandMessage_vals, "<unknown>"), 50); } #.END #---------------------------------------------------------------------------------------- #.FN_BODY AudioCapability VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s codec_type = val_to_str(value, h245_AudioCapability_short_vals, "<unknown>"); #.END #---------------------------------------------------------------------------------------- #.FN_BODY VideoCapability VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s codec_type = val_to_str(value, h245_VideoCapability_vals, "<unknown>"); #.END #---------------------------------------------------------------------------------------- #.FN_BODY Application VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s codec_type = val_to_str(value, h245_Application_vals, "<unknown>"); #.END #---------------------------------------------------------------------------------------- #.FN_BODY AudioMode VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s codec_type = val_to_str(value, h245_AudioMode_vals, "<unknown>"); #.END #---------------------------------------------------------------------------------------- #.FN_BODY VideoMode VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s codec_type = val_to_str(value, h245_VideoMode_vals, "<unknown>"); #.END #---------------------------------------------------------------------------------------- #.FN_BODY DataMode/application VAL_PTR = &value gint32 value; %(DEFAULT_BODY)s codec_type = val_to_str(value, h245_DataModeApplication_vals, "<unknown>"); #.END #---------------------------------------------------------------------------------------- #.FN_FTR MasterSlaveDeterminationAck if (h245_pi != NULL) h245_pi->msg_type = H245_MastSlvDetAck; #.END #---------------------------------------------------------------------------------------- #.FN_FTR MasterSlaveDeterminationReject if (h245_pi != NULL) h245_pi->msg_type = H245_MastSlvDetRjc; #.END #---------------------------------------------------------------------------------------- #.FN_FTR OpenLogicalChannelReject if (h245_pi != NULL) h245_pi->msg_type = H245_OpenLogChnRjc; #.END #---------------------------------------------------------------------------------------- #.FN_FTR CloseLogicalChannel if (h245_pi != NULL) h245_pi->msg_type = H245_CloseLogChn; #.END #---------------------------------------------------------------------------------------- #.FN_FTR CloseLogicalChannelAck if (h245_pi != NULL) h245_pi->msg_type = H245_CloseLogChnAck; #.END #---------------------------------------------------------------------------------------- #.FN_FTR OpenLogicalChannelConfirm if (h245_pi != NULL) h245_pi->msg_type = H245_OpenLogChnCnf; #.END #---------------------------------------------------------------------------------------- #.FN_FTR TerminalCapabilitySetAck if (h245_pi != NULL) h245_pi->msg_type = H245_TermCapSetAck; #.END #---------------------------------------------------------------------------------------- #.FN_FTR MasterSlaveDetermination if (h245_pi != NULL) h245_pi->msg_type = H245_MastSlvDet; #.END #---------------------------------------------------------------------------------------- #.FN_FTR TerminalCapabilitySetReject if (h245_pi != NULL) h245_pi->msg_type = H245_TermCapSetRjc; #.END #---------------------------------------------------------------------------------------- #.FN_FTR MasterSlaveDeterminationRelease if (h245_pi != NULL) h245_pi->msg_type = H245_MastSlvDetRls; #.END #---------------------------------------------------------------------------------------- #.FN_FTR TerminalCapabilitySet if (h245_pi != NULL) h245_pi->msg_type = H245_TermCapSet; #.END #---------------------------------------------------------------------------------------- #.FN_FTR TerminalCapabilitySetRelease if (h245_pi != NULL) h245_pi->msg_type = H245_TermCapSetRls; #.END #---------------------------------------------------------------------------------------- #=== Generic Extensible Framework ======================================================= #.FN_HDR GenericMessage void *priv_data = actx->private_data; gef_ctx_t *gefx; /* check if not inherited from GenericInformation */ gefx = gef_ctx_get(actx->private_data); if (!gefx) { gefx = gef_ctx_alloc(actx->pinfo->pool, NULL, "GenericMessage"); actx->private_data = gefx; } #.FN_FTR actx->private_data = priv_data; #.END #.FN_BODY GenericMessage/subMessageIdentifier VAL_PTR = &subMessageIdentifier guint32 subMessageIdentifier; gef_ctx_t *gefx; gefx = gef_ctx_get(actx->private_data); if (gefx) { /* If this is a standard generic message use hf_h245_subMessageIdentifier_standard to get * the value translated and make it fileterable. */ if (strcmp("GenericMessage/0.0.8.239.2", gefx->key) == 0) { hf_index = hf_h245_subMessageIdentifier_standard; } } %(DEFAULT_BODY)s if (gefx) { gefx->subid = wmem_strdup_printf(actx->pinfo->pool, "%%u", subMessageIdentifier); gef_ctx_update_key(actx->pinfo->pool, gef_ctx_get(actx->private_data)); } if (hf_index == hf_h245_subMessageIdentifier_standard) { col_append_str(actx->pinfo->cinfo, COL_INFO, val_to_str(subMessageIdentifier, h245_h239subMessageIdentifier_vals, "<unknown>") ); snprintf(h245_pi->frame_label, 50, "%%s", val_to_str(subMessageIdentifier, h245_h239subMessageIdentifier_vals, "<unknown>")); } #.END #.FN_HDR GenericMessage/messageContent/_item gef_ctx_t *parent_gefx; parent_gefx = gef_ctx_get(actx->private_data); actx->private_data = gef_ctx_alloc(actx->pinfo->pool, parent_gefx, NULL); #.FN_FTR actx->private_data = parent_gefx; #.END #---------------------------------------------------------------------------------------- #.FN_HDR GenericInformation void *priv_data = actx->private_data; actx->private_data = gef_ctx_alloc(actx->pinfo->pool, NULL, "GenericInformation"); #.FN_FTR actx->private_data = priv_data; #.END #--- GenericCapability ------------------------------------------------------------------ #.FN_HDR GenericCapability void *priv_data = actx->private_data; actx->private_data = gef_ctx_alloc(actx->pinfo->pool, NULL, "GenericCapability"); #.FN_FTR actx->private_data = priv_data; #.END #.FN_HDR GenericCapability/collapsing/_item gef_ctx_t *parent_gefx; parent_gefx = gef_ctx_get(actx->private_data); actx->private_data = gef_ctx_alloc(actx->pinfo->pool, parent_gefx, "collapsing"); #.FN_FTR actx->private_data = parent_gefx; #.END #.FN_HDR GenericCapability/nonCollapsing/_item gef_ctx_t *parent_gefx; parent_gefx = gef_ctx_get(actx->private_data); actx->private_data = gef_ctx_alloc(actx->pinfo->pool, parent_gefx, "nonCollapsing"); #.FN_FTR actx->private_data = parent_gefx; #.END #.FN_BODY GenericCapability/nonCollapsingRaw VAL_PTR = &value_tvb tvbuff_t *value_tvb; gef_ctx_t *parent_gefx; gef_ctx_t *gefx; proto_item* ti; parent_gefx = gef_ctx_get(actx->private_data); actx->private_data = gef_ctx_alloc(actx->pinfo->pool, parent_gefx, "nonCollapsingRaw"); %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) { ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s, %(ACTX)s); } actx->private_data = parent_gefx; #.END #--- EncryptionSync --------------------------------------------------------------------- #.FN_HDR EncryptionSync void *priv_data = actx->private_data; actx->private_data = gef_ctx_alloc(actx->pinfo->pool, NULL, "EncryptionSync"); #.FN_FTR actx->private_data = priv_data; #.END #---------------------------------------------------------------------------------------- #.FN_HDR CapabilityIdentifier gef_ctx_t *gefx; proto_item* ti; #.FN_FTR gef_ctx_update_key(actx->pinfo->pool, gef_ctx_get(actx->private_data)); gefx = gef_ctx_get(actx->private_data); if (gefx) { ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); dissector_try_string(gef_name_dissector_table, gefx->key, tvb_new_subset_length_caplen(tvb, offset>>3, 0, 0), actx->pinfo, tree, actx); } actx->private_data = gefx; /* subdissector could overwrite it */ #.END #.FN_BODY CapabilityIdentifier/standard FN_VARIANT = _str VAL_PTR = &standard_oid_str const gchar *standard_oid_str = NULL; gef_ctx_t *gefx; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) gefx->id = standard_oid_str; if(strcmp(standard_oid_str,"0.0.8.235.0.3.76") == 0) { /* MIKEY */ if (upcoming_channel) upcoming_channel->srtp_flag = TRUE; } if(!h245_lc_dissector && strcmp(standard_oid_str,"0.0.8.245.1.1.1") == 0) h245_lc_dissector = amr_handle; #.END #---------------------------------------------------------------------------------------- #.FN_HDR ParameterIdentifier gef_ctx_t *gefx; proto_item* ti; #.FN_FTR gef_ctx_update_key(actx->pinfo->pool, gef_ctx_get(actx->private_data)); gefx = gef_ctx_get(actx->private_data); if (gefx) { ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); dissector_try_string_new(gef_name_dissector_table, gefx->key, tvb_new_subset_length_caplen(tvb, offset>>3, 0, 0), actx->pinfo, tree, FALSE, actx); } actx->private_data = gefx; /* subdissector could overwrite it */ #.END #.FN_BODY ParameterIdentifier/standard VAL_PTR = &value_int guint32 value_int = (guint32)-1; gef_ctx_t *gefx; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) gefx->id = wmem_strdup_printf(actx->pinfo->pool, "%%d", value_int); #.END #---------------------------------------------------------------------------------------- #.FN_BODY ParameterValue/booleanArray VAL_PTR = &value guint32 value; guint8 *buf; tvbuff_t *value_tvb; gef_ctx_t *gefx; proto_item* ti; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) { buf = wmem_new(actx->pinfo->pool, guint8); buf[0] = value; value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint8), sizeof(guint8)); ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); add_new_data_source(%(ACTX)s->pinfo, value_tvb, "booleanArray"); dissector_try_string_new(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s, FALSE, %(ACTX)s); } #.END #.FN_BODY ParameterValue/unsignedMin VAL_PTR = &value guint32 value; guint8 *buf; tvbuff_t *value_tvb; gef_ctx_t *gefx; proto_item* ti; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) { buf = (guint8 *)wmem_new(actx->pinfo->pool, guint16); phton16(buf, value); value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint16), sizeof(guint16)); ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); add_new_data_source(%(ACTX)s->pinfo, value_tvb, "unsignedMin"); dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s, %(ACTX)s); } #.END #.FN_BODY ParameterValue/unsignedMax VAL_PTR = &value guint32 value; guint8 *buf; tvbuff_t *value_tvb; gef_ctx_t *gefx; proto_item* ti; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) { buf = (guint8 *)wmem_new(actx->pinfo->pool, guint16); phton16(buf, value); value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint16), sizeof(guint16)); ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); add_new_data_source(%(ACTX)s->pinfo, value_tvb, "unsignedMax"); dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s, %(ACTX)s); } #.END #.FN_BODY ParameterValue/unsigned32Min VAL_PTR = &value guint32 value; guint8 *buf; tvbuff_t *value_tvb; gef_ctx_t *gefx; proto_item* ti; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) { buf = (guint8 *)wmem_new(actx->pinfo->pool, guint32); phton32(buf, value); value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint32), sizeof(guint32)); ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); add_new_data_source(%(ACTX)s->pinfo, value_tvb, "unsigned32Min"); dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s, %(ACTX)s); } #.END #.FN_BODY ParameterValue/unsigned32Max VAL_PTR = &value guint32 value; guint8 *buf; tvbuff_t *value_tvb; gef_ctx_t *gefx; proto_item* ti; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) { buf = (guint8 *)wmem_new(actx->pinfo->pool, guint32); phton32(buf, value); value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint32), sizeof(guint32)); ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); add_new_data_source(%(ACTX)s->pinfo, value_tvb, "unsigned32Max"); dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s, %(ACTX)s); } #.END #.FN_BODY ParameterValue/octetString VAL_PTR = &value_tvb tvbuff_t *value_tvb; gef_ctx_t *gefx; proto_item* ti; %(DEFAULT_BODY)s gefx = gef_ctx_get(actx->private_data); if (gefx) { ti = proto_tree_add_string(tree, hf_h245_debug_dissector_try_string, tvb, offset>>3, 0, gefx->key); proto_item_set_hidden(ti); dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s, %(ACTX)s); } #.END #=== end of GEF ========================================================================= #---------------------------------------------------------------------------------------- #.FN_BODY UnicastAddress/iPAddress/network VAL_PTR = &value_tvb tvbuff_t *value_tvb; %(DEFAULT_BODY)s if (upcoming_channel && upcoming_channel->upcoming_addr) { tvb_memcpy(value_tvb, upcoming_channel->upcoming_addr->addr_buf, 0, 4); set_address(&upcoming_channel->upcoming_addr->addr, AT_IPv4, 4, upcoming_channel->upcoming_addr->addr_buf); } #.END #---------------------------------------------------------------------------------------- #.FN_BODY UnicastAddress/iPAddress/tsapIdentifier VAL_PTR = &tsapIdentifier guint32 tsapIdentifier; %(DEFAULT_BODY)s if (upcoming_channel && upcoming_channel->upcoming_addr) { upcoming_channel->upcoming_addr->port = tsapIdentifier; } #.END #---------------------------------------------------------------------------------------- #.FN_BODY UnicastAddress/iP6Address/network VAL_PTR = &value_tvb tvbuff_t *value_tvb; %(DEFAULT_BODY)s if (upcoming_channel && upcoming_channel->upcoming_addr) { tvb_memcpy(value_tvb, upcoming_channel->upcoming_addr->addr_buf, 0, 16); set_address(&upcoming_channel->upcoming_addr->addr, AT_IPv6, 16, upcoming_channel->upcoming_addr->addr_buf); } #.END #---------------------------------------------------------------------------------------- #.FN_BODY UnicastAddress/iP6Address/tsapIdentifier VAL_PTR = &tsapIdentifier guint32 tsapIdentifier; %(DEFAULT_BODY)s if (upcoming_channel && upcoming_channel->upcoming_addr) { upcoming_channel->upcoming_addr->port = tsapIdentifier; } #.END #---------------------------------------------------------------------------------------- #.FN_HDR H2250LogicalChannelAckParameters/mediaChannel if (upcoming_channel) upcoming_channel->upcoming_addr = &upcoming_channel->media_addr; #.END #.FN_FTR H2250LogicalChannelAckParameters/mediaChannel if (upcoming_channel) upcoming_channel->upcoming_addr = NULL; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H2250LogicalChannelParameters/mediaChannel if (upcoming_channel) upcoming_channel->upcoming_addr = &upcoming_channel->media_addr; #.END #.FN_FTR H2250LogicalChannelParameters/mediaChannel if (upcoming_channel) upcoming_channel->upcoming_addr = NULL; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H2250LogicalChannelAckParameters/mediaControlChannel if (upcoming_channel) upcoming_channel->upcoming_addr = &upcoming_channel->media_control_addr; #.END #.FN_FTR H2250LogicalChannelAckParameters/mediaControlChannel if (upcoming_channel) upcoming_channel->upcoming_addr = NULL; #.END #---------------------------------------------------------------------------------------- #.FN_HDR H2250LogicalChannelParameters/mediaControlChannel if (upcoming_channel) upcoming_channel->upcoming_addr = &upcoming_channel->media_control_addr; #.END #.FN_FTR H2250LogicalChannelParameters/mediaControlChannel if (upcoming_channel) upcoming_channel->upcoming_addr = NULL; #.END #--- RTPPayloadType --------------------------------------------------------------------- #.FN_HDR RTPPayloadType rfc_number = 0; #.END #.FN_PARS RTPPayloadType/payloadDescriptor/rfc-number VAL_PTR = &rfc_number #.END #.FN_BODY RTPPayloadType/payloadType VAL_PTR = &pt unsigned int pt; %(DEFAULT_BODY)s if ((rfc_number == 2198) && upcoming_channel) { upcoming_channel->rfc2198 = pt; } #.END #--- NonStandardParameter --------------------------------------------------------------- #.FN_PARS NonStandardIdentifier/object FN_VARIANT = _str VAL_PTR = &nsiOID #.END #.FN_BODY NonStandardIdentifier VAL_PTR = &value gint32 value; nsiOID = ""; h221NonStandard = 0; %(DEFAULT_BODY)s switch (value) { case 0 : /* object */ nsp_handle = dissector_get_string_handle(nsp_object_dissector_table, nsiOID); break; case 1 : /* h221NonStandard */ nsp_handle = dissector_get_uint_handle(nsp_h221_dissector_table, h221NonStandard); break; default : nsp_handle = NULL; } #.END #.FN_HDR NonStandardIdentifier/h221NonStandard t35CountryCode = 0; t35Extension = 0; manufacturerCode = 0; #.FN_FTR NonStandardIdentifier/h221NonStandard h221NonStandard = ((t35CountryCode * 256) + t35Extension) * 65536 + manufacturerCode; proto_tree_add_uint(tree, hf_h245Manufacturer, tvb, (offset>>3)-4, 4, h221NonStandard); #.FN_PARS NonStandardIdentifier/h221NonStandard/t35CountryCode VAL_PTR = &t35CountryCode NonStandardIdentifier/h221NonStandard/t35Extension VAL_PTR = &t35Extension NonStandardIdentifier/h221NonStandard/manufacturerCode VAL_PTR = &manufacturerCode #.END #.FN_HDR NonStandardParameter nsp_handle = NULL; #.FN_BODY NonStandardParameter/data VAL_PTR = &next_tvb tvbuff_t *next_tvb = NULL; %(DEFAULT_BODY)s if (next_tvb && tvb_reported_length(next_tvb)) { call_dissector((nsp_handle)?nsp_handle:data_handle, next_tvb, %(ACTX)s->pinfo, tree); } #.END #.FN_BODY FunctionNotSupported/returnedFunction VAL_PTR = &next_tvb tvbuff_t *next_tvb = NULL; proto_item *item; proto_tree *subtree; h245_packet_info *saved_h245_pi; %(DEFAULT_BODY)s if (next_tvb && tvb_reported_length(next_tvb)) { saved_h245_pi = h245_pi; h245_pi = NULL; subtree = proto_tree_add_subtree(tree, next_tvb, 0, -1, ett_h245_returnedFunction, &item, "The returned function"); proto_item_set_generated(item); dissect_h245_MultimediaSystemControlMessage(next_tvb, 0, actx, subtree, hf_h245_pdu_type); h245_pi = saved_h245_pi; } #.FN_BODY DataType VAL_PTR = &choice_index gint choice_index; %(DEFAULT_BODY)s if (upcoming_channel){ if (choice_index==2){ upcoming_channel->is_video=TRUE; }else{ upcoming_channel->is_video=FALSE; } } #---------------------------------------------------------------------------------------- #.TYPE_RENAME NewATMVCCommand/aal Cmd_aal NewATMVCCommand/aal/aal1 Cmd_aal1 NewATMVCCommand/aal/aal5 Cmd_aal5 NewATMVCCommand/aal/aal1/clockRecovery Cmd_clockRecovery NewATMVCCommand/aal/aal1/errorCorrection Cmd_errorCorrection NewATMVCCommand/multiplex Cmd_multiplex NewATMVCCommand/reverseParameters Cmd_reverseParameters NewATMVCCommand/reverseParameters/multiplex CmdR_multiplex NewATMVCIndication/aal Ind_aal NewATMVCIndication/aal/aal1 Ind_aal1 NewATMVCIndication/aal/aal5 Ind_aal5 NewATMVCIndication/aal/aal1/clockRecovery Ind_clockRecovery NewATMVCIndication/aal/aal1/errorCorrection Ind_errorCorrection NewATMVCIndication/multiplex Ind_multiplex NewATMVCIndication/reverseParameters Ind_reverseParameters NewATMVCIndication/reverseParameters/multiplex IndR_multiplex MultilinkRequest/callInformation CallInformationReq MultilinkRequest/addConnection AddConnectionReq MultilinkRequest/removeConnection RemoveConnectionReq MultilinkRequest/maximumHeaderInterval MaximumHeaderIntervalReq MultilinkResponse/callInformation CallInformationResp MultilinkResponse/addConnection AddConnectionResp MultilinkResponse/removeConnection RemoveConnectionResp MultilinkResponse/maximumHeaderInterval MaximumHeaderIntervalResp MasterSlaveDeterminationReject/cause MasterSlaveDeterminationRejectCause TerminalCapabilitySetReject/cause TerminalCapabilitySetRejectCause OpenLogicalChannelReject/cause OpenLogicalChannelRejectCause RequestChannelCloseReject/cause RequestChannelCloseRejectCause MultiplexEntryRejectionDescriptions/cause MultiplexEntryRejectionDescriptionsCause RequestMultiplexEntryRejectionDescriptions/cause RequestMultiplexEntryRejectionDescriptionsCause RequestModeReject/cause RequestModeRejectCause MaintenanceLoopReject/cause MaintenanceLoopRejectCause FunctionNotSupported/cause FunctionNotSupportedCause AudioMode/g7231 Mode_g7231 DataMode/application DataModeApplication DataMode/application/t38fax T38faxApp DepFECData/rfc2733 RFC2733Data IS13818AudioMode/audioLayer IS13818AudioLayer IS13818AudioMode/audioSampling IS13818AudioSampling IS13818AudioMode/multichannelType IS13818MultichannelType H223ModeParameters/adaptationLayerType AdaptationLayerType H223AL1MParameters/headerFEC AL1HeaderFEC H223AL1MParameters/crcLength AL1CrcLength H223AL2MParameters/headerFEC AL2HeaderFEC H223AL3MParameters/crcLength AL3CrcLength H261VideoMode/resolution H261Resolution H263VideoMode/resolution H263Resolution UnicastAddress/iPAddress/network Ipv4_network MulticastAddress/iPAddress MIPAddress MulticastAddress/iP6Address MIP6Address NonStandardIdentifier/h221NonStandard H221NonStandardID OpenLogicalChannel/forwardLogicalChannelNumber OLC_fw_lcn OpenLogicalChannelAck/forwardLogicalChannelNumber OLC_ack_fw_lcn OpenLogicalChannel/forwardLogicalChannelParameters/multiplexParameters OLC_forw_multiplexParameters OpenLogicalChannel/reverseLogicalChannelParameters/multiplexParameters OLC_rev_multiplexParameters OpenLogicalChannel/reverseLogicalChannelParameters OLC_reverseLogicalChannelParameters OpenLogicalChannel/forwardLogicalChannelParameters/multiplexParameters/h223LogicalChannelParameters OLC_fw_h223_params OpenLogicalChannel/reverseLogicalChannelParameters/multiplexParameters/h223LogicalChannelParameters OLC_rev_h223_params OpenLogicalChannelAck/reverseLogicalChannelParameters OLC_ack_reverseLogicalChannelParameters CloseLogicalChannel/reason Clc_reason VCCapability/availableBitRates/type Avb_type MultiplexElement/type Me_type RedundancyEncodingDTModeElement/type Re_type MaintenanceLoopRequest/type Mlr_type MaintenanceLoopAck/type Mla_type MaintenanceLoopReject/type Mlrej_type MiscellaneousCommand/type Mc_type MiscellaneousIndication/type Mi_type V76LogicalChannelParameters/mode V76LCP_mode DepFECData/rfc2733/mode FECdata_mode DepFECMode/rfc2733Mode/mode FEC_mode IS11172AudioMode/multichannelType IS11172_multichannelType MultiplexElement/repeatCount/finite ME_finiteRepeatCount MultiplexElement/repeatCount ME_repeatCount DepFECCapability/rfc2733 FECC_rfc2733 RequestModeAck/response Req_mode_ack_response UserInputIndication/signalUpdate/rtp Si_rtp UnicastAddress/iPAddress/tsapIdentifier TsapIdentifier H2250LogicalChannelAckParameters/mediaChannel Ack_mediaChannel H2250LogicalChannelAckParameters/mediaControlChannel Ack_mediaControlChannel CommunicationModeTableEntry/mediaChannel Cm_mediaChannel #---------------------------------------------------------------------------------------- #.FIELD_RENAME #---------------------------------------------------------------------------------------- NewATMVCCommand/aal cmd_aal NewATMVCCommand/aal/aal1 cmd_aal1 NewATMVCCommand/aal/aal5 cmd_aal5 NewATMVCCommand/aal/aal1/clockRecovery cmd_clockRecovery NewATMVCCommand/aal/aal1/errorCorrection cmd_errorCorrection NewATMVCCommand/multiplex cmd_multiplex NewATMVCCommand/reverseParameters cmd_reverseParameters NewATMVCCommand/reverseParameters/multiplex cmdr_multiplex NewATMVCIndication/aal ind_aal NewATMVCIndication/aal/aal1 ind_aal1 NewATMVCIndication/aal/aal5 ind_aal5 NewATMVCIndication/aal/aal1/clockRecovery ind_clockRecovery NewATMVCIndication/aal/aal1/errorCorrection ind_errorCorrection NewATMVCIndication/multiplex ind_multiplex NewATMVCIndication/reverseParameters ind_reverseParameters NewATMVCIndication/reverseParameters/multiplex indr_multiplex MultilinkRequest/callInformation callInformationReq MultilinkRequest/addConnection addConnectionReq MultilinkRequest/removeConnection removeConnectionReq MultilinkRequest/maximumHeaderInterval maximumHeaderIntervalReq MultilinkResponse/callInformation callInformationResp MultilinkResponse/addConnection addConnectionResp MultilinkResponse/removeConnection removeConnectionResp MultilinkResponse/maximumHeaderInterval maximumHeaderIntervalResp MultiplexElement/type/logicalChannelNumber logicalChannelNum ConnectionIdentifier/sequenceNumber sequenceNum RequestMessage/nonStandard nonStandardMsg ResponseMessage/nonStandard nonStandardMsg CommandMessage/nonStandard nonStandardMsg IndicationMessage/nonStandard nonStandardMsg MultilinkRequest/nonStandard nonStandardMsg MultilinkResponse/nonStandard nonStandardMsg MultilinkIndication/nonStandard nonStandardMsg DialingInformation/nonStandard nonStandardMsg DialingInformationNetworkType/nonStandard nonStandardMsg UserInputCapability/nonStandard ui_nonStandard H2250LogicalChannelParameters/nonStandard nonStandardParams H2250LogicalChannelAckParameters/nonStandard nonStandardParams CommunicationModeTableEntry/nonStandard nonStandardParams ConferenceCapability/nonStandardData nonStandardParams UnicastAddress/iPXAddress/tsapIdentifier ipx_tsapIdentifier NonStandardParameter/data nsd_data NonStandardIdentifier/h221NonStandard h221NonStandardID AudioMode/g711Alaw64k g711Alaw64k_mode AudioMode/g711Alaw56k g711Alaw56k_mode AudioMode/g711Ulaw64k g711Ulaw64k_mode AudioMode/g711Ulaw56k g711Ulaw56k_mode AudioMode/g722-64k g722_64k_mode AudioMode/g722-56k g722_56k_mode AudioMode/g722-48k g722_48k_mode AudioMode/g728 g728_mode AudioMode/g729 g729_mode AudioMode/g729AnnexA g729AnnexA_mode AudioMode/g7231 g7231_mode AudioMode/vbd vbd_mode IS11172AudioMode/audioLayer/audioLayer1 audioLayer1Mode IS11172AudioMode/audioLayer/audioLayer2 audioLayer2Mode IS11172AudioMode/audioLayer/audioLayer3 audioLayer3Mode IS11172AudioMode/audioSampling/audioSampling32k audioSampling32kMode IS11172AudioMode/audioSampling/audioSampling44k1 audioSampling44k1Mode IS11172AudioMode/audioSampling/audioSampling48k audioSampling48kMode IS11172AudioMode/multichannelType/singleChannel singleChannelMode IS13818AudioMode/audioLayer audioLayerMode IS13818AudioMode/audioLayer/audioLayer1 audioLayer1Mode IS13818AudioMode/audioLayer/audioLayer2 audioLayer2Mode IS13818AudioMode/audioLayer/audioLayer3 audioLayer3Mode IS13818AudioMode/audioSampling audioSamplingMode IS13818AudioMode/audioSampling/audioSampling16k audioSampling16kMode IS13818AudioMode/audioSampling/audioSampling22k05 audioSampling22k05Mode IS13818AudioMode/audioSampling/audioSampling24k audioSampling24kMode IS13818AudioMode/audioSampling/audioSampling32k audioSampling32kMode IS13818AudioMode/audioSampling/audioSampling44k1 audioSampling44k1Mode IS13818AudioMode/audioSampling/audioSampling48k audioSampling48kMode IS13818AudioMode/multichannelType/singleChannel singleChannelMode IS13818AudioMode/multichannelType/threeChannels2-1 threeChannels2_1Mode IS13818AudioMode/multichannelType/threeChannels3-0 threeChannels3_0Mode IS13818AudioMode/multichannelType/fourChannels2-0-2-0 fourChannels2_0_2_0Mode IS13818AudioMode/multichannelType/fourChannels2-2 fourChannels2_2Mode IS13818AudioMode/multichannelType/fourChannels3-1 fourChannels3_1Mode IS13818AudioMode/multichannelType/fiveChannels3-0-2-0 fiveChannels3_0_2_0Mode IS13818AudioMode/multichannelType/fiveChannels3-2 fiveChannels3_2Mode H262VideoMode/profileAndLevel/profileAndLevel-SPatML profileAndLevel_SPatMLMode H262VideoMode/profileAndLevel/profileAndLevel-MPatLL profileAndLevel_MPatLLMode H262VideoMode/profileAndLevel/profileAndLevel-MPatML profileAndLevel_MPatMLMode H262VideoMode/profileAndLevel/profileAndLevel-MPatH-14 profileAndLevel_MPatH-14Mode H262VideoMode/profileAndLevel/profileAndLevel-MPatHL profileAndLevel_MPatHLMode H262VideoMode/profileAndLevel/profileAndLevel-SNRatLL profileAndLevel_SNRatLLMode H262VideoMode/profileAndLevel/profileAndLevel-SNRatML profileAndLevel_SNRatMLMode H262VideoMode/profileAndLevel/profileAndLevel-SpatialatH-14 profileAndLevel_SpatialatH-14Mode H262VideoMode/profileAndLevel/profileAndLevel-HPatML profileAndLevel_HPatMLMode H262VideoMode/profileAndLevel/profileAndLevel-HPatH-14 profileAndLevel_HPatH-14Mode H262VideoMode/profileAndLevel/profileAndLevel-HPatHL profileAndLevel_HPatHLMode RedundancyEncodingMode/secondaryEncoding/audioData audioMode RedundancyEncodingMode/secondaryEncoding secondaryEncodingMode RedundancyEncodingCapability/secondaryEncoding secondaryEncodingCapability UnicastAddress/iPAddress/network ip4_network UnicastAddress/iP6Address/network ip6_network MulticastAddress/iP6Address/network mip6_network MulticastAddress/iPAddress mIPAddress MulticastAddress/iP6Address mIP6Address MulticastAddress/iPAddress/network mip4_network RTPPayloadType/payloadType rtpPayloadType RTPPayloadType/payloadDescriptor/nonStandardIdentifier nonStandard MediaPacketizationCapability/rtpPayloadType rtpPayloadTypes T84Profile/t84Restricted/cif cif_bool T84Profile/t84Restricted/qcif qcif_bool H223ModeParameters/adaptationLayerType adaptationLayer H261VideoMode/resolution h261_resolution H263VideoMode/resolution h263_resolution H263VideoMode/resolution/custom custom_res CommunicationModeTableEntry/dataType entryDataType VCCapability/transportStream transportStream_bool MultiplePayloadStreamMode/elements mpsmElements RedundancyEncodingDTMode/secondary secondaryDTM MultiplexEntrySendReject/rejectionDescriptions sendRejectionDescriptions MultiplexEntrySendAck/multiplexTableEntryNumber multiplexTableEntryNumbers MultiplexEntrySendRelease/multiplexTableEntryNumber multiplexTableEntryNumbers CapabilityIdentifier/standard standardOid MiscellaneousIndication/type/videoNotDecodedMBs/temporalReference temporalReference_0_255 CloseLogicalChannel/source cLC_source DepFECCapability/rfc2733/separateStream separateStreamBool DepFECCapability/rfc2733/separateStream/samePort samePortBool VCCapability/aal1/srtsClockRecovery srtsClockRecovery_bool VCCapability/aal1ViaGateway/srtsClockRecovery srtsClockRecoveryflag DataMode/application/t84 t84DataProtocolCapability DataMode/application/t38fax t38faxDataProtocolCapability H2250LogicalChannelParameters/sessionID sessionID_0_255 H223Capability/mobileOperationTransmitCapability/h223AnnexADoubleFlag h223AnnexADoubleFlagFlag SendTerminalCapabilitySet/genericRequest genericRequestFlag H2250LogicalChannelParameters/mediaPacketization/h261aVideoPacketization h261aVideoPacketizationFlag RemoteMCResponse/reject/functionNotSupported functionNotSupportedFlag NewATMVCCommand/aal/aal1/errorCorrection/longInterleaver longInterleaverFlag NewATMVCIndication/aal/aal1/errorCorrection/longInterleaver longInterleaverFlag MiscellaneousCommand/type/videoFastUpdateMB/firstGOB firstGOB_0_255 H263VideoCapability/sqcifMPI sqcifMPI_1_32 EnhancementOptions/sqcifMPI sqcifMPI_1_32 NewATMVCCommand/aal/aal1/errorCorrection/shortInterleaver shortInterleaverFlag NewATMVCIndication/aal/aal1/errorCorrection/shortInterleaver shortInterleaverFlag NewATMVCCommand/multiplex/programStream programStreamFlag NewATMVCCommand/reverseParameters/multiplex/programStream programStreamFlag NewATMVCIndication/multiplex/programStream programStreamFlag NewATMVCIndication/reverseParameters/multiplex/programStream programStreamFlag H263ModeComboFlags/enhancedReferencePicSelect enhancedReferencePicSelectBool NewATMVCCommand/aal/aal1/errorCorrection/errorCorrectionOnly errorCorrectionOnlyFlag NewATMVCIndication/aal/aal1/errorCorrection/errorCorrectionOnly errorCorrectionOnlyFlag UserInputCapability/extendedAlphanumeric extendedAlphanumericFlag MultiplexElement/repeatCount/finite me_repeatCount_finite MiscellaneousCommand/type/videoFastUpdateMB/firstMB firstMB_1_8192 MiscellaneousIndication/type/videoNotDecodedMBs/firstMB firstMB_1_8192 H261VideoCapability/cifMPI cifMPI_1_4 CustomPictureClockFrequency/cifMPI cifMPI2_1_2048 H263VideoCapability/cif16MPI cif16MPI_1_32 EnhancementOptions/cif16MPI cif16MPI_1_32 H263VideoCapability/cif4MPI cif4MPI_1_32 EnhancementOptions/cif4MPI cif4MPI_1_32 H263Version3Options/pictureNumber pictureNumberBoolean MiscellaneousCommand/type/videoBadMBs/numberOfMBs numberOfMBs1_1_9216 MiscellaneousCommand/type/lostPartialPicture/numberOfMBs numberOfMBs1_1_9216 DataApplicationCapability/maxBitRate maxBitRate2_0_4294967295 GenericCapability/maxBitRate maxBitRate2_0_4294967295 H261VideoCapability/maxBitRate maxBitRate_1_19200 IS13818AudioCapability/bitRate bitRate2_1_1130 IS13818AudioMode/bitRate bitRate2_1_1130 IS11172AudioCapability/bitRate bitRate_1_448 IS11172AudioMode/bitRate bitRate_1_448 DataMode/bitRate bitRate_0_4294967295 H223Capability/bitRate bitRate_1_19200 H261VideoMode/bitRate bitRate_1_19200 H263VideoMode/bitRate bitRate_1_19200 DialingInformationNumber/networkAddress din_networkAddress NewATMVCCommand/aal/aal1/clockRecovery/adaptiveClockRecovery adaptiveClockRecoveryFlag NewATMVCIndication/aal/aal1/clockRecovery/adaptiveClockRecovery adaptiveClockRecoveryFlag NewATMVCCommand/aal/aal1/clockRecovery/nullClockRecovery nullClockRecoveryflag NewATMVCIndication/aal/aal1/clockRecovery/nullClockRecovery nullClockRecoveryflag NewATMVCCommand/aal/aal1/errorCorrection/nullErrorCorrection nullErrorCorrectionFlag NewATMVCIndication/aal/aal1/errorCorrection/nullErrorCorrection nullErrorCorrectionFlag H223AL2MParameters/headerFEC aL2HeaderFEC H223AL1MParameters/headerFEC aL1HeaderFEC H223AL1MParameters/crcLength crcLength2 H223AL3MParameters/crcLength crlength2 SendTerminalCapabilitySet/specificRequest/multiplexCapability multiplexCapabilityBool DepFECCapability/rfc2733/redundancyEncoding redundancyEncodingBool DepFECData/rfc2733/mode/redundancyEncoding redundancyEncodingFlag DepFECMode/rfc2733Mode/mode/redundancyEncoding redundancyEncodingFlag ParameterValue/genericParameter genericParameters H261VideoCapability/qcifMPI qcifMPI_1_4 CustomPictureClockFrequency/qcifMPI qcifMPI_1_2048 DataMode/application datamodeapplication MasterSlaveDeterminationReject/cause msd_rej_cause OpenLogicalChannelReject/cause olc_rej_cause RequestMultiplexEntryRejectionDescriptions/cause req_mux_rej_cause RequestModeReject/cause req_rej_cause MultiplexEntryRejectionDescriptions/cause mux_rej_cause RequestChannelCloseReject/cause req_chan_clos_rej_cause TerminalCapabilitySetReject/cause tcs_rej_cause MaintenanceLoopReject/cause maintloop_rej_cause FunctionNotSupported/cause fns_cause Restriction/maximumBitRate res_maximumBitRate RedundancyEncodingDTMode/primary prmary_dtmode RedundancyEncoding/rtpRedundancyEncoding/primary primary DepFECData/rfc2733 dep_rfc2733 DepFECMode/rfc2733Mode/mode fec_mode DepFECData/rfc2733/mode fec_data_mode FECData/rfc2733/pktMode/rfc2733sameport mode_rfc2733sameport FECData/rfc2733/pktMode/rfc2733diffport mode_rfc2733diffport V76LogicalChannelParameters/mode v76_mode OpenLogicalChannelAck/reverseLogicalChannelParameters/multiplexParameters olc_ack_multiplexParameters OpenLogicalChannel/forwardLogicalChannelNumber olc_fw_lcn OpenLogicalChannelAck/forwardLogicalChannelNumber olc_ack_fw_lcn OpenLogicalChannel/forwardLogicalChannelParameters/multiplexParameters olc_forw_multiplexParameters OpenLogicalChannel/reverseLogicalChannelParameters/multiplexParameters olc_rev_multiplexParameter IS11172AudioMode/multichannelType is11172multichannelType IS13818AudioMode/multichannelType is13818MultichannelType CloseLogicalChannel/reason clc_reason MultiplexElement/repeatCount me_repeatCount DepFECCapability/rfc2733 fecc_rfc2733 RequestModeAck/response req_mode_ack_response UserInputIndication/signalUpdate/rtp si_rtp VCCapability/availableBitRates/type avb_type MultiplexElement/type me_type RedundancyEncodingDTModeElement/type re_type MaintenanceLoopRequest/type mlr_type MaintenanceLoopAck/type mla_type MaintenanceLoopReject/type mlrej_type MiscellaneousCommand/type mc_type MiscellaneousIndication/type mi_type VBDMode/type vbd_type VBDCapability/type vbd_cap_type OpenLogicalChannelAck/reverseLogicalChannelParameters olc_ack_reverseLogicalChannelParameters H2250LogicalChannelAckParameters/mediaChannel ack_mediaChannel H2250LogicalChannelAckParameters/mediaControlChannel ack_mediaControlChannel UnicastAddress/iP6Address/tsapIdentifier ipv6_tsapIdentifier UnicastAddress/iPSourceRouteAddress/tsapIdentifier iPSrcRoute_tsapIdentifier MulticastAddress/iPAddress/tsapIdentifier multicast_tsapIdentifier MulticastAddress/iP6Address/tsapIdentifier multicast_IPv6_tsapIdentifier CommunicationModeTableEntry/mediaChannel cm_mediaChannel CommunicationModeTableEntry/mediaControlChannel cm_mediaControlChannel Criteria/value criteriaValue OpenLogicalChannel/reverseLogicalChannelParameters/multiplexParameters/h223LogicalChannelParameters olc_rev_h223_params OpenLogicalChannel/forwardLogicalChannelParameters/multiplexParameters/h223LogicalChannelParameters olc_fw_h223_params H223LogicalChannelParameters/adaptationLayerType/al1Framed h223_al_type_al1Framed H223LogicalChannelParameters/adaptationLayerType/al1NotFramed h223_al_type_al1NotFramed H223LogicalChannelParameters/adaptationLayerType/al2WithoutSequenceNumbers h223_al_type_al2WithoutSequenceNumbers H223LogicalChannelParameters/adaptationLayerType/al2WithSequenceNumbers h223_al_type_al2WithSequenceNumbers H223LogicalChannelParameters/adaptationLayerType/al3 h223_al_type_al3 Al3/sendBufferSize al3_sendBufferSize H223LogicalChannelParameters/adaptationLayerType/al1M h223_al_type_al1M H223LogicalChannelParameters/adaptationLayerType/al2M h223_al_type_al2M H223LogicalChannelParameters/adaptationLayerType/al3M h223_al_type_al3M H223LogicalChannelParameters/segmentableFlag h223_lc_segmentableFlag #---------------------------------------------------------------------------------------- #.TYPE_ATTR UnicastAddress/iPAddress/network TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL UnicastAddress/iP6Address/network TYPE = FT_IPv6 DISPLAY = BASE_NONE STRINGS = NULL MulticastAddress/iPAddress/network TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL MulticastAddress/iP6Address/network TYPE = FT_IPv6 DISPLAY = BASE_NONE STRINGS = NULL RTPPayloadType/payloadDescriptor/rfc-number TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = VALS(h245_RFC_number_vals) NonStandardIdentifier/h221NonStandard/t35CountryCode TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = VALS(T35CountryCode_vals) VendorIdentification/productNumber TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL VendorIdentification/versionNumber TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL ParameterValue/octetString TYPE = FT_UINT32 DISPLAY = BASE_DEC #---------------------------------------------------------------------------------------- #.FIELD_ATTR AlternativeCapabilitySet/_item NAME = "alternativeCapability" CapabilityIdentifier/standard ABBREV=standardOid UnicastAddress/iPXAddress/tsapIdentifier ABBREV=ipx.tsapIdentifier UnicastAddress/iP6Address/tsapIdentifier ABBREV=ipv6.tsapIdentifier UnicastAddress/iPSourceRouteAddress/tsapIdentifier ABBREV=iPSrcRoute.tsapIdentifier MulticastAddress/iPAddress/tsapIdentifier ABBREV=multicast.tsapIdentifier MulticastAddress/iP6Address/tsapIdentifier ABBREV=multicast_IPv6.tsapIdentifier UnicastAddress/iPAddress/network ABBREV=ip4_network UnicastAddress/iP6Address/network ABBREV=ip6_network MulticastAddress/iP6Address/network ABBREV=mip6_network MulticastAddress/iPAddress ABBREV=mIPAddress MulticastAddress/iP6Address ABBREV=mIP6Address MulticastAddress/iPAddress/network ABBREV=mip4_network Criteria/value ABBREV=criteriaValue DialingInformationNumber/networkAddress ABBREV=din_networkAddress SendTerminalCapabilitySet/specificRequest/multiplexCapability ABBREV=multiplexCapabilityBool H263Version3Options/pictureNumber ABBREV=pictureNumberBoolean H223Capability/mobileOperationTransmitCapability/h223AnnexADoubleFlag ABBREV=h223AnnexADoubleFlagFlag #---------------------------------------------------------------------------------------- # vim:set ts=4 sts=2 sw=2:
ASN.1
wireshark/epan/dissectors/asn1/h245/MULTIMEDIA-SYSTEM-CONTROL.asn
-- MULTIMEDIA-SYSTEM-CONTROL.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/formal-language/itu-t/h/h245/2009v15/MULTIMEDIA-SYSTEM-CONTROL.asn -- -- Module MULTIMEDIA-SYSTEM-CONTROL (H.245:12/2009) MULTIMEDIA-SYSTEM-CONTROL {itu-t(0) recommendation(0) h(8) h245(245) version(0) 15 multimedia-system-control(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- Export all symbols -- ======================================================================= -- Top level Messages -- ======================================================================= MultimediaSystemControlMessage ::= CHOICE { request RequestMessage, response ResponseMessage, command CommandMessage, indication IndicationMessage, ... } -- A RequestMessage results in action and requires an immediate response RequestMessage ::= CHOICE { nonStandard NonStandardMessage, masterSlaveDetermination MasterSlaveDetermination, terminalCapabilitySet TerminalCapabilitySet, openLogicalChannel OpenLogicalChannel, closeLogicalChannel CloseLogicalChannel, requestChannelClose RequestChannelClose, multiplexEntrySend MultiplexEntrySend, requestMultiplexEntry RequestMultiplexEntry, requestMode RequestMode, roundTripDelayRequest RoundTripDelayRequest, maintenanceLoopRequest MaintenanceLoopRequest, ..., communicationModeRequest CommunicationModeRequest, conferenceRequest ConferenceRequest, multilinkRequest MultilinkRequest, logicalChannelRateRequest LogicalChannelRateRequest, genericRequest GenericMessage } -- A ResponseMessage is the response to a RequestMessage ResponseMessage ::= CHOICE { nonStandard NonStandardMessage, masterSlaveDeterminationAck MasterSlaveDeterminationAck, masterSlaveDeterminationReject MasterSlaveDeterminationReject, terminalCapabilitySetAck TerminalCapabilitySetAck, terminalCapabilitySetReject TerminalCapabilitySetReject, openLogicalChannelAck OpenLogicalChannelAck, openLogicalChannelReject OpenLogicalChannelReject, closeLogicalChannelAck CloseLogicalChannelAck, requestChannelCloseAck RequestChannelCloseAck, requestChannelCloseReject RequestChannelCloseReject, multiplexEntrySendAck MultiplexEntrySendAck, multiplexEntrySendReject MultiplexEntrySendReject, requestMultiplexEntryAck RequestMultiplexEntryAck, requestMultiplexEntryReject RequestMultiplexEntryReject, requestModeAck RequestModeAck, requestModeReject RequestModeReject, roundTripDelayResponse RoundTripDelayResponse, maintenanceLoopAck MaintenanceLoopAck, maintenanceLoopReject MaintenanceLoopReject, ..., communicationModeResponse CommunicationModeResponse, conferenceResponse ConferenceResponse, multilinkResponse MultilinkResponse, logicalChannelRateAcknowledge LogicalChannelRateAcknowledge, logicalChannelRateReject LogicalChannelRateReject, genericResponse GenericMessage } -- A CommandMessage requires action, but no explicit response CommandMessage ::= CHOICE { nonStandard NonStandardMessage, maintenanceLoopOffCommand MaintenanceLoopOffCommand, sendTerminalCapabilitySet SendTerminalCapabilitySet, encryptionCommand EncryptionCommand, flowControlCommand FlowControlCommand, endSessionCommand EndSessionCommand, miscellaneousCommand MiscellaneousCommand, ..., communicationModeCommand CommunicationModeCommand, conferenceCommand ConferenceCommand, h223MultiplexReconfiguration H223MultiplexReconfiguration, newATMVCCommand NewATMVCCommand, mobileMultilinkReconfigurationCommand MobileMultilinkReconfigurationCommand, genericCommand GenericMessage } -- An IndicationMessage is information that does not require action or response IndicationMessage ::= CHOICE { nonStandard NonStandardMessage, functionNotUnderstood FunctionNotUnderstood, masterSlaveDeterminationRelease MasterSlaveDeterminationRelease, terminalCapabilitySetRelease TerminalCapabilitySetRelease, openLogicalChannelConfirm OpenLogicalChannelConfirm, requestChannelCloseRelease RequestChannelCloseRelease, multiplexEntrySendRelease MultiplexEntrySendRelease, requestMultiplexEntryRelease RequestMultiplexEntryRelease, requestModeRelease RequestModeRelease, miscellaneousIndication MiscellaneousIndication, jitterIndication JitterIndication, h223SkewIndication H223SkewIndication, newATMVCIndication NewATMVCIndication, userInput UserInputIndication, ..., h2250MaximumSkewIndication H2250MaximumSkewIndication, mcLocationIndication MCLocationIndication, conferenceIndication ConferenceIndication, vendorIdentification VendorIdentification, functionNotSupported FunctionNotSupported, multilinkIndication MultilinkIndication, logicalChannelRateRelease LogicalChannelRateRelease, flowControlIndication FlowControlIndication, mobileMultilinkReconfigurationIndication MobileMultilinkReconfigurationIndication, genericIndication GenericMessage } -- SequenceNumber is defined here as it is used in a number of Messages SequenceNumber ::= INTEGER(0..255) -- ============================================================================= -- Generic Message definitions -- ============================================================================= GenericMessage ::= SEQUENCE { messageIdentifier CapabilityIdentifier, subMessageIdentifier INTEGER(0..127) OPTIONAL, messageContent SEQUENCE OF GenericParameter OPTIONAL, ... } GenericInformation ::= GenericMessage -- ============================================================================= -- Non-standard Message definitions -- ============================================================================= NonStandardMessage ::= SEQUENCE {nonStandardData NonStandardParameter, ... } NonStandardParameter ::= SEQUENCE { nonStandardIdentifier NonStandardIdentifier, data OCTET STRING } NonStandardIdentifier ::= CHOICE { object OBJECT IDENTIFIER, h221NonStandard SEQUENCE {t35CountryCode INTEGER(0..255), -- country, per -- -- Annex A/T.35 t35Extension INTEGER(0..255), -- assigned nationally unless -- t35CountryCode is binary -- 1111 1111, in which case it shall -- contain the country code -- according to Annex B/T.35 manufacturerCode INTEGER(0..65535) -- assigned nationally } } -- ============================================================================= -- Master-slave determination definitions -- ============================================================================= MasterSlaveDetermination ::= SEQUENCE { terminalType INTEGER(0..255), statusDeterminationNumber INTEGER(0..16777215), ... } MasterSlaveDeterminationAck ::= SEQUENCE { decision CHOICE {master NULL, slave NULL}, ... } MasterSlaveDeterminationReject ::= SEQUENCE { cause CHOICE {identicalNumbers NULL, ...}, ... } MasterSlaveDeterminationRelease ::= SEQUENCE {... } -- ============================================================================= -- Capability exchange definitions -- ============================================================================= TerminalCapabilitySet ::= SEQUENCE { sequenceNumber SequenceNumber, protocolIdentifier OBJECT IDENTIFIER, -- shall be set to the value -- {itu-t (0) recommendation (0) h (8) 245 -- version (0) 15} multiplexCapability MultiplexCapability OPTIONAL, capabilityTable SET SIZE (1..256) OF CapabilityTableEntry OPTIONAL, capabilityDescriptors SET SIZE (1..256) OF CapabilityDescriptor OPTIONAL, ..., genericInformation SEQUENCE OF GenericInformation OPTIONAL -- generic information associated -- with the message } CapabilityTableEntry ::= SEQUENCE { capabilityTableEntryNumber CapabilityTableEntryNumber, capability Capability OPTIONAL } CapabilityDescriptor ::= SEQUENCE { capabilityDescriptorNumber CapabilityDescriptorNumber, simultaneousCapabilities SET SIZE (1..256) OF AlternativeCapabilitySet OPTIONAL } AlternativeCapabilitySet ::= SEQUENCE SIZE (1..256) OF CapabilityTableEntryNumber CapabilityTableEntryNumber ::= INTEGER(1..65535) CapabilityDescriptorNumber ::= INTEGER(0..255) TerminalCapabilitySetAck ::= SEQUENCE { sequenceNumber SequenceNumber, ..., genericInformation SEQUENCE OF GenericInformation OPTIONAL -- generic information associated -- with the message } TerminalCapabilitySetReject ::= SEQUENCE { sequenceNumber SequenceNumber, cause CHOICE {unspecified NULL, undefinedTableEntryUsed NULL, descriptorCapacityExceeded NULL, tableEntryCapacityExceeded CHOICE {highestEntryNumberProcessed CapabilityTableEntryNumber, noneProcessed NULL}, ...}, ..., genericInformation SEQUENCE OF GenericInformation OPTIONAL -- generic information associated -- with the message } TerminalCapabilitySetRelease ::= SEQUENCE { ..., genericInformation SEQUENCE OF GenericInformation OPTIONAL -- generic information associated -- with the message } -- ============================================================================= -- Capability exchange definitions: top level capability description -- ============================================================================= Capability ::= CHOICE { nonStandard NonStandardParameter, receiveVideoCapability VideoCapability, transmitVideoCapability VideoCapability, receiveAndTransmitVideoCapability VideoCapability, receiveAudioCapability AudioCapability, transmitAudioCapability AudioCapability, receiveAndTransmitAudioCapability AudioCapability, receiveDataApplicationCapability DataApplicationCapability, transmitDataApplicationCapability DataApplicationCapability, receiveAndTransmitDataApplicationCapability DataApplicationCapability, h233EncryptionTransmitCapability BOOLEAN, h233EncryptionReceiveCapability SEQUENCE {h233IVResponseTime INTEGER(0..255), -- units milliseconds -- ...}, ..., conferenceCapability ConferenceCapability, h235SecurityCapability H235SecurityCapability, maxPendingReplacementFor INTEGER(0..255), receiveUserInputCapability UserInputCapability, transmitUserInputCapability UserInputCapability, receiveAndTransmitUserInputCapability UserInputCapability, genericControlCapability GenericCapability, receiveMultiplexedStreamCapability MultiplexedStreamCapability, transmitMultiplexedStreamCapability MultiplexedStreamCapability, receiveAndTransmitMultiplexedStreamCapability MultiplexedStreamCapability, receiveRTPAudioTelephonyEventCapability AudioTelephonyEventCapability, receiveRTPAudioToneCapability AudioToneCapability, depFecCapability DepFECCapability, -- Deprecated, do not use multiplePayloadStreamCapability MultiplePayloadStreamCapability, fecCapability FECCapability, redundancyEncodingCap RedundancyEncodingCapability, oneOfCapabilities AlternativeCapabilitySet } H235SecurityCapability ::= SEQUENCE { encryptionAuthenticationAndIntegrity EncryptionAuthenticationAndIntegrity, mediaCapability CapabilityTableEntryNumber, -- NOTE - The mediaCapability shall refer to Capability Table Entries -- that do contain, directly or indirectly, one or more transmit, -- receive, or receiveAndTransmit AudioCapability, VideoCapability, -- DataApplicationCapability, or similar capabilities indicated by a -- NonStandardParameter or GenericCapability only ... } -- ============================================================================= -- Capability exchange definitions: Multiplex capabilities -- ============================================================================= MultiplexCapability ::= CHOICE { nonStandard NonStandardParameter, h222Capability H222Capability, h223Capability H223Capability, v76Capability V76Capability, ..., h2250Capability H2250Capability, genericMultiplexCapability GenericCapability } H222Capability ::= SEQUENCE { numberOfVCs INTEGER(1..256), vcCapability SET OF VCCapability, ... } VCCapability ::= SEQUENCE { aal1 SEQUENCE {nullClockRecovery BOOLEAN, srtsClockRecovery BOOLEAN, adaptiveClockRecovery BOOLEAN, nullErrorCorrection BOOLEAN, longInterleaver BOOLEAN, shortInterleaver BOOLEAN, errorCorrectionOnly BOOLEAN, structuredDataTransfer BOOLEAN, partiallyFilledCells BOOLEAN, ...} OPTIONAL, aal5 SEQUENCE {forwardMaximumSDUSize INTEGER(0..65535), -- units octets-- backwardMaximumSDUSize INTEGER(0..65535), -- units octets-- ...} OPTIONAL, transportStream BOOLEAN, programStream BOOLEAN, availableBitRates SEQUENCE {type CHOICE {singleBitRate INTEGER(1..65535), -- units 64 kbit/s-- rangeOfBitRates SEQUENCE {lowerBitRate INTEGER(1..65535), -- units 64 kbit/s-- higherBitRate INTEGER(1..65535) -- units 64 kbit/s }}, ...}, ..., aal1ViaGateway SEQUENCE {gatewayAddress SET SIZE (1..256) OF Q2931Address, nullClockRecovery BOOLEAN, srtsClockRecovery BOOLEAN, adaptiveClockRecovery BOOLEAN, nullErrorCorrection BOOLEAN, longInterleaver BOOLEAN, shortInterleaver BOOLEAN, errorCorrectionOnly BOOLEAN, structuredDataTransfer BOOLEAN, partiallyFilledCells BOOLEAN, ...} OPTIONAL } H223Capability ::= SEQUENCE { transportWithI-frames BOOLEAN, -- I-frame transport -- of H.245 videoWithAL1 BOOLEAN, videoWithAL2 BOOLEAN, videoWithAL3 BOOLEAN, audioWithAL1 BOOLEAN, audioWithAL2 BOOLEAN, audioWithAL3 BOOLEAN, dataWithAL1 BOOLEAN, dataWithAL2 BOOLEAN, dataWithAL3 BOOLEAN, maximumAl2SDUSize INTEGER(0..65535), -- units octets maximumAl3SDUSize INTEGER(0..65535), -- units octets maximumDelayJitter INTEGER(0..1023), -- units milliseconds h223MultiplexTableCapability CHOICE {basic NULL, enhanced SEQUENCE {maximumNestingDepth INTEGER(1..15), maximumElementListSize INTEGER(2..255), maximumSubElementListSize INTEGER(2..255), ...}}, ..., maxMUXPDUSizeCapability BOOLEAN, nsrpSupport BOOLEAN, mobileOperationTransmitCapability SEQUENCE {modeChangeCapability BOOLEAN, h223AnnexA BOOLEAN, h223AnnexADoubleFlag BOOLEAN, h223AnnexB BOOLEAN, h223AnnexBwithHeader BOOLEAN, ...} OPTIONAL, h223AnnexCCapability H223AnnexCCapability OPTIONAL, bitRate INTEGER(1..19200) OPTIONAL, -- units of -- 100 bit/s mobileMultilinkFrameCapability SEQUENCE {maximumSampleSize INTEGER(1..255), -- units octets-- maximumPayloadLength INTEGER(1..65025), -- units octets-- ...} OPTIONAL } H223AnnexCCapability ::= SEQUENCE { videoWithAL1M BOOLEAN, videoWithAL2M BOOLEAN, videoWithAL3M BOOLEAN, audioWithAL1M BOOLEAN, audioWithAL2M BOOLEAN, audioWithAL3M BOOLEAN, dataWithAL1M BOOLEAN, dataWithAL2M BOOLEAN, dataWithAL3M BOOLEAN, alpduInterleaving BOOLEAN, maximumAL1MPDUSize INTEGER(0..65535), -- units octets maximumAL2MSDUSize INTEGER(0..65535), -- units octets maximumAL3MSDUSize INTEGER(0..65535), -- units octets ..., rsCodeCapability BOOLEAN OPTIONAL } V76Capability ::= SEQUENCE { suspendResumeCapabilitywAddress BOOLEAN, suspendResumeCapabilitywoAddress BOOLEAN, rejCapability BOOLEAN, sREJCapability BOOLEAN, mREJCapability BOOLEAN, crc8bitCapability BOOLEAN, crc16bitCapability BOOLEAN, crc32bitCapability BOOLEAN, uihCapability BOOLEAN, numOfDLCS INTEGER(2..8191), twoOctetAddressFieldCapability BOOLEAN, loopBackTestCapability BOOLEAN, n401Capability INTEGER(1..4095), maxWindowSizeCapability INTEGER(1..127), v75Capability V75Capability, ... } V75Capability ::= SEQUENCE {audioHeader BOOLEAN, ... } H2250Capability ::= SEQUENCE { maximumAudioDelayJitter INTEGER(0..1023), -- units in -- milliseconds receiveMultipointCapability MultipointCapability, transmitMultipointCapability MultipointCapability, receiveAndTransmitMultipointCapability MultipointCapability, mcCapability SEQUENCE {centralizedConferenceMC BOOLEAN, decentralizedConferenceMC BOOLEAN, ...}, rtcpVideoControlCapability BOOLEAN, -- FIR and NACK mediaPacketizationCapability MediaPacketizationCapability, ..., transportCapability TransportCapability OPTIONAL, redundancyEncodingCapability SEQUENCE SIZE (1..256) OF RedundancyEncodingCapability OPTIONAL, logicalChannelSwitchingCapability BOOLEAN, t120DynamicPortCapability BOOLEAN } MediaPacketizationCapability ::= SEQUENCE { h261aVideoPacketization BOOLEAN, ..., rtpPayloadType SEQUENCE SIZE (1..256) OF RTPPayloadType OPTIONAL } RSVPParameters ::= SEQUENCE { qosMode QOSMode OPTIONAL, tokenRate INTEGER(1..4294967295) OPTIONAL, -- rate in bytes/s bucketSize INTEGER(1..4294967295) OPTIONAL, -- size in bytes peakRate INTEGER(1..4294967295) OPTIONAL, -- peak bandwidth bytes/s minPoliced INTEGER(1..4294967295) OPTIONAL, -- maxPktSize INTEGER(1..4294967295) OPTIONAL, -- size in bytes ... } QOSMode ::= CHOICE {guaranteedQOS NULL, controlledLoad NULL, ... } ATMParameters ::= SEQUENCE { maxNTUSize INTEGER(0..65535), -- units in octets atmUBR BOOLEAN, -- unspecified bit rate atmrtVBR BOOLEAN, -- real time variable -- bit rate atmnrtVBR BOOLEAN, -- non real time -- variable bit rate atmABR BOOLEAN, -- available bit rate atmCBR BOOLEAN, -- constant bit rate ... } ServicePriorityValue ::= SEQUENCE { nonStandardParameter NonStandardParameter OPTIONAL, ..., value INTEGER(0..255) } ServicePriority ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, servicePrioritySignalled BOOLEAN, servicePriorityValue ServicePriorityValue OPTIONAL, ..., serviceClass INTEGER(0..4095) OPTIONAL, serviceSubclass INTEGER(0..255) OPTIONAL } AuthorizationParameters ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, ... } QOSType ::= CHOICE {desired NULL, required NULL, ... } QOSClass ::= CHOICE { class0 NULL, class1 NULL, class2 NULL, class3 NULL, class4 NULL, class5 NULL, ... } QOSDescriptor ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, qosType QOSType, qosClass QOSClass, ... } GenericTransportParameters ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, averageRate INTEGER(1..4294967295) OPTIONAL, -- average bandwidth bytes/s burst INTEGER(1..4294967295) OPTIONAL, -- size in bytes peakRate INTEGER(1..4294967295) OPTIONAL, -- peak bandwidth bytes/s maxPktSize INTEGER(1..4294967295) OPTIONAL, -- size in bytes ... } QOSCapability ::= SEQUENCE { nonStandardData NonStandardParameter OPTIONAL, rsvpParameters RSVPParameters OPTIONAL, atmParameters ATMParameters OPTIONAL, ..., localQoS BOOLEAN OPTIONAL, genericTransportParameters GenericTransportParameters OPTIONAL, servicePriority ServicePriority OPTIONAL, authorizationParameter AuthorizationParameters OPTIONAL, qosDescriptor QOSDescriptor OPTIONAL, dscpValue INTEGER(0..63) OPTIONAL } MediaTransportType ::= CHOICE { ip-UDP NULL, ip-TCP NULL, atm-AAL5-UNIDIR NULL, -- virtual circuits used as unidirectional atm-AAL5-BIDIR NULL, -- virtual circuits used as bidirectional ..., atm-AAL5-compressed SEQUENCE {variable-delta BOOLEAN, ...} } MediaChannelCapability ::= SEQUENCE { mediaTransport MediaTransportType OPTIONAL, ... } TransportCapability ::= SEQUENCE { nonStandard NonStandardParameter OPTIONAL, qOSCapabilities SEQUENCE SIZE (1..256) OF QOSCapability OPTIONAL, mediaChannelCapabilities SEQUENCE SIZE (1..256) OF MediaChannelCapability OPTIONAL, ... } RedundancyEncodingCapability ::= SEQUENCE { redundancyEncodingMethod RedundancyEncodingMethod, primaryEncoding CapabilityTableEntryNumber, secondaryEncoding SEQUENCE SIZE (1..256) OF CapabilityTableEntryNumber OPTIONAL, -- must be Audio, Video, or Data capabilities, not derived -- capabilities; redundancy order is inferred from number of -- secondary encodings ... } RedundancyEncodingMethod ::= CHOICE { nonStandard NonStandardParameter, rtpAudioRedundancyEncoding NULL, ..., rtpH263VideoRedundancyEncoding RTPH263VideoRedundancyEncoding } RTPH263VideoRedundancyEncoding ::= SEQUENCE { numberOfThreads INTEGER(1..16), framesBetweenSyncPoints INTEGER(1..256), frameToThreadMapping CHOICE {roundrobin NULL, custom SEQUENCE SIZE (1..256) OF RTPH263VideoRedundancyFrameMapping, -- empty SEQUENCE for capability negotiation -- meaningful contents only OpenLogicalChannel ...}, containedThreads SEQUENCE SIZE (1..256) OF INTEGER(0..15) OPTIONAL, -- only used for opening of logical channels ... } RTPH263VideoRedundancyFrameMapping ::= SEQUENCE { threadNumber INTEGER(0..15), frameSequence SEQUENCE SIZE (1..256) OF INTEGER(0..255), ... } MultipointCapability ::= SEQUENCE { multicastCapability BOOLEAN, multiUniCastConference BOOLEAN, mediaDistributionCapability SEQUENCE OF MediaDistributionCapability, ... } MediaDistributionCapability ::= SEQUENCE { centralizedControl BOOLEAN, distributedControl BOOLEAN, -- for further study in -- ITU-T Rec. H.323 centralizedAudio BOOLEAN, distributedAudio BOOLEAN, centralizedVideo BOOLEAN, distributedVideo BOOLEAN, centralizedData SEQUENCE OF DataApplicationCapability OPTIONAL, distributedData SEQUENCE OF DataApplicationCapability OPTIONAL, -- for further study in -- ITU-T Rec. H.323 ... } -- ============================================================================= -- Capability exchange definitions: Video capabilities -- ============================================================================= VideoCapability ::= CHOICE { nonStandard NonStandardParameter, h261VideoCapability H261VideoCapability, h262VideoCapability H262VideoCapability, h263VideoCapability H263VideoCapability, is11172VideoCapability IS11172VideoCapability, ..., genericVideoCapability GenericCapability, extendedVideoCapability ExtendedVideoCapability } ExtendedVideoCapability ::= SEQUENCE { videoCapability SEQUENCE OF VideoCapability, videoCapabilityExtension SEQUENCE OF GenericCapability OPTIONAL, ... } H261VideoCapability ::= SEQUENCE { qcifMPI INTEGER(1..4) OPTIONAL, -- units 1/29.97 Hz cifMPI INTEGER(1..4) OPTIONAL, -- units 1/29.97 Hz temporalSpatialTradeOffCapability BOOLEAN, maxBitRate INTEGER(1..19200), -- units of -- 100 bit/s stillImageTransmission BOOLEAN, -- Annex D/H.261 ..., videoBadMBsCap BOOLEAN } H262VideoCapability ::= SEQUENCE { profileAndLevel-SPatML BOOLEAN, profileAndLevel-MPatLL BOOLEAN, profileAndLevel-MPatML BOOLEAN, profileAndLevel-MPatH-14 BOOLEAN, profileAndLevel-MPatHL BOOLEAN, profileAndLevel-SNRatLL BOOLEAN, profileAndLevel-SNRatML BOOLEAN, profileAndLevel-SpatialatH-14 BOOLEAN, profileAndLevel-HPatML BOOLEAN, profileAndLevel-HPatH-14 BOOLEAN, profileAndLevel-HPatHL BOOLEAN, videoBitRate INTEGER(0..1073741823) OPTIONAL, -- units 400 bit/s vbvBufferSize INTEGER(0..262143) OPTIONAL, -- units 16 384 bits samplesPerLine INTEGER(0..16383) OPTIONAL, -- units samples/line linesPerFrame INTEGER(0..16383) OPTIONAL, -- units lines/frame framesPerSecond INTEGER(0..15) OPTIONAL, -- frame_rate_code luminanceSampleRate INTEGER(0..4294967295) OPTIONAL, -- units samples/s ..., videoBadMBsCap BOOLEAN } H263VideoCapability ::= SEQUENCE { sqcifMPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz qcifMPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz cifMPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz cif4MPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz cif16MPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz maxBitRate INTEGER(1..192400), -- units 100 bit/s unrestrictedVector BOOLEAN, arithmeticCoding BOOLEAN, advancedPrediction BOOLEAN, pbFrames BOOLEAN, temporalSpatialTradeOffCapability BOOLEAN, hrd-B INTEGER(0..524287) OPTIONAL, -- units 128 bits bppMaxKb INTEGER(0..65535) OPTIONAL, -- units 1024 bits ..., slowSqcifMPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame slowQcifMPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame slowCifMPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame slowCif4MPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame slowCif16MPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame errorCompensation BOOLEAN, enhancementLayerInfo EnhancementLayerInfo OPTIONAL, h263Options H263Options OPTIONAL } EnhancementLayerInfo ::= SEQUENCE { baseBitRateConstrained BOOLEAN, snrEnhancement SET SIZE (1..14) OF EnhancementOptions OPTIONAL, spatialEnhancement SET SIZE (1..14) OF EnhancementOptions OPTIONAL, bPictureEnhancement SET SIZE (1..14) OF BEnhancementParameters OPTIONAL, ... } BEnhancementParameters ::= SEQUENCE { enhancementOptions EnhancementOptions, numberOfBPictures INTEGER(1..64), ... } EnhancementOptions ::= SEQUENCE { sqcifMPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz qcifMPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz cifMPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz cif4MPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz cif16MPI INTEGER(1..32) OPTIONAL, -- units 1/29.97 Hz maxBitRate INTEGER(1..192400), -- units 100 bit/s unrestrictedVector BOOLEAN, arithmeticCoding BOOLEAN, temporalSpatialTradeOffCapability BOOLEAN, slowSqcifMPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame slowQcifMPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame slowCifMPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame slowCif4MPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame slowCif16MPI INTEGER(1..3600) OPTIONAL, -- units seconds/frame errorCompensation BOOLEAN, h263Options H263Options OPTIONAL, ... } H263Options ::= SEQUENCE { advancedIntraCodingMode BOOLEAN, deblockingFilterMode BOOLEAN, improvedPBFramesMode BOOLEAN, unlimitedMotionVectors BOOLEAN, fullPictureFreeze BOOLEAN, partialPictureFreezeAndRelease BOOLEAN, resizingPartPicFreezeAndRelease BOOLEAN, fullPictureSnapshot BOOLEAN, partialPictureSnapshot BOOLEAN, videoSegmentTagging BOOLEAN, progressiveRefinement BOOLEAN, dynamicPictureResizingByFour BOOLEAN, dynamicPictureResizingSixteenthPel BOOLEAN, dynamicWarpingHalfPel BOOLEAN, dynamicWarpingSixteenthPel BOOLEAN, independentSegmentDecoding BOOLEAN, slicesInOrder-NonRect BOOLEAN, slicesInOrder-Rect BOOLEAN, slicesNoOrder-NonRect BOOLEAN, slicesNoOrder-Rect BOOLEAN, alternateInterVLCMode BOOLEAN, modifiedQuantizationMode BOOLEAN, reducedResolutionUpdate BOOLEAN, transparencyParameters TransparencyParameters OPTIONAL, separateVideoBackChannel BOOLEAN, refPictureSelection RefPictureSelection OPTIONAL, customPictureClockFrequency SET SIZE (1..16) OF CustomPictureClockFrequency OPTIONAL, customPictureFormat SET SIZE (1..16) OF CustomPictureFormat OPTIONAL, modeCombos SET SIZE (1..16) OF H263VideoModeCombos OPTIONAL, ..., videoBadMBsCap BOOLEAN, h263Version3Options H263Version3Options } TransparencyParameters ::= SEQUENCE { presentationOrder INTEGER(1..256), offset-x INTEGER(-262144..262143), -- 1/8 pixels offset-y INTEGER(-262144..262143), -- 1/8 pixels scale-x INTEGER(1..255), scale-y INTEGER(1..255), ... } RefPictureSelection ::= SEQUENCE { additionalPictureMemory SEQUENCE {sqcifAdditionalPictureMemory INTEGER(1..256) OPTIONAL, -- units frame-- qcifAdditionalPictureMemory INTEGER(1..256) OPTIONAL, -- units frame-- cifAdditionalPictureMemory INTEGER(1..256) OPTIONAL, -- units frame-- cif4AdditionalPictureMemory INTEGER(1..256) OPTIONAL, -- units frame-- cif16AdditionalPictureMemory INTEGER(1..256) OPTIONAL, -- units frame-- bigCpfAdditionalPictureMemory INTEGER(1..256) OPTIONAL, -- units frame-- ...} OPTIONAL, videoMux BOOLEAN, videoBackChannelSend CHOICE {none NULL, ackMessageOnly NULL, nackMessageOnly NULL, ackOrNackMessageOnly NULL, ackAndNackMessage NULL, ...}, ..., enhancedReferencePicSelect SEQUENCE {subPictureRemovalParameters SEQUENCE {mpuHorizMBs INTEGER(1..128), mpuVertMBs INTEGER(1..72), mpuTotalNumber INTEGER(1..65536), ...} OPTIONAL, ...} } CustomPictureClockFrequency ::= SEQUENCE { clockConversionCode INTEGER(1000..1001), clockDivisor INTEGER(1..127), sqcifMPI INTEGER(1..2048) OPTIONAL, qcifMPI INTEGER(1..2048) OPTIONAL, cifMPI INTEGER(1..2048) OPTIONAL, cif4MPI INTEGER(1..2048) OPTIONAL, cif16MPI INTEGER(1..2048) OPTIONAL, ... } CustomPictureFormat ::= SEQUENCE { maxCustomPictureWidth INTEGER(1..2048), -- units 4 pixels maxCustomPictureHeight INTEGER(1..2048), -- units 4 pixels minCustomPictureWidth INTEGER(1..2048), -- units 4 pixels minCustomPictureHeight INTEGER(1..2048), -- units 4 pixels mPI SEQUENCE {standardMPI INTEGER(1..31) OPTIONAL, customPCF SET SIZE (1..16) OF SEQUENCE {clockConversionCode INTEGER(1000..1001), clockDivisor INTEGER(1..127), customMPI INTEGER(1..2048), ...} OPTIONAL, ...}, pixelAspectInformation CHOICE {anyPixelAspectRatio BOOLEAN, pixelAspectCode SET SIZE (1..14) OF INTEGER(1..14), extendedPAR SET SIZE (1..256) OF SEQUENCE {width INTEGER(1..255), height INTEGER(1..255), ...}, ...}, ... } H263VideoModeCombos ::= SEQUENCE { h263VideoUncoupledModes H263ModeComboFlags, h263VideoCoupledModes SET SIZE (1..16) OF H263ModeComboFlags, ... } H263ModeComboFlags ::= SEQUENCE { unrestrictedVector BOOLEAN, arithmeticCoding BOOLEAN, advancedPrediction BOOLEAN, pbFrames BOOLEAN, advancedIntraCodingMode BOOLEAN, deblockingFilterMode BOOLEAN, unlimitedMotionVectors BOOLEAN, slicesInOrder-NonRect BOOLEAN, slicesInOrder-Rect BOOLEAN, slicesNoOrder-NonRect BOOLEAN, slicesNoOrder-Rect BOOLEAN, improvedPBFramesMode BOOLEAN, referencePicSelect BOOLEAN, dynamicPictureResizingByFour BOOLEAN, dynamicPictureResizingSixteenthPel BOOLEAN, dynamicWarpingHalfPel BOOLEAN, dynamicWarpingSixteenthPel BOOLEAN, reducedResolutionUpdate BOOLEAN, independentSegmentDecoding BOOLEAN, alternateInterVLCMode BOOLEAN, modifiedQuantizationMode BOOLEAN, ..., enhancedReferencePicSelect BOOLEAN, h263Version3Options H263Version3Options } H263Version3Options ::= SEQUENCE { dataPartitionedSlices BOOLEAN, fixedPointIDCT0 BOOLEAN, interlacedFields BOOLEAN, currentPictureHeaderRepetition BOOLEAN, previousPictureHeaderRepetition BOOLEAN, nextPictureHeaderRepetition BOOLEAN, pictureNumber BOOLEAN, spareReferencePictures BOOLEAN, ... } IS11172VideoCapability ::= SEQUENCE { constrainedBitstream BOOLEAN, videoBitRate INTEGER(0..1073741823) OPTIONAL, -- units 400 bit/s vbvBufferSize INTEGER(0..262143) OPTIONAL, -- units 16 384 bits samplesPerLine INTEGER(0..16383) OPTIONAL, -- units samples/line linesPerFrame INTEGER(0..16383) OPTIONAL, -- units lines/frame pictureRate INTEGER(0..15) OPTIONAL, luminanceSampleRate INTEGER(0..4294967295) OPTIONAL, -- units samples/s ..., videoBadMBsCap BOOLEAN } -- ============================================================================= -- Capability exchange definitions: Audio capabilities -- ============================================================================= -- For an H.222 multiplex, the integers indicate the size of the STD buffer -- in units of 256 octets -- For an H.223 multiplex, the integers indicate the maximum number of audio -- frames per AL-SDU -- For an H.225.0 multiplex, the integers indicate the maximum number of audio -- frames per packet AudioCapability ::= CHOICE { nonStandard NonStandardParameter, g711Alaw64k INTEGER(1..256), g711Alaw56k INTEGER(1..256), g711Ulaw64k INTEGER(1..256), g711Ulaw56k INTEGER(1..256), g722-64k INTEGER(1..256), g722-56k INTEGER(1..256), g722-48k INTEGER(1..256), g7231 SEQUENCE {maxAl-sduAudioFrames INTEGER(1..256), silenceSuppression BOOLEAN}, g728 INTEGER(1..256), g729 INTEGER(1..256), g729AnnexA INTEGER(1..256), is11172AudioCapability IS11172AudioCapability, is13818AudioCapability IS13818AudioCapability, ..., g729wAnnexB INTEGER(1..256), g729AnnexAwAnnexB INTEGER(1..256), g7231AnnexCCapability G7231AnnexCCapability, gsmFullRate GSMAudioCapability, gsmHalfRate GSMAudioCapability, gsmEnhancedFullRate GSMAudioCapability, genericAudioCapability GenericCapability, g729Extensions G729Extensions, vbd VBDCapability, audioTelephonyEvent NoPTAudioTelephonyEventCapability, audioTone NoPTAudioToneCapability } G729Extensions ::= SEQUENCE { audioUnit INTEGER(1..256) OPTIONAL, annexA BOOLEAN, annexB BOOLEAN, annexD BOOLEAN, annexE BOOLEAN, annexF BOOLEAN, annexG BOOLEAN, annexH BOOLEAN, ... } G7231AnnexCCapability ::= SEQUENCE { maxAl-sduAudioFrames INTEGER(1..256), silenceSuppression BOOLEAN, g723AnnexCAudioMode SEQUENCE {highRateMode0 INTEGER(27..78), -- units octets-- highRateMode1 INTEGER(27..78), -- units octets-- lowRateMode0 INTEGER(23..66), -- units octets-- lowRateMode1 INTEGER(23..66), -- units octets-- sidMode0 INTEGER(6..17), -- units octets-- sidMode1 INTEGER(6..17), -- units octets-- ...} OPTIONAL, ... } IS11172AudioCapability ::= SEQUENCE { audioLayer1 BOOLEAN, audioLayer2 BOOLEAN, audioLayer3 BOOLEAN, audioSampling32k BOOLEAN, audioSampling44k1 BOOLEAN, audioSampling48k BOOLEAN, singleChannel BOOLEAN, twoChannels BOOLEAN, bitRate INTEGER(1..448), -- units kbit/s ... } IS13818AudioCapability ::= SEQUENCE { audioLayer1 BOOLEAN, audioLayer2 BOOLEAN, audioLayer3 BOOLEAN, audioSampling16k BOOLEAN, audioSampling22k05 BOOLEAN, audioSampling24k BOOLEAN, audioSampling32k BOOLEAN, audioSampling44k1 BOOLEAN, audioSampling48k BOOLEAN, singleChannel BOOLEAN, twoChannels BOOLEAN, threeChannels2-1 BOOLEAN, threeChannels3-0 BOOLEAN, fourChannels2-0-2-0 BOOLEAN, fourChannels2-2 BOOLEAN, fourChannels3-1 BOOLEAN, fiveChannels3-0-2-0 BOOLEAN, fiveChannels3-2 BOOLEAN, lowFrequencyEnhancement BOOLEAN, multilingual BOOLEAN, bitRate INTEGER(1..1130), -- units kbit/s ... } GSMAudioCapability ::= SEQUENCE { audioUnitSize INTEGER(1..256), comfortNoise BOOLEAN, scrambled BOOLEAN, ... } VBDCapability ::= SEQUENCE {type AudioCapability, -- shall not be "vbd" ... } -- ============================================================================= -- Capability exchange definitions: Data capabilities -- ============================================================================= DataApplicationCapability ::= SEQUENCE { application CHOICE {nonStandard NonStandardParameter, t120 DataProtocolCapability, dsm-cc DataProtocolCapability, userData DataProtocolCapability, t84 SEQUENCE {t84Protocol DataProtocolCapability, t84Profile T84Profile}, t434 DataProtocolCapability, h224 DataProtocolCapability, nlpid SEQUENCE {nlpidProtocol DataProtocolCapability, nlpidData OCTET STRING}, dsvdControl NULL, h222DataPartitioning DataProtocolCapability, ..., t30fax DataProtocolCapability, t140 DataProtocolCapability, t38fax SEQUENCE {t38FaxProtocol DataProtocolCapability, t38FaxProfile T38FaxProfile}, genericDataCapability GenericCapability}, maxBitRate INTEGER(0..4294967295), -- units 100 bit/s ... } DataProtocolCapability ::= CHOICE { nonStandard NonStandardParameter, v14buffered NULL, v42lapm NULL, -- may negotiate to V.42 bis hdlcFrameTunnelling NULL, h310SeparateVCStack NULL, h310SingleVCStack NULL, transparent NULL, ..., segmentationAndReassembly NULL, hdlcFrameTunnelingwSAR NULL, v120 NULL, -- as in H.230 separateLANStack NULL, v76wCompression CHOICE {transmitCompression CompressionType, receiveCompression CompressionType, transmitAndReceiveCompression CompressionType, ...}, tcp NULL, udp NULL } CompressionType ::= CHOICE {v42bis V42bis, ... } V42bis ::= SEQUENCE { numberOfCodewords INTEGER(1..65536), maximumStringLength INTEGER(1..256), ... } T84Profile ::= CHOICE { t84Unrestricted NULL, t84Restricted SEQUENCE {qcif BOOLEAN, cif BOOLEAN, ccir601Seq BOOLEAN, ccir601Prog BOOLEAN, hdtvSeq BOOLEAN, hdtvProg BOOLEAN, g3FacsMH200x100 BOOLEAN, g3FacsMH200x200 BOOLEAN, g4FacsMMR200x100 BOOLEAN, g4FacsMMR200x200 BOOLEAN, jbig200x200Seq BOOLEAN, jbig200x200Prog BOOLEAN, jbig300x300Seq BOOLEAN, jbig300x300Prog BOOLEAN, digPhotoLow BOOLEAN, digPhotoMedSeq BOOLEAN, digPhotoMedProg BOOLEAN, digPhotoHighSeq BOOLEAN, digPhotoHighProg BOOLEAN, ...} } T38FaxProfile ::= SEQUENCE { fillBitRemoval BOOLEAN, transcodingJBIG BOOLEAN, transcodingMMR BOOLEAN, ..., version INTEGER(0..255), -- Version 0, the default, refers to -- T.38 (2005) t38FaxRateManagement T38FaxRateManagement, -- The default Data Rate Management is -- determined by the choice of -- DataProtocolCapability t38FaxUdpOptions T38FaxUdpOptions OPTIONAL, -- For UDP, t38UDPRedundancy is the default t38FaxTcpOptions T38FaxTcpOptions OPTIONAL } T38FaxRateManagement ::= CHOICE { localTCF NULL, transferredTCF NULL, ... } T38FaxUdpOptions ::= SEQUENCE { t38FaxMaxBuffer INTEGER OPTIONAL, t38FaxMaxDatagram INTEGER OPTIONAL, t38FaxUdpEC CHOICE {t38UDPFEC NULL, t38UDPRedundancy NULL, ...} } T38FaxTcpOptions ::= SEQUENCE {t38TCPBidirectionalMode BOOLEAN, ... } -- ============================================================================= -- Encryption Capability Definitions -- ============================================================================= EncryptionAuthenticationAndIntegrity ::= SEQUENCE { encryptionCapability EncryptionCapability OPTIONAL, authenticationCapability AuthenticationCapability OPTIONAL, integrityCapability IntegrityCapability OPTIONAL, ..., genericH235SecurityCapability GenericCapability OPTIONAL } EncryptionCapability ::= SEQUENCE SIZE (1..256) OF MediaEncryptionAlgorithm MediaEncryptionAlgorithm ::= CHOICE { nonStandard NonStandardParameter, algorithm OBJECT IDENTIFIER, -- many defined -- in ISO/IEC 9979 ... } AuthenticationCapability ::= SEQUENCE { nonStandard NonStandardParameter OPTIONAL, ..., antiSpamAlgorithm OBJECT IDENTIFIER OPTIONAL } IntegrityCapability ::= SEQUENCE { nonStandard NonStandardParameter OPTIONAL, ... } -- ============================================================================= -- Capability Exchange Definitions: UserInput -- ============================================================================= UserInputCapability ::= CHOICE { nonStandard SEQUENCE SIZE (1..16) OF NonStandardParameter, basicString NULL, -- alphanumeric iA5String NULL, -- alphanumeric generalString NULL, -- alphanumeric dtmf NULL, -- supports dtmf using signal -- and signalUpdate hookflash NULL, -- supports hookflash using signal ..., extendedAlphanumeric NULL, encryptedBasicString NULL, -- encrypted Basic string in -- encryptedAlphanumeric encryptedIA5String NULL, -- encrypted IA5 string in -- encryptedSignalType encryptedGeneralString NULL, -- encrypted general string in -- extendedAlphanumeric.encryptedalphanumeric secureDTMF NULL, -- secure DTMF using encryptedSignalType genericUserInputCapability GenericCapability } -- ============================================================================= -- Capability Exchange Definitions: Conference -- ============================================================================= ConferenceCapability ::= SEQUENCE { nonStandardData SEQUENCE OF NonStandardParameter OPTIONAL, chairControlCapability BOOLEAN, ..., videoIndicateMixingCapability BOOLEAN, multipointVisualizationCapability BOOLEAN OPTIONAL -- same as H.230 MVC } -- ============================================================================= -- Capability Exchange Definitions: Generic Capability -- ============================================================================= GenericCapability ::= SEQUENCE { capabilityIdentifier CapabilityIdentifier, maxBitRate INTEGER(0..4294967295) OPTIONAL, -- Units 100 bit/s collapsing SEQUENCE OF GenericParameter OPTIONAL, nonCollapsing SEQUENCE OF GenericParameter OPTIONAL, nonCollapsingRaw OCTET STRING OPTIONAL, -- Typically contains ASN.1 -- PER encoded data describing capability transport DataProtocolCapability OPTIONAL, ... } CapabilityIdentifier ::= CHOICE { standard OBJECT IDENTIFIER, -- e.g., { itu-t (0) recommendation (0) h (8) 267 -- version (0) 2 subIdentifier (0)} h221NonStandard NonStandardParameter, uuid OCTET STRING(SIZE (16)), domainBased IA5String(SIZE (1..64)), ... } -- NOTE - The ranges of parameter values have been selected to ensure that the -- GenericParameter preamble, standard part of ParameterIdentifier and the -- encoding of that choice, and the preamble of ParameterValue to fit into -- 2 octets. GenericParameter ::= SEQUENCE { parameterIdentifier ParameterIdentifier, parameterValue ParameterValue, supersedes SEQUENCE OF ParameterIdentifier OPTIONAL, ... } ParameterIdentifier ::= CHOICE { standard INTEGER(0..127), -- Assigned by -- Capability -- specifications h221NonStandard NonStandardParameter, -- N.B. -- NonStandardIdentifier -- is not sufficient in -- this case uuid OCTET STRING(SIZE (16)), -- For non- -- standard domainBased IA5String(SIZE (1..64)), ... } ParameterValue ::= CHOICE { logical NULL, -- Only acceptable if -- all entities -- include this option booleanArray INTEGER(0..255), -- array of 8 logical -- types unsignedMin INTEGER(0..65535), -- Look for min -- common value unsignedMax INTEGER(0..65535), -- Look for max -- common value unsigned32Min INTEGER(0..4294967295), -- Look for min -- common value unsigned32Max INTEGER(0..4294967295), -- Look for max -- common value octetString OCTET STRING, -- non-collapsing -- octet string genericParameter SEQUENCE OF GenericParameter, ... } -- ============================================================================= -- Capability Exchange Definitions: Multiplexed Stream Capability -- ============================================================================= MultiplexedStreamCapability ::= SEQUENCE { multiplexFormat MultiplexFormat, controlOnMuxStream BOOLEAN, capabilityOnMuxStream SET SIZE (1..256) OF AlternativeCapabilitySet OPTIONAL, ... } MultiplexFormat ::= CHOICE { nonStandard NonStandardParameter, h222Capability H222Capability, h223Capability H223Capability, ... } -- ============================================================================= -- Capability Exchange Definitions: AudioTelephonyEventCapability and AudioToneCapability --============================================================================== AudioTelephonyEventCapability ::= SEQUENCE { dynamicRTPPayloadType INTEGER(96..127), audioTelephoneEvent GeneralString, -- As per <list of values> -- in RFC 4733 ... } AudioToneCapability ::= SEQUENCE {dynamicRTPPayloadType INTEGER(96..127), ... } -- The following definitions are as above but without a Payload Type field. NoPTAudioTelephonyEventCapability ::= SEQUENCE { audioTelephoneEvent GeneralString, -- As per <list of values> -- in RFC 4733 ... } NoPTAudioToneCapability ::= SEQUENCE {... } -- ============================================================================= -- Capability Exchange Definitions: MultiplePayloadStreamCapability -- ============================================================================= MultiplePayloadStreamCapability ::= SEQUENCE { capabilities SET SIZE (1..256) OF AlternativeCapabilitySet, ... } -- ============================================================================= -- Capability Exchange Definitions: FECCapability -- ============================================================================= DepFECCapability ::= CHOICE -- Deprecated, do not use { rfc2733 SEQUENCE {redundancyEncoding BOOLEAN, separateStream SEQUENCE {separatePort BOOLEAN, samePort BOOLEAN, ...}, ...}, ... } FECCapability ::= SEQUENCE { protectedCapability CapabilityTableEntryNumber, fecScheme -- identifies encoding scheme -- OBJECT IDENTIFIER OPTIONAL, rfc2733Format CHOICE {rfc2733rfc2198 -- RFC 2198 -- MaxRedundancy, rfc2733sameport -- separate packet, same port -- MaxRedundancy, rfc2733diffport -- separate packet and port -- MaxRedundancy } OPTIONAL, ... } MaxRedundancy ::= INTEGER(1..MAX) -- ============================================================================= -- Logical channel signalling definitions -- ============================================================================= -- "Forward" is used to refer to transmission in the direction from the terminal -- making the original request for a logical channel to the other terminal, and -- "reverse" is used to refer to the opposite direction of transmission, in the -- case of a bidirectional channel request. OpenLogicalChannel ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, forwardLogicalChannelParameters SEQUENCE {portNumber INTEGER(0..65535) OPTIONAL, dataType DataType, multiplexParameters CHOICE {h222LogicalChannelParameters H222LogicalChannelParameters, h223LogicalChannelParameters H223LogicalChannelParameters, v76LogicalChannelParameters V76LogicalChannelParameters, ..., h2250LogicalChannelParameters H2250LogicalChannelParameters, none NULL}, -- for use with Separate Stack when-- -- multiplexParameters are not -- required or appropriate ..., forwardLogicalChannelDependency LogicalChannelNumber OPTIONAL, -- also used to refer to the primary -- logical channel when using video -- redundancy coding replacementFor LogicalChannelNumber OPTIONAL }, -- Used to specify the reverse channel for bidirectional open request reverseLogicalChannelParameters SEQUENCE {dataType DataType, multiplexParameters CHOICE {-- H.222 parameters are never present in reverse direction h223LogicalChannelParameters H223LogicalChannelParameters, v76LogicalChannelParameters V76LogicalChannelParameters, ..., h2250LogicalChannelParameters H2250LogicalChannelParameters} OPTIONAL, -- Not present for H.222-- ..., reverseLogicalChannelDependency LogicalChannelNumber OPTIONAL, -- also used to refer to the primary logical channel when using -- video redundancy coding replacementFor LogicalChannelNumber OPTIONAL } OPTIONAL, -- Not present for unidirectional channel request ..., separateStack NetworkAccessParameters OPTIONAL, -- for Open responder to establish the stack encryptionSync EncryptionSync OPTIONAL, genericInformation SEQUENCE OF GenericInformation OPTIONAL } -- generic information associated -- with the message LogicalChannelNumber ::= INTEGER(1..65535) NetworkAccessParameters ::= SEQUENCE { distribution CHOICE {unicast NULL, multicast NULL, -- for further study in T.120-- ...} OPTIONAL, networkAddress CHOICE {q2931Address Q2931Address, e164Address IA5String(SIZE (1..128))(FROM ("0123456789#*,")), localAreaAddress TransportAddress, ...}, associateConference BOOLEAN, externalReference OCTET STRING(SIZE (1..255)) OPTIONAL, ..., t120SetupProcedure CHOICE {originateCall NULL, waitForCall NULL, issueQuery NULL, ...} OPTIONAL } Q2931Address ::= SEQUENCE { address CHOICE {internationalNumber NumericString(SIZE (1..16)), nsapAddress OCTET STRING(SIZE (1..20)), ...}, subaddress OCTET STRING(SIZE (1..20)) OPTIONAL, ... } V75Parameters ::= SEQUENCE {audioHeaderPresent BOOLEAN, ... } DataType ::= CHOICE { nonStandard NonStandardParameter, nullData NULL, videoData VideoCapability, audioData AudioCapability, data DataApplicationCapability, encryptionData EncryptionMode, ..., h235Control NonStandardParameter, h235Media H235Media, multiplexedStream MultiplexedStreamParameter, redundancyEncoding RedundancyEncoding, multiplePayloadStream MultiplePayloadStream, depFec DepFECData, -- Deprecated, do not use fec FECData } H235Media ::= SEQUENCE { encryptionAuthenticationAndIntegrity EncryptionAuthenticationAndIntegrity, mediaType CHOICE {nonStandard NonStandardParameter, videoData VideoCapability, audioData AudioCapability, data DataApplicationCapability, ..., redundancyEncoding RedundancyEncoding, multiplePayloadStream MultiplePayloadStream, depFec DepFECData, -- Deprecated, do not use-- fec FECData}, ... } MultiplexedStreamParameter ::= SEQUENCE { multiplexFormat MultiplexFormat, controlOnMuxStream BOOLEAN, ... } H222LogicalChannelParameters ::= SEQUENCE { resourceID INTEGER(0..65535), subChannelID INTEGER(0..8191), pcr-pid INTEGER(0..8191) OPTIONAL, programDescriptors OCTET STRING OPTIONAL, streamDescriptors OCTET STRING OPTIONAL, ... } H223LogicalChannelParameters ::= SEQUENCE { adaptationLayerType CHOICE {nonStandard NonStandardParameter, al1Framed NULL, al1NotFramed NULL, al2WithoutSequenceNumbers NULL, al2WithSequenceNumbers NULL, al3 SEQUENCE {controlFieldOctets INTEGER(0..2), sendBufferSize -- units octets -- INTEGER(0..16777215)}, ..., al1M H223AL1MParameters, al2M H223AL2MParameters, al3M H223AL3MParameters}, segmentableFlag BOOLEAN, ... } H223AL1MParameters ::= SEQUENCE { transferMode CHOICE {framed NULL, unframed NULL, ...}, headerFEC CHOICE {sebch16-7 NULL, golay24-12 NULL, ...}, crcLength CHOICE {crc4bit NULL, crc12bit NULL, crc20bit NULL, crc28bit NULL, ..., crc8bit NULL, crc16bit NULL, crc32bit NULL, crcNotUsed NULL}, rcpcCodeRate INTEGER(8..32), arqType CHOICE {noArq NULL, typeIArq H223AnnexCArqParameters, typeIIArq H223AnnexCArqParameters, ...}, alpduInterleaving BOOLEAN, alsduSplitting BOOLEAN, ..., rsCodeCorrection INTEGER(0..127) OPTIONAL } H223AL2MParameters ::= SEQUENCE { headerFEC CHOICE {sebch16-5 NULL, golay24-12 NULL, ...}, alpduInterleaving BOOLEAN, ... } H223AL3MParameters ::= SEQUENCE { headerFormat CHOICE {sebch16-7 NULL, golay24-12 NULL, ...}, crcLength CHOICE {crc4bit NULL, crc12bit NULL, crc20bit NULL, crc28bit NULL, ..., crc8bit NULL, crc16bit NULL, crc32bit NULL, crcNotUsed NULL}, rcpcCodeRate INTEGER(8..32), arqType CHOICE {noArq NULL, typeIArq H223AnnexCArqParameters, typeIIArq H223AnnexCArqParameters, ...}, alpduInterleaving BOOLEAN, ..., rsCodeCorrection INTEGER(0..127) OPTIONAL } H223AnnexCArqParameters ::= SEQUENCE { numberOfRetransmissions CHOICE {finite INTEGER(0..16), infinite NULL, ...}, sendBufferSize INTEGER(0..16777215), -- units octets ... } V76LogicalChannelParameters ::= SEQUENCE { hdlcParameters V76HDLCParameters, suspendResume CHOICE {noSuspendResume NULL, suspendResumewAddress NULL, suspendResumewoAddress NULL, ...}, uIH BOOLEAN, mode CHOICE {eRM SEQUENCE {windowSize INTEGER(1..127), recovery CHOICE {rej NULL, sREJ NULL, mSREJ NULL, ...}, ...}, uNERM NULL, ...}, v75Parameters V75Parameters, ... } V76HDLCParameters ::= SEQUENCE { crcLength CRCLength, n401 INTEGER(1..4095), loopbackTestProcedure BOOLEAN, ... } CRCLength ::= CHOICE {crc8bit NULL, crc16bit NULL, crc32bit NULL, ... } H2250LogicalChannelParameters ::= SEQUENCE { nonStandard SEQUENCE OF NonStandardParameter OPTIONAL, sessionID INTEGER(0..255), associatedSessionID INTEGER(1..255) OPTIONAL, mediaChannel TransportAddress OPTIONAL, mediaGuaranteedDelivery BOOLEAN OPTIONAL, mediaControlChannel TransportAddress OPTIONAL, -- reverse -- RTCP channel mediaControlGuaranteedDelivery BOOLEAN OPTIONAL, silenceSuppression BOOLEAN OPTIONAL, destination TerminalLabel OPTIONAL, dynamicRTPPayloadType INTEGER(96..127) OPTIONAL, mediaPacketization CHOICE {h261aVideoPacketization NULL, ..., rtpPayloadType RTPPayloadType} OPTIONAL, ..., transportCapability TransportCapability OPTIONAL, redundancyEncoding RedundancyEncoding OPTIONAL, source TerminalLabel OPTIONAL } RTPPayloadType ::= SEQUENCE { payloadDescriptor CHOICE {nonStandardIdentifier NonStandardParameter, rfc-number INTEGER(1..32768, ...), oid OBJECT IDENTIFIER, ...}, payloadType INTEGER(0..127) OPTIONAL, ... } RedundancyEncoding ::= SEQUENCE { redundancyEncodingMethod RedundancyEncodingMethod, secondaryEncoding DataType OPTIONAL, -- depends on method ..., -- The sequence below may be used in place of the above secondaryEncoding field rtpRedundancyEncoding SEQUENCE {primary RedundancyEncodingElement OPTIONAL, -- Present when redundancyEncoding -- is selected as the dataType -- in an OpenLogicalChannel or -- as part of a MultiplePayloadSteam secondary SEQUENCE OF RedundancyEncodingElement OPTIONAL, ...} OPTIONAL } RedundancyEncodingElement ::= SEQUENCE { dataType DataType, payloadType INTEGER(0..127) OPTIONAL, ... } MultiplePayloadStream ::= SEQUENCE { elements SEQUENCE OF MultiplePayloadStreamElement, ... } MultiplePayloadStreamElement ::= SEQUENCE { dataType DataType, payloadType INTEGER(0..127) OPTIONAL, ... } DepFECData ::= CHOICE -- Deprecated, do not use { rfc2733 SEQUENCE {mode CHOICE {redundancyEncoding NULL, separateStream CHOICE {differentPort SEQUENCE {protectedSessionID INTEGER(1..255), protectedPayloadType INTEGER(0..127) OPTIONAL, ...}, samePort SEQUENCE {protectedPayloadType INTEGER(0..127), ...}, ...}, ...}, ...} } FECData ::= CHOICE { rfc2733 SEQUENCE {protectedPayloadType INTEGER(0..127), fecScheme OBJECT IDENTIFIER OPTIONAL, pktMode CHOICE {rfc2198coding NULL, rfc2733sameport SEQUENCE {...}, rfc2733diffport SEQUENCE {protectedChannel LogicalChannelNumber, ...}, ...}, ...}, ... } TransportAddress ::= CHOICE { unicastAddress UnicastAddress, multicastAddress MulticastAddress, ... } UnicastAddress ::= CHOICE { iPAddress SEQUENCE {network OCTET STRING(SIZE (4)), tsapIdentifier INTEGER(0..65535), ...}, iPXAddress SEQUENCE {node OCTET STRING(SIZE (6)), netnum OCTET STRING(SIZE (4)), tsapIdentifier OCTET STRING(SIZE (2)), ...}, iP6Address SEQUENCE {network OCTET STRING(SIZE (16)), tsapIdentifier INTEGER(0..65535), ...}, netBios OCTET STRING(SIZE (16)), iPSourceRouteAddress SEQUENCE {routing CHOICE {strict NULL, loose NULL}, network OCTET STRING(SIZE (4)), tsapIdentifier INTEGER(0..65535), route SEQUENCE OF OCTET STRING(SIZE (4)), ...}, ..., nsap OCTET STRING(SIZE (1..20)), nonStandardAddress NonStandardParameter } MulticastAddress ::= CHOICE { iPAddress SEQUENCE {network OCTET STRING(SIZE (4)), tsapIdentifier INTEGER(0..65535), ...}, iP6Address SEQUENCE {network OCTET STRING(SIZE (16)), tsapIdentifier INTEGER(0..65535), ...}, ..., nsap OCTET STRING(SIZE (1..20)), nonStandardAddress NonStandardParameter } EncryptionSync ::= SEQUENCE -- used to supply new key and synchronization point { nonStandard NonStandardParameter OPTIONAL, synchFlag INTEGER(0..255), -- may need to be larger -- for H.324, etc. -- shall be the Dynamic -- Payload# for H.323 h235Key OCTET STRING(SIZE (1..65535)), -- H.235.0 -- encoded value escrowentry SEQUENCE SIZE (1..256) OF EscrowData OPTIONAL, ..., genericParameter GenericParameter OPTIONAL } EscrowData ::= SEQUENCE { escrowID OBJECT IDENTIFIER, escrowValue BIT STRING(SIZE (1..65535)), ... } OpenLogicalChannelAck ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, reverseLogicalChannelParameters SEQUENCE {reverseLogicalChannelNumber LogicalChannelNumber, portNumber INTEGER(0..65535) OPTIONAL, multiplexParameters CHOICE {h222LogicalChannelParameters H222LogicalChannelParameters, -- H.223 parameters are never present in reverse direction ..., h2250LogicalChannelParameters H2250LogicalChannelParameters} OPTIONAL, -- not present for H.223-- ..., replacementFor LogicalChannelNumber OPTIONAL } OPTIONAL, -- not present for unidirectional channel -- request ..., separateStack NetworkAccessParameters OPTIONAL, -- for Open requester to establish -- the stack forwardMultiplexAckParameters CHOICE {-- H.222 parameters are never present in the Ack -- H.223 parameters are never present in the Ack -- V.76 parameters are never present in the Ack h2250LogicalChannelAckParameters H2250LogicalChannelAckParameters, ...} OPTIONAL, encryptionSync EncryptionSync OPTIONAL, -- used only by Master genericInformation SEQUENCE OF GenericInformation OPTIONAL } -- generic information associated -- with the message OpenLogicalChannelReject ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, cause CHOICE {unspecified NULL, unsuitableReverseParameters NULL, dataTypeNotSupported NULL, dataTypeNotAvailable NULL, unknownDataType NULL, dataTypeALCombinationNotSupported NULL, ..., multicastChannelNotAllowed NULL, insufficientBandwidth NULL, separateStackEstablishmentFailed NULL, invalidSessionID NULL, masterSlaveConflict NULL, waitForCommunicationMode NULL, invalidDependentChannel NULL, replacementForRejected NULL, securityDenied NULL, qoSControlNotSupported NULL}, -- added for callee to indicate -- that requested QoS support cannot be -- supported. ..., genericInformation SEQUENCE OF GenericInformation OPTIONAL } -- generic information associated -- with the message OpenLogicalChannelConfirm ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, ..., genericInformation SEQUENCE OF GenericInformation OPTIONAL } -- generic information associated -- with the message H2250LogicalChannelAckParameters ::= SEQUENCE { nonStandard SEQUENCE OF NonStandardParameter OPTIONAL, sessionID INTEGER(1..255) OPTIONAL, mediaChannel TransportAddress OPTIONAL, mediaControlChannel TransportAddress OPTIONAL, -- forward RTCP -- channel dynamicRTPPayloadType INTEGER(96..127) OPTIONAL, -- used only by -- the master or -- MC ..., flowControlToZero BOOLEAN, portNumber INTEGER(0..65535) OPTIONAL } CloseLogicalChannel ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, source CHOICE {user NULL, lcse NULL}, ..., reason CHOICE {unknown NULL, reopen NULL, reservationFailure NULL, ..., networkErrorCode INTEGER(0..255)} } -- Indicates the error -- code received from network CloseLogicalChannelAck ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, ... } RequestChannelClose ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, ..., qosCapability QOSCapability OPTIONAL, reason CHOICE {unknown NULL, normal NULL, reopen NULL, reservationFailure NULL, ..., networkErrorCode INTEGER(0..255)} } -- Indicates the error -- code received from network RequestChannelCloseAck ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, ... } RequestChannelCloseReject ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, cause CHOICE {unspecified NULL, ...}, ... } RequestChannelCloseRelease ::= SEQUENCE { forwardLogicalChannelNumber LogicalChannelNumber, ... } -- ============================================================================= -- H.223 multiplex table definitions -- ============================================================================= MultiplexEntrySend ::= SEQUENCE { sequenceNumber SequenceNumber, multiplexEntryDescriptors SET SIZE (1..15) OF MultiplexEntryDescriptor, ... } MultiplexEntryDescriptor ::= SEQUENCE { multiplexTableEntryNumber MultiplexTableEntryNumber, elementList SEQUENCE SIZE (1..256) OF MultiplexElement OPTIONAL } MultiplexElement ::= SEQUENCE { type CHOICE {logicalChannelNumber INTEGER(0..65535), subElementList SEQUENCE SIZE (2..255) OF MultiplexElement }, repeatCount CHOICE {finite -- repeats of type -- INTEGER(1..65535), untilClosingFlag -- used for last element -- NULL} } MultiplexTableEntryNumber ::= INTEGER(1..15) MultiplexEntrySendAck ::= SEQUENCE { sequenceNumber SequenceNumber, multiplexTableEntryNumber SET SIZE (1..15) OF MultiplexTableEntryNumber, ... } MultiplexEntrySendReject ::= SEQUENCE { sequenceNumber SequenceNumber, rejectionDescriptions SET SIZE (1..15) OF MultiplexEntryRejectionDescriptions, ... } MultiplexEntryRejectionDescriptions ::= SEQUENCE { multiplexTableEntryNumber MultiplexTableEntryNumber, cause CHOICE {unspecifiedCause NULL, descriptorTooComplex NULL, ...}, ... } MultiplexEntrySendRelease ::= SEQUENCE { multiplexTableEntryNumber SET SIZE (1..15) OF MultiplexTableEntryNumber, ... } RequestMultiplexEntry ::= SEQUENCE { entryNumbers SET SIZE (1..15) OF MultiplexTableEntryNumber, ... } RequestMultiplexEntryAck ::= SEQUENCE { entryNumbers SET SIZE (1..15) OF MultiplexTableEntryNumber, ... } RequestMultiplexEntryReject ::= SEQUENCE { entryNumbers SET SIZE (1..15) OF MultiplexTableEntryNumber, rejectionDescriptions SET SIZE (1..15) OF RequestMultiplexEntryRejectionDescriptions, ... } RequestMultiplexEntryRejectionDescriptions ::= SEQUENCE { multiplexTableEntryNumber MultiplexTableEntryNumber, cause CHOICE {unspecifiedCause NULL, ...}, ... } RequestMultiplexEntryRelease ::= SEQUENCE { entryNumbers SET SIZE (1..15) OF MultiplexTableEntryNumber, ... } -- ============================================================================= -- Request mode definitions -- ============================================================================= -- RequestMode is a list, in order or preference, of modes that a terminal would -- like to have transmitted to it. RequestMode ::= SEQUENCE { sequenceNumber SequenceNumber, requestedModes SEQUENCE SIZE (1..256) OF ModeDescription, ... } RequestModeAck ::= SEQUENCE { sequenceNumber SequenceNumber, response CHOICE {willTransmitMostPreferredMode NULL, willTransmitLessPreferredMode NULL, ...}, ... } RequestModeReject ::= SEQUENCE { sequenceNumber SequenceNumber, cause CHOICE {modeUnavailable NULL, multipointConstraint NULL, requestDenied NULL, ...}, ... } RequestModeRelease ::= SEQUENCE {... } -- ============================================================================= -- Request mode definitions: Mode description -- ============================================================================= ModeDescription ::= SET SIZE (1..256) OF ModeElement ModeElementType ::= CHOICE { nonStandard NonStandardParameter, videoMode VideoMode, audioMode AudioMode, dataMode DataMode, encryptionMode EncryptionMode, ..., h235Mode H235Mode, multiplexedStreamMode MultiplexedStreamParameter, redundancyEncodingDTMode RedundancyEncodingDTMode, multiplePayloadStreamMode MultiplePayloadStreamMode, depFecMode DepFECMode, -- deprecated, do not use fecMode FECMode } ModeElement ::= SEQUENCE { type ModeElementType, h223ModeParameters H223ModeParameters OPTIONAL, ..., v76ModeParameters V76ModeParameters OPTIONAL, h2250ModeParameters H2250ModeParameters OPTIONAL, genericModeParameters GenericCapability OPTIONAL, multiplexedStreamModeParameters MultiplexedStreamModeParameters OPTIONAL, logicalChannelNumber LogicalChannelNumber OPTIONAL } H235Mode ::= SEQUENCE { encryptionAuthenticationAndIntegrity EncryptionAuthenticationAndIntegrity, mediaMode CHOICE {nonStandard NonStandardParameter, videoMode VideoMode, audioMode AudioMode, dataMode DataMode, ...}, ... } MultiplexedStreamModeParameters ::= SEQUENCE { logicalChannelNumber LogicalChannelNumber, ... } RedundancyEncodingDTMode ::= SEQUENCE { redundancyEncodingMethod RedundancyEncodingMethod, primary RedundancyEncodingDTModeElement, secondary SEQUENCE OF RedundancyEncodingDTModeElement, ... } RedundancyEncodingDTModeElement ::= SEQUENCE { type CHOICE {nonStandard NonStandardParameter, videoMode VideoMode, audioMode AudioMode, dataMode DataMode, encryptionMode EncryptionMode, h235Mode H235Mode, ..., fecMode FECMode}, ... } MultiplePayloadStreamMode ::= SEQUENCE { elements SEQUENCE OF MultiplePayloadStreamElementMode, ... } MultiplePayloadStreamElementMode ::= SEQUENCE {type ModeElementType, ... } DepFECMode ::= CHOICE -- deprecated, do not use { rfc2733Mode SEQUENCE {mode CHOICE {redundancyEncoding NULL, separateStream CHOICE {differentPort SEQUENCE {protectedSessionID INTEGER(1..255), protectedPayloadType INTEGER(0..127) OPTIONAL, ...}, samePort SEQUENCE {protectedType ModeElementType, ...}, ...}, ...}, ...}, ... } FECMode ::= SEQUENCE { protectedElement ModeElementType, fecScheme -- identifies encoding scheme -- OBJECT IDENTIFIER OPTIONAL, rfc2733Format CHOICE {rfc2733rfc2198 -- RFC 2198 redundancy -- MaxRedundancy, rfc2733sameport -- separate packet, same port -- MaxRedundancy, rfc2733diffport -- separate packet and port -- MaxRedundancy } OPTIONAL, ... } H223ModeParameters ::= SEQUENCE { adaptationLayerType CHOICE {nonStandard NonStandardParameter, al1Framed NULL, al1NotFramed NULL, al2WithoutSequenceNumbers NULL, al2WithSequenceNumbers NULL, al3 SEQUENCE {controlFieldOctets INTEGER(0..2), sendBufferSize -- units octets -- INTEGER(0..16777215)}, ..., al1M H223AL1MParameters, al2M H223AL2MParameters, al3M H223AL3MParameters}, segmentableFlag BOOLEAN, ... } V76ModeParameters ::= CHOICE { suspendResumewAddress NULL, suspendResumewoAddress NULL, ... } H2250ModeParameters ::= SEQUENCE { redundancyEncodingMode RedundancyEncodingMode OPTIONAL, ... } RedundancyEncodingMode ::= SEQUENCE { redundancyEncodingMethod RedundancyEncodingMethod, secondaryEncoding CHOICE {nonStandard NonStandardParameter, audioData AudioMode, ...} OPTIONAL, ... } -- ============================================================================= -- Request mode definitions: Video modes -- ============================================================================= VideoMode ::= CHOICE { nonStandard NonStandardParameter, h261VideoMode H261VideoMode, h262VideoMode H262VideoMode, h263VideoMode H263VideoMode, is11172VideoMode IS11172VideoMode, ..., genericVideoMode GenericCapability } H261VideoMode ::= SEQUENCE { resolution CHOICE {qcif NULL, cif NULL}, bitRate INTEGER(1..19200), -- units 100 bit/s stillImageTransmission BOOLEAN, ... } H262VideoMode ::= SEQUENCE { profileAndLevel CHOICE {profileAndLevel-SPatML NULL, profileAndLevel-MPatLL NULL, profileAndLevel-MPatML NULL, profileAndLevel-MPatH-14 NULL, profileAndLevel-MPatHL NULL, profileAndLevel-SNRatLL NULL, profileAndLevel-SNRatML NULL, profileAndLevel-SpatialatH-14 NULL, profileAndLevel-HPatML NULL, profileAndLevel-HPatH-14 NULL, profileAndLevel-HPatHL NULL, ...}, videoBitRate INTEGER(0..1073741823) OPTIONAL, -- units 400 bit/s vbvBufferSize INTEGER(0..262143) OPTIONAL, -- units 16 384 bits samplesPerLine INTEGER(0..16383) OPTIONAL, -- units samples/line linesPerFrame INTEGER(0..16383) OPTIONAL, -- units lines/frame framesPerSecond INTEGER(0..15) OPTIONAL, -- frame_rate_code luminanceSampleRate INTEGER(0..4294967295) OPTIONAL, -- units samples/s ... } H263VideoMode ::= SEQUENCE { resolution CHOICE {sqcif NULL, qcif NULL, cif NULL, cif4 NULL, cif16 NULL, ..., custom NULL}, bitRate INTEGER(1..19200), -- units 100 bit/s unrestrictedVector BOOLEAN, arithmeticCoding BOOLEAN, advancedPrediction BOOLEAN, pbFrames BOOLEAN, ..., errorCompensation BOOLEAN, enhancementLayerInfo EnhancementLayerInfo OPTIONAL, h263Options H263Options OPTIONAL } IS11172VideoMode ::= SEQUENCE { constrainedBitstream BOOLEAN, videoBitRate INTEGER(0..1073741823) OPTIONAL, -- units -- 400 bit/s vbvBufferSize INTEGER(0..262143) OPTIONAL, -- units -- 16 384 bits samplesPerLine INTEGER(0..16383) OPTIONAL, -- units -- samples/line linesPerFrame INTEGER(0..16383) OPTIONAL, -- units -- lines/frame pictureRate INTEGER(0..15) OPTIONAL, luminanceSampleRate INTEGER(0..4294967295) OPTIONAL, -- units -- samples/s ... } -- ============================================================================= -- Request mode definitions: Audio modes -- ============================================================================= AudioMode ::= CHOICE { nonStandard NonStandardParameter, g711Alaw64k NULL, g711Alaw56k NULL, g711Ulaw64k NULL, g711Ulaw56k NULL, g722-64k NULL, g722-56k NULL, g722-48k NULL, g728 NULL, g729 NULL, g729AnnexA NULL, g7231 CHOICE {noSilenceSuppressionLowRate NULL, noSilenceSuppressionHighRate NULL, silenceSuppressionLowRate NULL, silenceSuppressionHighRate NULL}, is11172AudioMode IS11172AudioMode, is13818AudioMode IS13818AudioMode, ..., g729wAnnexB INTEGER(1..256), g729AnnexAwAnnexB INTEGER(1..256), g7231AnnexCMode G7231AnnexCMode, gsmFullRate GSMAudioCapability, gsmHalfRate GSMAudioCapability, gsmEnhancedFullRate GSMAudioCapability, genericAudioMode GenericCapability, g729Extensions G729Extensions, vbd VBDMode } IS11172AudioMode ::= SEQUENCE { audioLayer CHOICE {audioLayer1 NULL, audioLayer2 NULL, audioLayer3 NULL}, audioSampling CHOICE {audioSampling32k NULL, audioSampling44k1 NULL, audioSampling48k NULL}, multichannelType CHOICE {singleChannel NULL, twoChannelStereo NULL, twoChannelDual NULL}, bitRate INTEGER(1..448), -- units kbit/s ... } IS13818AudioMode ::= SEQUENCE { audioLayer CHOICE {audioLayer1 NULL, audioLayer2 NULL, audioLayer3 NULL}, audioSampling CHOICE {audioSampling16k NULL, audioSampling22k05 NULL, audioSampling24k NULL, audioSampling32k NULL, audioSampling44k1 NULL, audioSampling48k NULL}, multichannelType CHOICE {singleChannel NULL, twoChannelStereo NULL, twoChannelDual NULL, threeChannels2-1 NULL, threeChannels3-0 NULL, fourChannels2-0-2-0 NULL, fourChannels2-2 NULL, fourChannels3-1 NULL, fiveChannels3-0-2-0 NULL, fiveChannels3-2 NULL}, lowFrequencyEnhancement BOOLEAN, multilingual BOOLEAN, bitRate INTEGER(1..1130), -- units kbit/s ... } G7231AnnexCMode ::= SEQUENCE { maxAl-sduAudioFrames INTEGER(1..256), silenceSuppression BOOLEAN, g723AnnexCAudioMode SEQUENCE {highRateMode0 INTEGER(27..78), -- units octets-- highRateMode1 INTEGER(27..78), -- units octets-- lowRateMode0 INTEGER(23..66), -- units octets-- lowRateMode1 INTEGER(23..66), -- units octets-- sidMode0 INTEGER(6..17), -- units octets-- sidMode1 INTEGER(6..17), -- units octets-- ...}, ... } VBDMode ::= SEQUENCE {type AudioMode, -- shall not be "vbd" ... } -- ============================================================================= -- Request mode definitions: Data modes -- ============================================================================= DataMode ::= SEQUENCE { application CHOICE {nonStandard NonStandardParameter, t120 DataProtocolCapability, dsm-cc DataProtocolCapability, userData DataProtocolCapability, t84 DataProtocolCapability, t434 DataProtocolCapability, h224 DataProtocolCapability, nlpid SEQUENCE {nlpidProtocol DataProtocolCapability, nlpidData OCTET STRING}, dsvdControl NULL, h222DataPartitioning DataProtocolCapability, ..., t30fax DataProtocolCapability, t140 DataProtocolCapability, t38fax SEQUENCE {t38FaxProtocol DataProtocolCapability, t38FaxProfile T38FaxProfile}, genericDataMode GenericCapability}, bitRate INTEGER(0..4294967295), -- units 100 bit/s ... } -- ============================================================================= -- Request mode definitions: Encryption modes -- ============================================================================= EncryptionMode ::= CHOICE { nonStandard NonStandardParameter, h233Encryption NULL, ... } -- ============================================================================= -- Round Trip Delay definitions -- ============================================================================= RoundTripDelayRequest ::= SEQUENCE {sequenceNumber SequenceNumber, ... } RoundTripDelayResponse ::= SEQUENCE {sequenceNumber SequenceNumber, ... } -- ============================================================================= -- Maintenance Loop definitions -- ============================================================================= MaintenanceLoopRequest ::= SEQUENCE { type CHOICE {systemLoop NULL, mediaLoop LogicalChannelNumber, logicalChannelLoop LogicalChannelNumber, ...}, ... } MaintenanceLoopAck ::= SEQUENCE { type CHOICE {systemLoop NULL, mediaLoop LogicalChannelNumber, logicalChannelLoop LogicalChannelNumber, ...}, ... } MaintenanceLoopReject ::= SEQUENCE { type CHOICE {systemLoop NULL, mediaLoop LogicalChannelNumber, logicalChannelLoop LogicalChannelNumber, ...}, cause CHOICE {canNotPerformLoop NULL, ...}, ... } MaintenanceLoopOffCommand ::= SEQUENCE {... } -- ============================================================================= -- Communication Mode definitions -- ============================================================================= CommunicationModeCommand ::= SEQUENCE { communicationModeTable SET SIZE (1..256) OF CommunicationModeTableEntry, ... } CommunicationModeRequest ::= SEQUENCE {... } CommunicationModeResponse ::= CHOICE { communicationModeTable SET SIZE (1..256) OF CommunicationModeTableEntry, ... } CommunicationModeTableEntry ::= SEQUENCE { nonStandard SEQUENCE OF NonStandardParameter OPTIONAL, sessionID INTEGER(1..255), associatedSessionID INTEGER(1..255) OPTIONAL, terminalLabel TerminalLabel OPTIONAL, -- if not present, -- it refers to -- all -- participants in -- the conference sessionDescription BMPString(SIZE (1..128)), -- Basic ISO/IEC 10646 (Unicode) dataType CHOICE {videoData VideoCapability, audioData AudioCapability, data DataApplicationCapability, ...}, mediaChannel TransportAddress OPTIONAL, mediaGuaranteedDelivery BOOLEAN OPTIONAL, mediaControlChannel TransportAddress OPTIONAL, -- reverse RTCP channel mediaControlGuaranteedDelivery BOOLEAN OPTIONAL, ..., redundancyEncoding RedundancyEncoding OPTIONAL, sessionDependency INTEGER(1..255) OPTIONAL, destination TerminalLabel OPTIONAL } -- ============================================================================= -- Conference Request definitions -- ============================================================================= ConferenceRequest ::= CHOICE { terminalListRequest NULL, -- same as H.230 TCU (term->MC) makeMeChair NULL, -- same as H.230 CCA (term->MC) cancelMakeMeChair NULL, -- same as H.230 CIS (term->MC) dropTerminal TerminalLabel, -- same as H.230 CCD(term->MC) requestTerminalID TerminalLabel, -- same as TCP (term->MC) enterH243Password NULL, -- same as H.230 TCS1(MC->term) enterH243TerminalID NULL, -- same as H.230 TCS2/TCI -- (MC->term) enterH243ConferenceID NULL, -- same as H.230 TCS3 (MC->term) ..., enterExtensionAddress NULL, -- same as H.230 TCS4 (GW->term) requestChairTokenOwner NULL, -- same as H.230 TCA (term->MC) requestTerminalCertificate SEQUENCE {terminalLabel TerminalLabel OPTIONAL, certSelectionCriteria CertSelectionCriteria OPTIONAL, sRandom INTEGER(1..4294967295) OPTIONAL, -- this is the requester's challenge ...}, broadcastMyLogicalChannel LogicalChannelNumber, -- similar to H.230 MCV makeTerminalBroadcaster TerminalLabel, -- similar to H.230 VCB sendThisSource TerminalLabel, -- similar to H.230 VCS requestAllTerminalIDs NULL, remoteMCRequest RemoteMCRequest } CertSelectionCriteria ::= SEQUENCE SIZE (1..16) OF Criteria Criteria ::= SEQUENCE { field OBJECT IDENTIFIER, -- may include -- certificate type value OCTET STRING(SIZE (1..65535)), ... } TerminalLabel ::= SEQUENCE { mcuNumber McuNumber, terminalNumber TerminalNumber, ... } McuNumber ::= INTEGER(0..192) TerminalNumber ::= INTEGER(0..192) -- ============================================================================= -- Conference Response definitions -- ============================================================================= ConferenceResponse ::= CHOICE { mCTerminalIDResponse SEQUENCE-- response to TCP -- -- (same as TIP) {-- sent by MC only--terminalLabel TerminalLabel, terminalID TerminalID, ...}, terminalIDResponse SEQUENCE-- response to TCS2 or TCI-- {-- same as IIS--terminalLabel TerminalLabel, -- (term->MC)-- terminalID TerminalID, ...}, conferenceIDResponse SEQUENCE-- response to TCS3-- {-- same as IIS--terminalLabel TerminalLabel, -- (term->MC)-- conferenceID ConferenceID, ...}, passwordResponse SEQUENCE-- response to TCS1-- {-- same as IIS--terminalLabel TerminalLabel, -- (term->MC)-- password Password, ...}, terminalListResponse SET SIZE (1..256) OF TerminalLabel, videoCommandReject NULL, -- same as H.230 VCR terminalDropReject NULL, -- same as H.230 CIR makeMeChairResponse CHOICE-- same as H.230 CCR-- {grantedChairToken NULL, -- same as H.230 CIT-- deniedChairToken NULL, -- same as H.230 CCR-- ...}, ..., extensionAddressResponse SEQUENCE-- response to TCS4-- {extensionAddress TerminalID, -- same as IIS (term->GW)-- ...}, chairTokenOwnerResponse SEQUENCE-- response to TCA (same as TIR) -- -- sent by MC only {terminalLabel TerminalLabel, terminalID TerminalID, ...}, terminalCertificateResponse SEQUENCE {terminalLabel TerminalLabel OPTIONAL, certificateResponse OCTET STRING(SIZE (1..65535)) OPTIONAL, ...}, broadcastMyLogicalChannelResponse CHOICE {grantedBroadcastMyLogicalChannel NULL, -- similar to H.230 MVA-- deniedBroadcastMyLogicalChannel NULL, -- similar to H.230 MVR-- ...}, makeTerminalBroadcasterResponse CHOICE {grantedMakeTerminalBroadcaster NULL, deniedMakeTerminalBroadcaster NULL, ...}, sendThisSourceResponse CHOICE {grantedSendThisSource NULL, deniedSendThisSource NULL, ...}, requestAllTerminalIDsResponse RequestAllTerminalIDsResponse, remoteMCResponse RemoteMCResponse } TerminalID ::= OCTET STRING(SIZE (1..128)) -- as per H.230 ConferenceID ::= OCTET STRING(SIZE (1..32)) Password ::= OCTET STRING(SIZE (1..32)) RequestAllTerminalIDsResponse ::= SEQUENCE { terminalInformation SEQUENCE OF TerminalInformation, ... } TerminalInformation ::= SEQUENCE { terminalLabel TerminalLabel, terminalID TerminalID, ... } -- ============================================================================= -- Remote MC Request definitions -- ============================================================================= RemoteMCRequest ::= CHOICE { masterActivate NULL, slaveActivate NULL, deActivate NULL, ... } RemoteMCResponse ::= CHOICE { accept NULL, reject CHOICE {unspecified NULL, functionNotSupported NULL, ...}, ... } -- ============================================================================= -- Multilink definitions -- ============================================================================= MultilinkRequest ::= CHOICE { nonStandard NonStandardMessage, callInformation SEQUENCE {maxNumberOfAdditionalConnections INTEGER(1..65535), ...}, addConnection SEQUENCE {sequenceNumber SequenceNumber, -- Unique ID of request-- dialingInformation DialingInformation, ...}, removeConnection SEQUENCE {connectionIdentifier ConnectionIdentifier, ...}, maximumHeaderInterval SEQUENCE {requestType CHOICE {currentIntervalInformation NULL, requestedInterval INTEGER(0..65535), -- Max Header -- -- Interval, -- milliseconds ...}, ...}, ... } MultilinkResponse ::= CHOICE { nonStandard NonStandardMessage, callInformation SEQUENCE {dialingInformation DialingInformation, callAssociationNumber INTEGER(0..4294967295), ...}, addConnection SEQUENCE {sequenceNumber SequenceNumber, -- Equal to value in request-- responseCode CHOICE {accepted NULL, rejected CHOICE {connectionsNotAvailable NULL, -- due to any technical reason-- userRejected NULL, ...}, ...}, ...}, removeConnection SEQUENCE {connectionIdentifier ConnectionIdentifier, ...}, maximumHeaderInterval SEQUENCE {currentInterval INTEGER(0..65535), -- Max Header -- -- Interval, -- milliseconds ...}, ... } MultilinkIndication ::= CHOICE { nonStandard NonStandardMessage, crcDesired SEQUENCE {...}, excessiveError SEQUENCE {connectionIdentifier ConnectionIdentifier, ...}, ... } DialingInformation ::= CHOICE { nonStandard NonStandardMessage, differential SET SIZE (1..65535) OF DialingInformationNumber, -- list of numbers for all additional -- channels; only least significant digits -- different from initial channel's number infoNotAvailable INTEGER(1..65535), -- maximum No. of -- additional channels ... } DialingInformationNumber ::= SEQUENCE { networkAddress NumericString(SIZE (0..40)), subAddress IA5String(SIZE (1..40)) OPTIONAL, networkType SET SIZE (1..255) OF DialingInformationNetworkType, ... } DialingInformationNetworkType ::= CHOICE { nonStandard NonStandardMessage, n-isdn NULL, gstn NULL, ..., mobile NULL } ConnectionIdentifier ::= SEQUENCE { channelTag INTEGER(0..4294967295), -- from H.226 sequenceNumber INTEGER(0..4294967295), -- from H.226 ... } -- ============================================================================= -- Logical channel bit-rate change definitions -- ============================================================================= MaximumBitRate ::= INTEGER(0..4294967295) -- units of 100 bit/s LogicalChannelRateRequest ::= SEQUENCE { sequenceNumber SequenceNumber, logicalChannelNumber LogicalChannelNumber, maximumBitRate MaximumBitRate, ... } LogicalChannelRateAcknowledge ::= SEQUENCE { sequenceNumber SequenceNumber, logicalChannelNumber LogicalChannelNumber, maximumBitRate MaximumBitRate, ... } LogicalChannelRateReject ::= SEQUENCE { sequenceNumber SequenceNumber, logicalChannelNumber LogicalChannelNumber, rejectReason LogicalChannelRateRejectReason, currentMaximumBitRate MaximumBitRate OPTIONAL, ... } LogicalChannelRateRejectReason ::= CHOICE { undefinedReason NULL, insufficientResources NULL, ... } LogicalChannelRateRelease ::= SEQUENCE {... } -- ============================================================================= -- Command Message definitions -- ============================================================================= -- ============================================================================= -- Command Message: Send Terminal Capability Set -- ============================================================================= SendTerminalCapabilitySet ::= CHOICE { specificRequest SEQUENCE {multiplexCapability BOOLEAN, capabilityTableEntryNumbers SET SIZE (1..65535) OF CapabilityTableEntryNumber OPTIONAL, capabilityDescriptorNumbers SET SIZE (1..256) OF CapabilityDescriptorNumber OPTIONAL, ...}, genericRequest NULL, ... } -- ============================================================================= -- Command Message: Encryption -- ============================================================================= EncryptionCommand ::= CHOICE { encryptionSE OCTET STRING, -- per H.233, but no -- error protection encryptionIVRequest NULL, -- requests new IV encryptionAlgorithmID SEQUENCE {h233AlgorithmIdentifier SequenceNumber, associatedAlgorithm NonStandardParameter}, ... } -- ============================================================================= -- Command Message: Flow Control -- ============================================================================= FlowControlCommand ::= SEQUENCE { scope CHOICE {logicalChannelNumber LogicalChannelNumber, resourceID INTEGER(0..65535), wholeMultiplex NULL}, restriction CHOICE {maximumBitRate INTEGER(0..16777215), -- units 100 bit/s -- noRestriction NULL}, ... } -- ============================================================================= -- Command Message: Change or End Session -- ============================================================================= EndSessionCommand ::= CHOICE { nonStandard NonStandardParameter, disconnect NULL, gstnOptions CHOICE {telephonyMode NULL, v8bis NULL, v34DSVD NULL, v34DuplexFAX NULL, v34H324 NULL, ...}, ..., isdnOptions CHOICE {telephonyMode NULL, v140 NULL, terminalOnHold NULL, ...}, genericInformation SEQUENCE OF GenericInformation } -- generic information associated -- with the message -- ============================================================================= -- Command Message: Conference Commands -- ============================================================================= ConferenceCommand ::= CHOICE { broadcastMyLogicalChannel LogicalChannelNumber, -- similar to H.230 MCV cancelBroadcastMyLogicalChannel LogicalChannelNumber, -- similar to -- H.230 Cancel-MCV makeTerminalBroadcaster TerminalLabel, -- same as H.230 VCB cancelMakeTerminalBroadcaster NULL, -- same as H.230 -- Cancel-VCB sendThisSource TerminalLabel, -- same as H.230 VCS cancelSendThisSource NULL, -- same as H.230 -- cancel VCS dropConference NULL, -- same as H.230 CCK ..., substituteConferenceIDCommand SubstituteConferenceIDCommand } SubstituteConferenceIDCommand ::= SEQUENCE { conferenceIdentifier OCTET STRING(SIZE (16)), ... } -- ============================================================================= -- Command Message: Miscellaneous H.230-like commands -- ============================================================================= EncryptionUpdateDirection ::= CHOICE { masterToSlave NULL, slaveToMaster NULL, ... } MiscellaneousCommand ::= SEQUENCE { logicalChannelNumber LogicalChannelNumber, type CHOICE {equaliseDelay NULL, -- same as H.230 ACE-- zeroDelay NULL, -- same as H.230 ACZ-- multipointModeCommand NULL, cancelMultipointModeCommand NULL, videoFreezePicture NULL, videoFastUpdatePicture NULL, videoFastUpdateGOB SEQUENCE {firstGOB INTEGER(0..17), numberOfGOBs INTEGER(1..18)}, videoTemporalSpatialTradeOff INTEGER(0..31), -- commands a trade-off value-- videoSendSyncEveryGOB NULL, videoSendSyncEveryGOBCancel NULL, ..., videoFastUpdateMB SEQUENCE {firstGOB INTEGER(0..255) OPTIONAL, firstMB INTEGER(1..8192) OPTIONAL, numberOfMBs INTEGER(1..8192), ...}, maxH223MUXPDUsize INTEGER(1..65535), -- units octets-- encryptionUpdate EncryptionSync, encryptionUpdateRequest EncryptionUpdateRequest, switchReceiveMediaOff NULL, switchReceiveMediaOn NULL, progressiveRefinementStart SEQUENCE {repeatCount CHOICE {doOneProgression NULL, doContinuousProgressions NULL, doOneIndependentProgression NULL, doContinuousIndependentProgressions NULL, ...}, ...}, progressiveRefinementAbortOne NULL, progressiveRefinementAbortContinuous NULL, videoBadMBs SEQUENCE {firstMB INTEGER(1..9216), numberOfMBs INTEGER(1..9216), temporalReference INTEGER(0..1023), ...}, lostPicture SEQUENCE OF PictureReference, lostPartialPicture SEQUENCE {pictureReference PictureReference, firstMB INTEGER(1..9216), numberOfMBs INTEGER(1..9216), ...}, recoveryReferencePicture SEQUENCE OF PictureReference, encryptionUpdateCommand SEQUENCE-- for ack'ed key update in H.235V3-- {encryptionSync EncryptionSync, multiplePayloadStream MultiplePayloadStream OPTIONAL, ...}, encryptionUpdateAck SEQUENCE {synchFlag INTEGER(0..255), ...}}, ..., direction EncryptionUpdateDirection OPTIONAL } KeyProtectionMethod ::= SEQUENCE -- specify how the new -- key is to be protected { secureChannel BOOLEAN, sharedSecret BOOLEAN, certProtectedKey BOOLEAN, ... } EncryptionUpdateRequest ::= SEQUENCE { keyProtectionMethod KeyProtectionMethod OPTIONAL, ..., synchFlag INTEGER(0..255) OPTIONAL } PictureReference ::= CHOICE { pictureNumber INTEGER(0..1023), longTermPictureIndex INTEGER(0..255), ... } -- ============================================================================= -- Command Message: H.223 Multiplex Reconfiguration -- ============================================================================= H223MultiplexReconfiguration ::= CHOICE { h223ModeChange CHOICE {toLevel0 NULL, toLevel1 NULL, toLevel2 NULL, toLevel2withOptionalHeader NULL, ...}, h223AnnexADoubleFlag CHOICE {start NULL, stop NULL, ...}, ... } -- ============================================================================= -- Command Message: New ATM virtual channel command -- ============================================================================= NewATMVCCommand ::= SEQUENCE { resourceID INTEGER(0..65535), bitRate INTEGER(1..65535), -- units 64 kbit/s bitRateLockedToPCRClock BOOLEAN, bitRateLockedToNetworkClock BOOLEAN, aal CHOICE {aal1 SEQUENCE {clockRecovery CHOICE {nullClockRecovery NULL, srtsClockRecovery NULL, adaptiveClockRecovery NULL, ...}, errorCorrection CHOICE {nullErrorCorrection NULL, longInterleaver NULL, shortInterleaver NULL, errorCorrectionOnly NULL, ...}, structuredDataTransfer BOOLEAN, partiallyFilledCells BOOLEAN, ...}, aal5 SEQUENCE {forwardMaximumSDUSize INTEGER(0..65535), -- units octets-- backwardMaximumSDUSize INTEGER(0..65535), -- units octets-- ...}, ...}, multiplex CHOICE {noMultiplex NULL, transportStream NULL, programStream NULL, ...}, reverseParameters SEQUENCE {bitRate INTEGER(1..65535), -- units 64 kbit/s-- bitRateLockedToPCRClock BOOLEAN, bitRateLockedToNetworkClock BOOLEAN, multiplex CHOICE {noMultiplex NULL, transportStream NULL, programStream NULL, ...}, ...}, ... } -- ============================================================================= -- Command Message: Mobile Multilink Reconfiguration command -- ============================================================================= MobileMultilinkReconfigurationCommand ::= SEQUENCE { sampleSize INTEGER(1..255), samplesPerFrame INTEGER(1..255), status CHOICE {synchronized NULL, reconfiguration NULL, ...}, ... } -- ============================================================================= -- Indication Message definitions -- ============================================================================= -- ============================================================================= -- Indication Message: Function not understood -- ============================================================================= -- This is used to return a request, response or command that is not understood FunctionNotUnderstood ::= CHOICE { request RequestMessage, response ResponseMessage, command CommandMessage } -- ============================================================================= -- Indication Message: Function not Supported -- ============================================================================= -- This is used to return a complete request, response or command that is not -- recognized FunctionNotSupported ::= SEQUENCE { cause CHOICE {syntaxError NULL, semanticError NULL, unknownFunction NULL, ...}, returnedFunction OCTET STRING OPTIONAL, ... } -- ============================================================================= -- Indication Message: Conference -- ============================================================================= ConferenceIndication ::= CHOICE { sbeNumber INTEGER(0..9), -- same as H.230 SBE Number terminalNumberAssign TerminalLabel, -- same as H.230 TIA terminalJoinedConference TerminalLabel, -- same as H.230 TIN terminalLeftConference TerminalLabel, -- same as H.230 TID seenByAtLeastOneOther NULL, -- same as H.230 MIV cancelSeenByAtLeastOneOther NULL, -- same as H.230 cancel MIV seenByAll NULL, -- like H.230 MIV cancelSeenByAll NULL, -- like H.230 MIV terminalYouAreSeeing TerminalLabel, -- same as H.230 VIN requestForFloor NULL, -- same as H.230 TIF ..., withdrawChairToken NULL, -- same as H.230 CCR MC-> chair floorRequested TerminalLabel, -- same as H.230 TIF MC-> chair terminalYouAreSeeingInSubPictureNumber TerminalYouAreSeeingInSubPictureNumber, videoIndicateCompose VideoIndicateCompose, masterMCU NULL, -- same as H.230 MIM cancelMasterMCU -- same as H.230 cancel MIM -- NULL } TerminalYouAreSeeingInSubPictureNumber ::= SEQUENCE { terminalNumber TerminalNumber, subPictureNumber INTEGER(0..255), ..., mcuNumber McuNumber } VideoIndicateCompose ::= SEQUENCE {compositionNumber INTEGER(0..255), ... } -- ============================================================================= -- Indication Message: Miscellaneous H.230-like indication -- ============================================================================= MiscellaneousIndication ::= SEQUENCE { logicalChannelNumber LogicalChannelNumber, type CHOICE {logicalChannelActive NULL, -- same as H.230 AIA and VIA-- logicalChannelInactive NULL, -- same as H.230 AIM and VIS-- multipointConference NULL, cancelMultipointConference NULL, multipointZeroComm NULL, -- same as H.230 MIZ-- cancelMultipointZeroComm NULL, -- same as H.230 cancel MIZ-- multipointSecondaryStatus NULL, -- same as H.230 MIS-- cancelMultipointSecondaryStatus NULL, -- same as H.230 cancel MIS-- videoIndicateReadyToActivate NULL, -- same as H.230 VIR-- videoTemporalSpatialTradeOff INTEGER(0..31), -- indicates current -- -- trade-off ..., videoNotDecodedMBs SEQUENCE {firstMB INTEGER(1..8192), numberOfMBs INTEGER(1..8192), temporalReference INTEGER(0..255), ...}, transportCapability TransportCapability}, ... } -- ============================================================================= -- Indication Message: Jitter Indication -- ============================================================================= JitterIndication ::= SEQUENCE { scope CHOICE {logicalChannelNumber LogicalChannelNumber, resourceID INTEGER(0..65535), wholeMultiplex NULL}, estimatedReceivedJitterMantissa INTEGER(0..3), estimatedReceivedJitterExponent INTEGER(0..7), skippedFrameCount INTEGER(0..15) OPTIONAL, additionalDecoderBuffer INTEGER(0..262143) OPTIONAL, -- 262143 is 2^18 - 1 ... } -- ============================================================================= -- Indication Message: H.223 logical channel skew -- ============================================================================= H223SkewIndication ::= SEQUENCE { logicalChannelNumber1 LogicalChannelNumber, logicalChannelNumber2 LogicalChannelNumber, skew INTEGER(0..4095), -- units milliseconds ... } -- ============================================================================= -- Indication Message: H.225.0 maximum logical channel skew -- ============================================================================= H2250MaximumSkewIndication ::= SEQUENCE { logicalChannelNumber1 LogicalChannelNumber, logicalChannelNumber2 LogicalChannelNumber, maximumSkew INTEGER(0..4095), -- units milliseconds ... } -- ============================================================================= -- Indication Message: MC Location Indication -- ============================================================================= MCLocationIndication ::= SEQUENCE { signalAddress TransportAddress, -- this is the -- H.323 Call Signalling -- address of the entity -- which contains the MC ... } -- ============================================================================= -- Indication Message: Vendor Identification -- ============================================================================= VendorIdentification ::= SEQUENCE { vendor NonStandardIdentifier, productNumber OCTET STRING(SIZE (1..256)) OPTIONAL, -- per vendor versionNumber OCTET STRING(SIZE (1..256)) OPTIONAL, -- per productNumber ... } -- ============================================================================= -- Indication Message: New ATM virtual channel indication -- ============================================================================= NewATMVCIndication ::= SEQUENCE { resourceID INTEGER(0..65535), bitRate INTEGER(1..65535), -- units 64 kbit/s bitRateLockedToPCRClock BOOLEAN, bitRateLockedToNetworkClock BOOLEAN, aal CHOICE {aal1 SEQUENCE {clockRecovery CHOICE {nullClockRecovery NULL, srtsClockRecovery NULL, adaptiveClockRecovery NULL, ...}, errorCorrection CHOICE {nullErrorCorrection NULL, longInterleaver NULL, shortInterleaver NULL, errorCorrectionOnly NULL, ...}, structuredDataTransfer BOOLEAN, partiallyFilledCells BOOLEAN, ...}, aal5 SEQUENCE {forwardMaximumSDUSize INTEGER(0..65535), -- units octets-- backwardMaximumSDUSize INTEGER(0..65535), -- units octets-- ...}, ...}, multiplex CHOICE {noMultiplex NULL, transportStream NULL, programStream NULL, ...}, ..., reverseParameters SEQUENCE {bitRate INTEGER(1..65535), -- units 64 kbit/s-- bitRateLockedToPCRClock BOOLEAN, bitRateLockedToNetworkClock BOOLEAN, multiplex CHOICE {noMultiplex NULL, transportStream NULL, programStream NULL, ...}, ...} } -- ============================================================================= -- Indication Message: User input -- ============================================================================= IV8 ::= OCTET STRING(SIZE (8)) -- initial value for -- 64-bit block ciphers IV16 ::= OCTET STRING(SIZE (16)) -- initial value for -- 128-bit block ciphers Params ::= SEQUENCE { iv8 IV8 OPTIONAL, -- 8-octet initialization vector iv16 IV16 OPTIONAL, -- 16-octet initialization vector iv OCTET STRING OPTIONAL, -- arbitrary length -- initialization vector ... } UserInputIndication ::= CHOICE { nonStandard NonStandardParameter, alphanumeric GeneralString, ..., userInputSupportIndication CHOICE {nonStandard NonStandardParameter, basicString NULL, -- indicates unsecured basic string-- iA5String NULL, -- indicates unsecured IA5 string-- generalString NULL, -- indicates unsecured general string-- ..., encryptedBasicString NULL, -- indicates encrypted Basic string-- encryptedIA5String NULL, -- indicates encrypted IA5 string-- encryptedGeneralString NULL -- indicates encrypted general string }, signal SEQUENCE {signalType IA5String(SIZE (1) ^ FROM ("0123456789#*ABCD!")), -- holds dummy "!" if encryptedSignalType -- is being used duration INTEGER(1..65535) OPTIONAL, -- milliseconds rtp SEQUENCE {timestamp INTEGER(0..4294967295) OPTIONAL, expirationTime INTEGER(0..4294967295) OPTIONAL, logicalChannelNumber LogicalChannelNumber, ...} OPTIONAL, ..., rtpPayloadIndication NULL OPTIONAL, paramS Params OPTIONAL, -- any "runtime" parameters-- encryptedSignalType OCTET STRING(SIZE (1)) OPTIONAL, -- encrypted signalType algorithmOID OBJECT IDENTIFIER OPTIONAL}, signalUpdate SEQUENCE {duration INTEGER(1..65535), -- milliseconds-- rtp SEQUENCE {logicalChannelNumber LogicalChannelNumber, ...} OPTIONAL, ...}, extendedAlphanumeric SEQUENCE {alphanumeric GeneralString, -- holds empty string if-- -- encryptedAlphanumeric is -- being used rtpPayloadIndication NULL OPTIONAL, ..., encryptedAlphanumeric SEQUENCE {algorithmOID OBJECT IDENTIFIER, paramS Params OPTIONAL, -- any "runtime" parameters-- encrypted OCTET STRING, -- general string encrypted-- ...} OPTIONAL}, encryptedAlphanumeric SEQUENCE {algorithmOID OBJECT IDENTIFIER, paramS Params OPTIONAL, -- any "runtime" parameters-- encrypted OCTET STRING, -- basic string encrypted-- ...}, genericInformation SEQUENCE OF GenericInformation } -- generic information associated -- with the message -- ============================================================================= -- Indication Message: Flow Control -- ============================================================================= FlowControlIndication ::= SEQUENCE { scope CHOICE {logicalChannelNumber LogicalChannelNumber, resourceID INTEGER(0..65535), wholeMultiplex NULL}, restriction CHOICE {maximumBitRate INTEGER(0..16777215), -- units 100 bit/s-- noRestriction NULL}, ... } -- ============================================================================= -- Indication Message: Mobile Multilink Reconfiguration indication -- ============================================================================= MobileMultilinkReconfigurationIndication ::= SEQUENCE { sampleSize INTEGER(1..255), samplesPerFrame INTEGER(1..255), ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
C
wireshark/epan/dissectors/asn1/h245/packet-h245-template.c
/* packet-h245_asn1.c * Routines for h245 packet dissection * Copyright 2004, Anders Broman <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * * To quote the author of the previous H245 dissector: * "This is a complete replacement of the previous limitied dissector * that Ronnie was crazy enough to write by hand. It was a lot of time * to hack it by hand, but it is incomplete and buggy and it is good when * it will go away." * Ronnie did a great job and all the VoIP users had made good use of it! * Credit to Tomas Kukosa for developing the asn2wrs compiler. * */ #include "config.h" #include <epan/packet.h> #include <epan/exceptions.h> #include <epan/strutil.h> #include <epan/addr_resolv.h> #include <epan/prefs.h> #include <epan/t35.h> #include <epan/oids.h> #include <epan/asn1.h> #include <epan/tap.h> #include <wsutil/pint.h> #include "packet-tpkt.h" #include "packet-per.h" #include "packet-h323.h" #include "packet-h245.h" #include "packet-rtp.h" #include "packet-rtcp.h" #include "packet-t38.h" #define PNAME "MULTIMEDIA-SYSTEM-CONTROL" #define PSNAME "H.245" #define PFNAME "h245" void proto_register_h245(void); void proto_reg_handoff_h245(void); static dissector_handle_t rtcp_handle=NULL; static dissector_table_t nsp_object_dissector_table; static dissector_table_t nsp_h221_dissector_table; static dissector_table_t gef_name_dissector_table; static dissector_table_t gef_content_dissector_table; static dissector_handle_t h245_handle; static dissector_handle_t nsp_handle; static dissector_handle_t data_handle; static dissector_handle_t MultimediaSystemControlMessage_handle; static dissector_handle_t h263_handle = NULL; static dissector_handle_t amr_handle = NULL; static void init_h245_packet_info(h245_packet_info *pi); static int hf_h245_pdu_type = -1; static int hf_h245Manufacturer = -1; static int hf_h245_subMessageIdentifier_standard = -1; static int h245_tap = -1; static int h245dg_tap = -1; static int hf_h245_debug_dissector_try_string = -1; h245_packet_info *h245_pi=NULL; static gboolean h245_reassembly = TRUE; static gboolean h245_shorttypes = FALSE; static gboolean info_col_fmt_prepend = FALSE; #include "packet-h245-val.h" static const value_string h245_RequestMessage_short_vals[] = { { RequestMessage_nonStandard , "NSM" }, { RequestMessage_masterSlaveDetermination , "MSD" }, { RequestMessage_terminalCapabilitySet , "TCS" }, { RequestMessage_openLogicalChannel , "OLC" }, { RequestMessage_closeLogicalChannel , "CLC" }, { RequestMessage_requestChannelClose , "RCC" }, { RequestMessage_multiplexEntrySend , "MES" }, { RequestMessage_requestMultiplexEntry , "RME" }, { RequestMessage_requestMode , "RM" }, { RequestMessage_roundTripDelayRequest , "RTDR" }, { RequestMessage_maintenanceLoopRequest , "MLR" }, { RequestMessage_communicationModeRequest , "CMR" }, { RequestMessage_conferenceRequest , "CR" }, { RequestMessage_multilinkRequest , "MR" }, { RequestMessage_logicalChannelRateRequest, "LCRR" }, { RequestMessage_genericRequest , "GR" }, { 0, NULL } }; static const value_string h245_ResponseMessage_short_vals[] = { { ResponseMessage_nonStandard , "NSM" }, { ResponseMessage_masterSlaveDeterminationAck , "MSDAck" }, { ResponseMessage_masterSlaveDeterminationReject, "MSDReject" }, { ResponseMessage_terminalCapabilitySetAck , "TCSAck" }, { ResponseMessage_terminalCapabilitySetReject , "TCSReject" }, { ResponseMessage_openLogicalChannelAck , "OLCAck" }, { ResponseMessage_openLogicalChannelReject , "OLCReject" }, { ResponseMessage_closeLogicalChannelAck , "CLCAck" }, { ResponseMessage_requestChannelCloseAck , "RCCAck" }, { ResponseMessage_requestChannelCloseReject , "RCCReject" }, { ResponseMessage_multiplexEntrySendAck , "MESAck" }, { ResponseMessage_multiplexEntrySendReject , "MESReject" }, { ResponseMessage_requestMultiplexEntryAck , "RMEAck" }, { ResponseMessage_requestMultiplexEntryReject , "RMEReject" }, { ResponseMessage_requestModeAck , "RMAck" }, { ResponseMessage_requestModeReject , "RMReject" }, { ResponseMessage_roundTripDelayResponse , "RTDResponse" }, { ResponseMessage_maintenanceLoopAck , "MLAck" }, { ResponseMessage_maintenanceLoopReject , "MLReject" }, { ResponseMessage_communicationModeResponse , "CMResponse" }, { ResponseMessage_conferenceResponse , "CResponse" }, { ResponseMessage_multilinkResponse , "MResponse" }, { ResponseMessage_logicalChannelRateAcknowledge , "LCRAck" }, { ResponseMessage_logicalChannelRateReject , "LCRReject" }, { ResponseMessage_genericResponse , "GR" }, { 0, NULL } }; static const value_string h245_IndicationMessage_short_vals[] = { { IndicationMessage_nonStandard , "NSM" }, { IndicationMessage_functionNotUnderstood , "FNU" }, { IndicationMessage_masterSlaveDeterminationRelease , "MSDRelease" }, { IndicationMessage_terminalCapabilitySetRelease , "TCSRelease" }, { IndicationMessage_openLogicalChannelConfirm , "OLCConfirm" }, { IndicationMessage_requestChannelCloseRelease , "RCCRelease" }, { IndicationMessage_multiplexEntrySendRelease , "MESRelease" }, { IndicationMessage_requestMultiplexEntryRelease , "RMERelease" }, { IndicationMessage_requestModeRelease , "RMRelease" }, { IndicationMessage_miscellaneousIndication , "MI" }, { IndicationMessage_jitterIndication , "JI" }, { IndicationMessage_h223SkewIndication , "H223SI" }, { IndicationMessage_newATMVCIndication , "NATMVCI" }, { IndicationMessage_userInput , "UII" }, { IndicationMessage_h2250MaximumSkewIndication , "H2250MSI" }, { IndicationMessage_mcLocationIndication , "MCLI" }, { IndicationMessage_conferenceIndication , "CI" }, { IndicationMessage_vendorIdentification , "VI" }, { IndicationMessage_functionNotSupported , "FNS" }, { IndicationMessage_multilinkIndication , "MultilinkIndication" }, { IndicationMessage_logicalChannelRateRelease , "LCRRelease" }, { IndicationMessage_flowControlIndication , "FCIndication" }, { IndicationMessage_mobileMultilinkReconfigurationIndication, "MMRI" }, { IndicationMessage_genericIndication , "GI" }, { 0, NULL } }; static const value_string h245_CommandMessage_short_vals[] = { { CommandMessage_nonStandard , "NSM" }, { CommandMessage_maintenanceLoopOffCommand , "MLOC" }, { CommandMessage_sendTerminalCapabilitySet , "STCS" }, { CommandMessage_encryptionCommand , "EC" }, { CommandMessage_flowControlCommand , "FCC" }, { CommandMessage_endSessionCommand , "ESC" }, { CommandMessage_miscellaneousCommand , "MC" }, { CommandMessage_communicationModeCommand , "CMC" }, { CommandMessage_conferenceCommand , "CC" }, { CommandMessage_h223MultiplexReconfiguration , "H223MR" }, { CommandMessage_newATMVCCommand , "NATMVCC" }, { CommandMessage_mobileMultilinkReconfigurationCommand, "MMRC" }, { CommandMessage_genericCommand , "GC" }, { 0, NULL } }; static const value_string h245_AudioCapability_short_vals[] = { { AudioCapability_nonStandard , "nonStd" }, { AudioCapability_g711Alaw64k , "g711A" }, { AudioCapability_g711Alaw56k , "g711A56k" }, { AudioCapability_g711Ulaw64k , "g711U" }, { AudioCapability_g711Ulaw56k , "g711U56k" }, { AudioCapability_g722_64k , "g722-64k" }, { AudioCapability_g722_56k , "g722-56k" }, { AudioCapability_g722_48k , "g722-48k" }, { AudioCapability_g7231 , "g7231" }, { AudioCapability_g728 , "g728" }, { AudioCapability_g729 , "g729" }, { AudioCapability_g729AnnexA , "g729A" }, { AudioCapability_is11172AudioCapability, "is11172" }, { AudioCapability_is13818AudioCapability, "is13818" }, { AudioCapability_g729wAnnexB , "g729B" }, { AudioCapability_g729AnnexAwAnnexB , "g729AB" }, { AudioCapability_g7231AnnexCCapability , "g7231C" }, { AudioCapability_gsmFullRate , "gsmFR" }, { AudioCapability_gsmHalfRate , "gsmHR" }, { AudioCapability_gsmEnhancedFullRate , "gsmEFR" }, { AudioCapability_genericAudioCapability, "generic" }, { AudioCapability_g729Extensions , "g729Ext" }, { AudioCapability_vbd , "vbd" }, { AudioCapability_audioTelephonyEvent , "audioTelEvent" }, { AudioCapability_audioTone , "audioTone" }, { 0, NULL } }; /* To put the codec type only in COL_INFO when an OLC is read */ const char* codec_type = NULL; static guint32 rfc_number; typedef struct _unicast_addr_t { address addr; guint8 addr_buf[16]; guint32 port; } unicast_addr_t; typedef struct _channel_info_t { gchar data_type_str[32]; unicast_addr_t *upcoming_addr; unicast_addr_t media_addr; unicast_addr_t media_control_addr; unsigned int rfc2198; gboolean srtp_flag; gboolean is_video; } channel_info_t; typedef struct _olc_info_t { guint16 fwd_lc_num; channel_info_t fwd_lc; channel_info_t rev_lc; } olc_info_t; static wmem_map_t* h245_pending_olc_reqs = NULL; static gboolean fast_start = FALSE; static olc_info_t *upcoming_olc = NULL; static channel_info_t *upcoming_channel = NULL; /* NonStandardParameter */ static const char *nsiOID; static guint32 h221NonStandard; static guint32 t35CountryCode; static guint32 t35Extension; static guint32 manufacturerCode; static const value_string h245_RFC_number_vals[] = { { 2190, "RFC 2190 - H.263 Video Streams" }, { 2198, "RFC 2198 - RTP Payload for Redundant Audio Data" }, { 2429, "RFC 2429 - 1998 Version of ITU-T Rec. H.263 Video (H.263+)" }, { 3016, "RFC 3016 - RTP Payload Format for MPEG-4 Audio/Visual Streams" }, { 3267, "RFC 3267 - Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB)" }, { 3984, "RFC 3984 - RTP Payload Format for H.264 Video" }, { 0, NULL } }; /* Table 7/H.239 subMessageIdentifier values */ static const value_string h245_h239subMessageIdentifier_vals[] = { { 1, "flowControlReleaseRequest" }, { 2, "flowControlReleaseResponse" }, { 3, "presentationTokenRequest" }, { 4, "presentationTokenResponse" }, { 5, "presentationTokenRelease" }, { 6, "presentationTokenIndicateOwner" }, { 0, NULL } }; /* h223 multiplex codes */ static h223_set_mc_handle_t h223_set_mc_handle = NULL; h223_mux_element *h223_me=NULL; guint8 h223_mc=0; void h245_set_h223_set_mc_handle( h223_set_mc_handle_t handle ) { h223_set_mc_handle = handle; } /* h223 logical channels */ typedef struct { h223_lc_params *fw_channel_params; h223_lc_params *rev_channel_params; } h223_pending_olc; static wmem_map_t* h223_pending_olc_reqs[] = { NULL, NULL }; static dissector_handle_t h245_lc_dissector; static guint16 h245_lc_temp; static guint16 h223_fw_lc_num; static guint16 h223_rev_lc_num; static h223_lc_params *h223_lc_params_temp; static h223_lc_params *h223_fw_lc_params; static h223_lc_params *h223_rev_lc_params; static h223_add_lc_handle_t h223_add_lc_handle = NULL; static void h223_lc_init( void ) { h223_lc_params_temp = NULL; h245_lc_dissector = NULL; h223_fw_lc_num = 0; } void h245_set_h223_add_lc_handle( h223_add_lc_handle_t handle ) { h223_add_lc_handle = handle; } static const gchar *gen_olc_key(guint16 lc_num, address *dst_addr, address *src_addr, wmem_allocator_t *scope) { return wmem_strdup_printf(scope, "%s/%s/%u", address_to_str(scope, dst_addr), address_to_str(scope, src_addr), lc_num); } static void update_unicast_addr(unicast_addr_t *req_addr, unicast_addr_t *ack_addr) { if (ack_addr->addr.type!=AT_NONE && ack_addr->port!=0) { memcpy(req_addr->addr_buf, ack_addr->addr_buf, sizeof(req_addr->addr_buf)); set_address(&req_addr->addr, ack_addr->addr.type, ack_addr->addr.len, req_addr->addr_buf); req_addr->port = ack_addr->port; } } static void h245_setup_channels(packet_info *pinfo, channel_info_t *upcoming_channel_lcl) { rtp_dyn_payload_t *rtp_dyn_payload = NULL; struct srtp_info *dummy_srtp_info = NULL; if (!upcoming_channel_lcl) return; /* T.38 */ if (!strcmp(upcoming_channel_lcl->data_type_str, "t38fax")) { if (upcoming_channel_lcl->media_addr.addr.type!=AT_NONE && upcoming_channel_lcl->media_addr.port!=0) { t38_add_address(pinfo, &upcoming_channel_lcl->media_addr.addr, upcoming_channel_lcl->media_addr.port, 0, "H245", pinfo->num); } return; } /* (S)RTP, (S)RTCP */ if (upcoming_channel_lcl->rfc2198 > 0) { rtp_dyn_payload = rtp_dyn_payload_new(); rtp_dyn_payload_insert(rtp_dyn_payload, upcoming_channel_lcl->rfc2198, "red", 8000, 1); } if (upcoming_channel_lcl->srtp_flag) { dummy_srtp_info = wmem_new0(wmem_file_scope(), struct srtp_info); } /* DEBUG ws_warning("h245_setup_channels media_addr.addr.type %u port %u",upcoming_channel_lcl->media_addr.addr.type, upcoming_channel_lcl->media_addr.port ); */ if (upcoming_channel_lcl->media_addr.addr.type!=AT_NONE && upcoming_channel_lcl->media_addr.port!=0) { srtp_add_address(pinfo, PT_UDP, &upcoming_channel_lcl->media_addr.addr, upcoming_channel_lcl->media_addr.port, 0, "H245", pinfo->num, upcoming_channel_lcl->is_video , rtp_dyn_payload, dummy_srtp_info, NULL); } if (upcoming_channel_lcl->media_control_addr.addr.type!=AT_NONE && upcoming_channel_lcl->media_control_addr.port!=0 && rtcp_handle) { srtcp_add_address(pinfo, &upcoming_channel_lcl->media_control_addr.addr, upcoming_channel_lcl->media_control_addr.port, 0, "H245", pinfo->num, dummy_srtp_info); } } /* Prints formated information column of h245 messages. Note that global variables * "h245_shorttypes" and "info_col_fmt_prepend" are used to decide formating preferences */ static void print_info_column(column_info *cinfo, const gint32 *value, const value_string *msg_vals, const value_string *short_msg_vals) { const value_string *vals; if (h245_shorttypes == FALSE || short_msg_vals == NULL) { vals = msg_vals; } else { vals = short_msg_vals; } if (info_col_fmt_prepend == FALSE) { col_append_fstr(cinfo, COL_INFO, "%s ", val_to_str_const(*value, vals, "<unknown>")); } else { col_prepend_fstr(cinfo, COL_INFO, "%s ", val_to_str_const(*value, vals, "<unknown>")); } } /* Initialize the protocol and registered fields */ static int proto_h245 = -1; #include "packet-h245-hf.c" /* Initialize the subtree pointers */ static int ett_h245 = -1; static int ett_h245_returnedFunction = -1; #include "packet-h245-ett.c" /* Forward declarations */ static int dissect_h245_MultimediaSystemControlMessage(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_); static void reset_h245_pi(void *dummy _U_) { h245_pi = NULL; /* Make sure we don't leave pinfo->pool memory lying around */ } #include "packet-h245-fn.c" static int dissect_h245(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { /* * MultimediaSystemControlMessage_handle is the handle for * dissect_h245_h245, so we don't want to do any h245_pi or tap stuff here. */ dissect_tpkt_encap(tvb, pinfo, parent_tree, h245_reassembly, MultimediaSystemControlMessage_handle); return tvb_captured_length(tvb); } static int dissect_h245_h245(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { proto_item *it; proto_tree *tr; guint32 offset=0; asn1_ctx_t asn1_ctx; fast_start = FALSE; /* Clean up from any previous packet dissection */ upcoming_olc = NULL; upcoming_channel = NULL; codec_type = NULL; col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME); it=proto_tree_add_protocol_format(parent_tree, proto_h245, tvb, 0, -1, PSNAME); tr=proto_item_add_subtree(it, ett_h245); /* assume that whilst there is more tvb data, there are more h245 commands */ while ( tvb_reported_length_remaining( tvb, offset>>3 )>0 ){ CLEANUP_PUSH(reset_h245_pi, NULL); h245_pi=wmem_new(pinfo->pool, h245_packet_info); init_h245_packet_info(h245_pi); asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo); offset = dissect_h245_MultimediaSystemControlMessage(tvb, offset, &asn1_ctx, tr, hf_h245_pdu_type); tap_queue_packet(h245dg_tap, pinfo, h245_pi); offset = (offset+0x07) & 0xfffffff8; CLEANUP_CALL_AND_POP; } return tvb_captured_length(tvb); } void dissect_h245_FastStart_OLC(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, char *codec_str) { fast_start = TRUE; /* Clean up from any previous packet dissection */ upcoming_olc = NULL; upcoming_channel = NULL; codec_type = NULL; dissect_OpenLogicalChannel_PDU(tvb, pinfo, tree, NULL); if (h245_pi != NULL) h245_pi->msg_type = H245_OpenLogChn; if (codec_str && codec_type){ (void) g_strlcpy(codec_str, codec_type, 50); } } /*--- proto_register_h245 -------------------------------------------*/ void proto_register_h245(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_h245_pdu_type, { "PDU Type", "h245.pdu_type", FT_UINT32, BASE_DEC, VALS(h245_MultimediaSystemControlMessage_vals), 0, "Type of H.245 PDU", HFILL }}, { &hf_h245Manufacturer, { "H.245 Manufacturer", "h245.Manufacturer", FT_UINT32, BASE_HEX, VALS(H221ManufacturerCode_vals), 0, "h245.H.221 Manufacturer", HFILL }}, { &hf_h245_subMessageIdentifier_standard, { "subMessageIdentifier", "h245.subMessageIdentifier.standard", FT_UINT32, BASE_DEC, VALS(h245_h239subMessageIdentifier_vals), 0, NULL, HFILL }}, { &hf_h245_debug_dissector_try_string, { "*** DEBUG dissector_try_string", "h245.debug.dissector_try_string", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, #include "packet-h245-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_h245, &ett_h245_returnedFunction, #include "packet-h245-ettarr.c" }; module_t *h245_module; /* Register protocol */ proto_h245 = proto_register_protocol(PNAME, PSNAME, PFNAME); h223_pending_olc_reqs[P2P_DIR_SENT] = wmem_map_new_autoreset(wmem_epan_scope(), wmem_file_scope(), g_direct_hash, g_direct_equal ); h223_pending_olc_reqs[P2P_DIR_RECV] = wmem_map_new_autoreset(wmem_epan_scope(), wmem_file_scope(), g_direct_hash, g_direct_equal ); h245_pending_olc_reqs = wmem_map_new_autoreset(wmem_epan_scope(), wmem_file_scope(), wmem_str_hash, g_str_equal); register_init_routine(h223_lc_init); /* Register fields and subtrees */ proto_register_field_array(proto_h245, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); /* From Ronnie Sahlbergs original H245 dissector */ h245_module = prefs_register_protocol(proto_h245, NULL); prefs_register_bool_preference(h245_module, "reassembly", "Reassemble H.245 messages spanning multiple TCP segments", "Whether the H.245 dissector should reassemble messages spanning multiple TCP segments." " To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.", &h245_reassembly); prefs_register_bool_preference(h245_module, "shorttypes", "Show short message types", "Whether the dissector should show short names or the long names from the standard", &h245_shorttypes); prefs_register_bool_preference(h245_module, "prepand", "Show h245 info in reversed order", "Whether the dissector should print items of h245 Info column in reversed order", &info_col_fmt_prepend); MultimediaSystemControlMessage_handle = register_dissector("h245dg", dissect_h245_h245, proto_h245); h245_handle = register_dissector("h245", dissect_h245, proto_h245); nsp_object_dissector_table = register_dissector_table("h245.nsp.object", "H.245 NonStandardParameter (object)", proto_h245, FT_STRING, STRING_CASE_SENSITIVE); nsp_h221_dissector_table = register_dissector_table("h245.nsp.h221", "H.245 NonStandardParameter (h221)", proto_h245, FT_UINT32, BASE_HEX); gef_name_dissector_table = register_dissector_table("h245.gef.name", "H.245 Generic Extensible Framework Name", proto_h245, FT_STRING, STRING_CASE_SENSITIVE); gef_content_dissector_table = register_dissector_table("h245.gef.content", "H.245 Generic Extensible Framework Content", proto_h245, FT_STRING, STRING_CASE_SENSITIVE); h245_tap = register_tap("h245"); h245dg_tap = register_tap("h245dg"); oid_add_from_string("h239ControlCapability","0.0.8.239.1.1"); oid_add_from_string("h239ExtendedVideoCapability","0.0.8.239.1.2"); oid_add_from_string("generic-message","0.0.8.239.2"); oid_add_from_string("h245 version 3","0.0.8.245.0.3"); oid_add_from_string("h245 version 4","0.0.8.245.0.4"); oid_add_from_string("h245 version 5","0.0.8.245.0.5"); oid_add_from_string("h245 version 6","0.0.8.245.0.6"); oid_add_from_string("h245 version 7","0.0.8.245.0.7"); oid_add_from_string("h245 version 8","0.0.8.245.0.8"); oid_add_from_string("h245 version 9","0.0.8.245.0.9"); oid_add_from_string("h245 version 10","0.0.8.245.0.10"); oid_add_from_string("h245 version 11","0.0.8.245.0.11"); oid_add_from_string("h245 version 12","0.0.8.245.0.12"); oid_add_from_string("h245 version 13","0.0.8.245.0.13"); /* This capability is defined in Annex E. */ oid_add_from_string("ISO/IEC 14496-2 MPEG-4 video","0.0.8.245.1.0.0"); /* This capability is defined in Annex H. */ oid_add_from_string("ISO/IEC 14496-3 MPEG-4 audio","0.0.8.245.1.1.0"); /* This capability is defined in Annex I. */ oid_add_from_string("AMR","0.0.8.245.1.1.1"); /* This capability is defined in Annex J. */ oid_add_from_string("acelp","0.0.8.245.1.1.2"); /* This capability is defined in Annex K. */ oid_add_from_string("us1","0.0.8.245.1.1.3"); /* This capability is defined in Annex L. */ oid_add_from_string("is127evrc","0.0.8.245.1.1.4"); /* This capability is defined in Annex M. */ oid_add_from_string("ISO/IEC 13818-7","0.0.8.245.1.1.5"); /* This capability is defined in Annex N. */ oid_add_from_string("rfc3389","0.0.8.245.1.1.6"); /* This capability is defined in Annex O. */ oid_add_from_string("L-16","0.0.8.245.1.1.7"); /* This capability is defined in Annex P. */ oid_add_from_string("bounded-audio-stream","0.0.8.245.1.1.8"); /* This capability is defined in Annex R. */ oid_add_from_string("AMR-NB","0.0.8.245.1.1.9"); /* This capability is defined in Annex R. */ oid_add_from_string("AMR-WB","0.0.8.245.1.1.10"); /* This capability is defined in Annex S. */ oid_add_from_string("ilbc","0.0.8.245.1.1.11"); oid_add_from_string("ISO/IEC 14496-1","0.0.8.245.1.2.0"); oid_add_from_string("Nx64","0.0.8.245.1.2.1"); oid_add_from_string("logical-channel-bit-ratemanagement","0.0.8.245.1.3.0"); oid_add_from_string("h264 generic-capabilities","0.0.8.241.0.0.1"); oid_add_from_string("iPpacketization_h241AnnexA(single NAL unit mode)","0.0.8.241.0.0.0.0"); oid_add_from_string("iPpacketization_RFC3984NonInterleaved","0.0.8.241.0.0.0.1"); oid_add_from_string("iPpacketization_RFC3984Interleaved","0.0.8.241.0.0.0.2"); } /*--- proto_reg_handoff_h245 ---------------------------------------*/ void proto_reg_handoff_h245(void) { rtcp_handle = find_dissector("rtcp"); data_handle = find_dissector("data"); h263_handle = find_dissector("h263data"); amr_handle = find_dissector("amr_if2_nb"); dissector_add_for_decode_as_with_preference("tcp.port", h245_handle); dissector_add_for_decode_as_with_preference("udp.port", MultimediaSystemControlMessage_handle); } static void init_h245_packet_info(h245_packet_info *pi) { if(pi == NULL) { return; } pi->msg_type = H245_OTHER; pi->frame_label[0] = '\0'; snprintf(pi->comment, sizeof(pi->comment), "H245 "); }
C/C++
wireshark/epan/dissectors/asn1/h245/packet-h245-template.h
/* packet-h245.h * Routines for h245 packet dissection * Copyright 2005, Anders Broman <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_H245_H #define PACKET_H245_H #include "ws_symbol_export.h" typedef enum _h245_msg_type { H245_TermCapSet, H245_TermCapSetAck, H245_TermCapSetRjc, H245_TermCapSetRls, H245_OpenLogChn, H245_OpenLogChnCnf, H245_OpenLogChnAck, H245_OpenLogChnRjc, H245_CloseLogChn, H245_CloseLogChnAck, H245_MastSlvDet, H245_MastSlvDetAck, H245_MastSlvDetRjc, H245_MastSlvDetRls, H245_OTHER } h245_msg_type; typedef struct _h245_packet_info { h245_msg_type msg_type; /* type of message */ gchar frame_label[50]; /* the Frame label used by graph_analysis, what is a abreviation of cinfo */ gchar comment[50]; /* the Frame Comment used by graph_analysis, what is a message desc */ } h245_packet_info; /* * h223 LC info */ typedef enum { al_nonStandard, al1Framed, al1NotFramed, al2WithoutSequenceNumbers, al2WithSequenceNumbers, al3, /*...*/ /* al?M: unimplemented annex C adaptation layers */ al1M, al2M, al3M } h223_al_type; typedef struct { guint8 control_field_octets; guint32 send_buffer_size; } h223_al3_params; typedef struct { h223_al_type al_type; gpointer al_params; gboolean segmentable; dissector_handle_t subdissector; } h223_lc_params; typedef enum { H245_nonStandardDataType, H245_nullData, H245_videoData, H245_audioData, H245_data, H245_encryptionData, /*...,*/ H245_h235Control, H245_h235Media, H245_multiplexedStream, H245_redundancyEncoding, H245_multiplePayloadStream, H245_fec } h245_lc_data_type_enum; typedef struct { h245_lc_data_type_enum data_type; gpointer params; } h245_lc_data_type; /* * h223 MUX info */ typedef struct _h223_mux_element h223_mux_element; struct _h223_mux_element { h223_mux_element* sublist; /* if NULL, use vc instead */ guint16 vc; guint16 repeat_count; /* 0 == untilClosingFlag */ h223_mux_element* next; }; #include <epan/packet_info.h> #include "packet-per.h" typedef void (*h223_set_mc_handle_t) ( packet_info* pinfo, guint8 mc, h223_mux_element* me); WS_DLL_PUBLIC void h245_set_h223_set_mc_handle( h223_set_mc_handle_t handle ); typedef void (*h223_add_lc_handle_t) ( packet_info* pinfo, guint16 lc, h223_lc_params* params); WS_DLL_PUBLIC void h245_set_h223_add_lc_handle( h223_add_lc_handle_t handle ); #include "packet-h245-exp.h" void dissect_h245_FastStart_OLC(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, char *codec_str); #endif /* PACKET_H245_H */
Text
wireshark/epan/dissectors/asn1/h248/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h248 ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST h248v3.asn h248v1support.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) ASN2WRS()
Configuration
wireshark/epan/dissectors/asn1/h248/h248.cnf
# h248.cnf # H.248 conformation file #.MODULE_IMPORT #.EXPORTS #.PDU #.NO_EMIT MtpAddress PkgdName ErrorCode PropertyID SignalName SigParameterName SigParamValue EventName EventParameterName EventParamValue ContextID EventParamValueV1 SigParamValueV1 #.TYPE_RENAME IndAudMediaDescriptor/streams IndAudMediaDescriptorStreams ActionRequest/contextId ContextId ActionReply/contextId ContextId StatisticsParameter/statName StatName StatisticsParameter/statValue StatValue PropertyParm/propertyName PropertyName EventParameter/extraInfo EventPar_extraInfo PropertyParm/extraInfo PropParm_extraInfo ContextRequest/iepscallind Iepscallind_BOOL #.FIELD_RENAME IP4Address/address iP4Address IP6Address/address iP6Address ContextAttrAuditRequest/emergency cAAREmergency ContextAttrAuditRequest/priority cAARPriority SecondRequestedEvent/eventAction secondaryEventAction TerminationStateDescriptor/eventBufferControl tSEventBufferControl SecondEventsDescriptor/eventList secondaryEventList IndAudEventBufferDescriptor/eventName iAEBDEventName TerminationID/id terminationId IndAudStreamParms/localControlDescriptor iASPLocalControlDescriptor IndAudStreamParms/localDescriptor iASPLocalDescriptor LocalControlDescriptor/propertyParms lCDpropertyParms TerminationStateDescriptor/propertyParms tSDpropertyParms MediaDescriptor/streams/oneStream mediaDescriptorOneStream MediaDescriptor/streams/multiStream mediaDescriptorMultiStream MediaDescriptor/streams/multiStream/_item mediaDescriptorMultiStream_item DomainName/name domName IndAudEventsDescriptor/pkgdName iAEDPkgdName IndAudLocalRemoteDescriptor/propGrps iAPropertyGroup IndAudLocalControlDescriptor/propertyParms indAudPropertyParms IndAudTerminationStateDescriptor/propertyParms indAudPropertyParms IndAudLocalControlDescriptor/reserveGroup iALCDReserveGroup IndAudLocalControlDescriptor/reserveValue iALCDReserveValue IndAudLocalControlDescriptor/streamMode iALCDStreamMode IndAudStreamDescriptor/streamParms indAudStreamParms IndAudMediaDescriptor/termStateDescr indAudTerminationStateDescriptor IndAudSignal/signalName iASignalName IndAudSeqSigList/signalList iASignalList IndAudSignalsDescriptor/signal indAudSignal IndAudSignalsDescriptor/seqSigList indAudSeqSigList IndAudTerminationStateDescriptor/serviceState iATSDServiceState IndAudStreamParms/remoteDescriptor iASPRemoteDescriptor PropertyParm/value propertyParamValue IndAudMediaDescriptor/streams indAudMediaDescriptorStreams AmmRequest/terminationID terminationIDList AmmsReply/terminationID terminationIDList AmmDescriptor/statisticsDescriptor aDstatisticsDescriptor AuditReturnParameter/statisticsDescriptor aRPstatisticsDescriptor StreamParms/statisticsDescriptor sPstatisticsDescriptor SubtractRequest/terminationID terminationIDList NotifyRequest/terminationID terminationIDList NotifyReply/terminationID terminationIDList ServiceChangeRequest/terminationID terminationIDList ServiceChangeReply/terminationID terminationIDList IndAudStatisticsDescriptor/statName iAStatName EventParameter/extraInfo eventPar_extraInfo PropertyParm/extraInfo propParm_extraInfo ContextRequest/iepscallind iepscallind_BOOL TransactionRequest/transactionId transactionId SegmentReply/transactionId seg_rep_transactionId TransactionReply/transactionId trep_transactionId TransactionPending/transactionId tpend_transactionId EventParameterV1/value event_param_value SigParameterV1/value sig_param_value AuditReplyV1/auditResult audit_result #.FIELD_ATTR IP4Address/address ABBREV=iP4Address IP6Address/address ABBREV=iP6Address TransactionRequest/transactionId ABBREV=transactionRequest.transactionId SegmentReply/transactionId ABBREV=segmentreply.transactionId TransactionReply/transactionId ABBREV=transactionreply.transactionId TransactionPending/transactionId ABBREV=transactionpending.transactionId DomainName/name ABBREV=domainname TerminationID/id ABBREV=terminationId PropertyParm/value ABBREV=propertyParamValue EventParameterV1/value ABBREV=event_param_value SigParameterV1/value ABBREV=sig_param_value #.FN_HDR Message curr_info.msg = gcp_msg(actx->pinfo,tvb_raw_offset(tvb),keep_persistent_data); #.END #.FN_FTR Message col_add_str(actx->pinfo->cinfo, COL_INFO, gcp_msg_to_str(curr_info.msg,actx->pinfo->pool,keep_persistent_data)); if (keep_persistent_data) gcp_analyze_msg(h248_tree, actx->pinfo, tvb, curr_info.msg, &h248_arrel, &ei_h248_errored_command); #.END #.FN_BODY Message/version VAL_PTR = &h248_version %(DEFAULT_BODY)s #.END #.FN_BODY TransactionRequest/transactionId guint32 trx_id = 0; offset = dissect_h248_trx_id(implicit_tag, actx->pinfo, tree, tvb, offset, &trx_id); curr_info.trx = gcp_trx(curr_info.msg, trx_id, GCP_TRX_REQUEST, actx->pinfo, keep_persistent_data); error_code = 0; #.END #.FN_BODY TransactionPending/transactionId guint32 trx_id = 0; offset = dissect_h248_trx_id(implicit_tag, actx->pinfo, tree, tvb, offset, &trx_id); curr_info.trx = gcp_trx(curr_info.msg, trx_id, GCP_TRX_PENDING, actx->pinfo, keep_persistent_data); error_code = 0; #.FN_BODY TransactionReply/transactionId guint32 trx_id = 0; offset = dissect_h248_trx_id(implicit_tag, actx->pinfo, tree, tvb, offset, &trx_id); curr_info.trx = gcp_trx(curr_info.msg, trx_id, GCP_TRX_REPLY, actx->pinfo, keep_persistent_data); error_code = 0; #.FN_BODY SegmentReply/transactionId guint32 trx_id = 0; offset = dissect_h248_trx_id(implicit_tag, actx->pinfo, tree, tvb, offset, &trx_id); curr_info.trx = gcp_trx(curr_info.msg, trx_id, GCP_TRX_ACK, actx->pinfo, keep_persistent_data); error_code = 0; #.FN_BODY ActionRequest/contextId guint32 ctx_id = 0; offset = dissect_h248_ctx_id(implicit_tag, actx->pinfo, tree, tvb, offset, &ctx_id); curr_info.ctx = gcp_ctx(curr_info.msg,curr_info.trx,ctx_id,actx->pinfo,keep_persistent_data); curr_info.cmd = NULL; curr_info.term = NULL; #.END #.FN_FTR ActionReply if (!curr_info.cmd) { curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); } #.END #.FN_HDR Command/addReq curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_ADD_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR Command/addReq curr_info.cmd = NULL; #.END #.FN_HDR Command/moveReq curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_MOVE_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR Command/moveReq curr_info.cmd = NULL; #.END #.FN_HDR Command/modReq curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_MOD_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR Command/modReq curr_info.cmd = NULL; #.END #.FN_HDR Command/subtractReq curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_SUB_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR Command/subtractReq curr_info.cmd = NULL; #.END #.FN_HDR Command/auditCapRequest curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_AUDITCAP_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR Command/auditCapRequest curr_info.cmd = NULL; #.END #.FN_HDR Command/auditValueRequest curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_AUDITVAL_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR Command/auditValueRequest curr_info.cmd = NULL; #.END #.FN_HDR Command/notifyReq curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_NOTIFY_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR Command/notifyReq curr_info.cmd = NULL; #.END #.FN_HDR ServiceChangeRequest curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_SVCCHG_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR ServiceChangeRequest curr_info.cmd = NULL; #.END #.FN_HDR ContextRequest/topologyReq curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_TOPOLOGY_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR ContextRequest/topologyReq curr_info.cmd = NULL; #.END #.FN_HDR ActionRequest/contextAttrAuditReq curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_CTX_ATTR_AUDIT_REQ,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_FTR ActionRequest/contextAttrAuditReq curr_info.cmd = NULL; #.END #.FN_HDR CommandReply/addReply curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_ADD_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_HDR CommandReply/moveReply curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_MOVE_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_HDR CommandReply/modReply curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_MOD_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_HDR CommandReply/subtractReply curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_SUB_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_HDR CommandReply/notifyReply curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_NOTIFY_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_HDR ServiceChangeReply curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_SVCCHG_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_HDR CommandReply/auditCapReply curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_AUDITCAP_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_BODY CommandReply/auditCapReply /* h248v1 support */ if(h248_version > 1) { %(DEFAULT_BODY)s } else { /* call V1 of the dissector */ offset = dissect_h248_AuditReplyV1(implicit_tag, tvb, offset, actx, tree, hf_index); } #.END #.FN_HDR CommandReply/auditValueReply curr_info.cmd = gcp_cmd(curr_info.msg,curr_info.trx,curr_info.ctx,GCP_CMD_AUDITVAL_REPLY,offset,actx->pinfo,keep_persistent_data); H248_TAP(); #.END #.FN_BODY CommandReply/auditValueReply /* h248v1 support */ if(h248_version > 1) { %(DEFAULT_BODY)s } else { /* call V1 of the dissector */ offset = dissect_h248_AuditReplyV1(implicit_tag, tvb, offset, actx, tree, hf_index); } #.END #.FN_BODY AuditReplyV1 /* h248v1 support */ offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, AuditReplyV1_sequence, hf_h248_auditValueReplyV1, ett_h248_AuditReplyV1); #.END #.FN_BODY ErrorDescriptor/errorCode offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index, &error_code); expert_add_info(actx->pinfo, actx->created_item, &ei_h248_errored_command); if (curr_info.cmd) { gcp_cmd_set_error(curr_info.cmd,error_code); } else if (curr_info.trx) { gcp_trx_set_error(curr_info.trx,error_code); } #.END #.FN_HDR TerminationID curr_info.term = wmem_new0(actx->pinfo->pool, gcp_term_t); wild_term = GCP_WILDCARD_NONE; #.END #.FN_BODY WildcardField tvbuff_t* new_tvb; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &new_tvb); tree = proto_item_add_subtree(actx->created_item,ett_wildcard); proto_tree_add_item(tree,hf_h248_term_wild_type,new_tvb,0,1,ENC_BIG_ENDIAN); proto_tree_add_item(tree,hf_h248_term_wild_level,new_tvb,0,1,ENC_BIG_ENDIAN); proto_tree_add_item(tree,hf_h248_term_wild_position,new_tvb,0,1,ENC_BIG_ENDIAN); wild_term = tvb_get_guint8(new_tvb,0) & 0x80 ? GCP_WILDCARD_CHOOSE : GCP_WILDCARD_ALL; /* limitation: assume only one wildcard is used */ wild_card = tvb_get_guint8(new_tvb,0); #.END #.FN_BODY TerminationID/id tvbuff_t* new_tvb; h248_term_info_t term_info; term_info.wild_card = wild_card; term_info.str = NULL; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &new_tvb); if (new_tvb) { curr_info.term->len = tvb_reported_length(new_tvb); curr_info.term->type = 0; /* unknown */ if (h248_term_handle) { call_dissector_with_data(h248_term_handle, new_tvb, actx->pinfo, tree, &term_info); wild_card = 0xFF; } if (curr_info.term->len) { curr_info.term->buffer = (guint8 *)tvb_memdup(actx->pinfo->pool,new_tvb,0,curr_info.term->len); if(term_info.str){ curr_info.term->str = wmem_strdup_printf(actx->pinfo->pool, "%s %s", bytes_to_str_punct(actx->pinfo->pool,curr_info.term->buffer,curr_info.term->len, 0), term_info.str); }else{ curr_info.term->str = bytes_to_str_punct(actx->pinfo->pool,curr_info.term->buffer,curr_info.term->len, 0); } } curr_info.term = gcp_cmd_add_term(curr_info.msg, curr_info.trx, curr_info.cmd, curr_info.term, wild_term, actx->pinfo, keep_persistent_data); } else { curr_info.term->len = 0; curr_info.term->buffer = (guint8*)wmem_strdup(actx->pinfo->pool, ""); curr_info.term->str = wmem_strdup(actx->pinfo->pool, "?"); } #.END #.FN_BODY SCreasonValueOctetStr VAL_PTR = &parameter_tvb tvbuff_t *parameter_tvb; %(DEFAULT_BODY)s if (!parameter_tvb) return offset; dissect_h248_ServiceChangeReasonStr(FALSE, parameter_tvb, 0, actx, tree, hf_h248_serviceChangeReasonStr); #.END #.FN_BODY EventParameter /* H248 v1 support */ if (h248_version > 1) { %(DEFAULT_BODY)s } else { offset = dissect_h248_EventParameterV1( implicit_tag, tvb, offset, actx, tree, hf_index); } #.END #.FN_BODY SigParameter /* H248 v1 support */ if (h248_version > 1) { %(DEFAULT_BODY)s } else { offset = dissect_h248_SigParameterV1( implicit_tag, tvb, offset, actx, tree, hf_index); } #.END #.TYPE_ATTR IP4Address/address TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL IP6Address/address TYPE = FT_IPv6 DISPLAY = BASE_NONE STRINGS = NULL ActionRequest/contextId TYPE = FT_UINT32 DISPLAY = BASE_HEX STRINGS = NULL ActionReply/contextId TYPE = FT_UINT32 DISPLAY = BASE_HEX STRINGS = NULL ErrorDescriptor/errorCode TYPE = FT_UINT32 DISPLAY = BASE_DEC|BASE_EXT_STRING STRINGS = &h248_reasons_ext
ASN.1
wireshark/epan/dissectors/asn1/h248/h248v1support.asn
-- Required for support for h248v1 -- -- This file represents the differences between h248v1 and the h248v3, the current version -- This file is included in the Makefile generate_dissectors and related tasks necessary -- to generate epan/dissectors/packet-h248.[ch] H238V1-SUPPORT DEFINITIONS IMPLICIT TAGS ::= BEGIN -- V1 version of AuditReply AuditReplyV1 ::= SEQUENCE { terminationID [0] TerminationID, auditResult [1] AuditResultV1 } -- V1 Version of AuditResult AuditResultV1 ::= CHOICE { contectAuditResult [0] TerminationID, terminationAuditResult [1] TerminationAudit } -- V1 EventParameterV1 ::= SEQUENCE { eventParamterName [0] EventParameterName, value [1] EventParamValueV1 } -- V1 SigParameterV1 ::= SEQUENCE { sigParameterName [0] SigParameterName, value [1] SigParamValueV1 -- value [1] ValueV1 } -- ValueV1 ::= OCTET STRING EventParamValueV1 ::= OCTET STRING SigParamValueV1 ::= OCTET STRING END
ASN.1
wireshark/epan/dissectors/asn1/h248/h248v3.asn
MEDIA-GATEWAY-CONTROL {itu-t(0) recommendation(0) h(8) h248(248) modules(0) media-gateway-control(0) version3(3)} -- -- Module MEDIA-GATEWAY-CONTROL (H.248.1:09/2005) -- See also ITU-T H.248.1 v3 (2005) Amend. 1 (05/2008) -- --DEFINITIONS AUTOMATIC TAGS ::= --BEGIN -- Has been modified to pass through the ASN2ETH compiler -- (we dont support automatic tags yet so the tags had to be added by -- hand) DEFINITIONS IMPLICIT TAGS ::= BEGIN MegacoMessage ::= SEQUENCE { authHeader [0] AuthenticationHeader OPTIONAL, mess [1] Message } AuthenticationHeader ::= SEQUENCE { secParmIndex [0] SecurityParmIndex, seqNum [1] SequenceNum, ad [2] AuthData } SecurityParmIndex ::= OCTET STRING(SIZE(4)) SequenceNum ::= OCTET STRING(SIZE(4)) AuthData ::= OCTET STRING (SIZE (12..32)) Message ::= SEQUENCE { version [0] INTEGER(0..99), -- The version of the protocol defined here is equal to 3. mId [1] MId, -- Name/address of message originator messageBody [2] CHOICE { messageError [0] ErrorDescriptor, transactions [1] SEQUENCE OF Transaction }, ... } MId ::= CHOICE { ip4Address [0] IP4Address, ip6Address [1] IP6Address, domainName [2] DomainName, deviceName [3] PathName, mtpAddress [4] MtpAddress, -- Addressing structure of mtpAddress: -- 25 - 15 0 -- | PC | NI | -- 24 - 14 bits 2 bits -- NOTE - 14 bits are defined for international use. -- Two national options exist where the point code is 16 or 24 bits. -- To octet align the mtpAddress, the MSBs shall be encoded as 0s. ... } -- Wireshark specific MtpAddress ::= OCTET STRING(SIZE(2..4)) DomainName ::= SEQUENCE { name [0] IA5String, -- The name starts with an alphanumeric digit followed by a sequence -- of alphanumeric digits, hyphens and dots. No two dots shall occur -- consecutively. portNumber [1] INTEGER(0..65535) OPTIONAL } IP4Address ::= SEQUENCE { address [0] OCTET STRING (SIZE(4)), portNumber [1] INTEGER(0..65535) OPTIONAL } IP6Address ::= SEQUENCE { address [0] OCTET STRING (SIZE(16)), portNumber [1] INTEGER(0..65535) OPTIONAL } PathName ::= IA5String(SIZE (1..64)) -- See A.3 Transaction ::= CHOICE { transactionRequest [0] TransactionRequest, transactionPending [1] TransactionPending, transactionReply [2] TransactionReply, transactionResponseAck [3] TransactionResponseAck, -- use of response acks is dependent on underlying transport ..., segmentReply [4] SegmentReply } TransactionId ::= INTEGER(0..4294967295) -- 32-bit unsigned integer TransactionRequest ::= SEQUENCE { transactionId [0] TransactionId, actions [1] SEQUENCE OF ActionRequest, ... } TransactionPending ::= SEQUENCE { transactionId [0] TransactionId, ... } TransactionReply ::= SEQUENCE { transactionId [0] TransactionId, immAckRequired [1] NULL OPTIONAL, transactionResult [2] CHOICE { transactionError [0]ErrorDescriptor, actionReplies [1] SEQUENCE OF ActionReply }, ..., segmentNumber [3] SegmentNumber OPTIONAL, segmentationComplete [4] NULL OPTIONAL } SegmentReply ::= SEQUENCE { transactionId [0] TransactionId, segmentNumber [1] SegmentNumber, segmentationComplete [2] NULL OPTIONAL, ... } SegmentNumber ::= INTEGER(0..65535) TransactionResponseAck ::= SEQUENCE OF TransactionAck TransactionAck ::= SEQUENCE { firstAck [0] TransactionId, lastAck [1] TransactionId OPTIONAL } ErrorDescriptor ::= SEQUENCE { errorCode [0] ErrorCode, errorText [1] ErrorText OPTIONAL } ErrorCode ::= INTEGER(0..65535) -- See clause 14 for IANA considerations with respect to error codes ErrorText ::= IA5String ContextID ::= INTEGER(0..4294967295) -- Context NULL Value: 0 -- Context CHOOSE Value: 4294967294 (0xFFFFFFFE) -- Context ALL Value: 4294967295 (0xFFFFFFFF) ActionRequest ::= SEQUENCE { contextId [0] ContextID, contextRequest [1] ContextRequest OPTIONAL, contextAttrAuditReq [2] ContextAttrAuditRequest OPTIONAL, commandRequests [3] SEQUENCE OF CommandRequest } ActionReply ::= SEQUENCE { contextId [0] ContextID, errorDescriptor [1] ErrorDescriptor OPTIONAL, contextReply [2] ContextRequest OPTIONAL, commandReply [3] SEQUENCE OF CommandReply } -- Wireshark Specific ContextIDinList ::= INTEGER(0..4294967295) ContextRequest ::= SEQUENCE { priority [0] INTEGER(0..15) OPTIONAL, emergency [1] BOOLEAN OPTIONAL, topologyReq [2] SEQUENCE OF TopologyRequest OPTIONAL, ..., iepscallind [3] BOOLEAN OPTIONAL, contextProp [4] SEQUENCE OF PropertyParm OPTIONAL, -- Wireshark Specific -- contextList [5] SEQUENCE OF ContextID OPTIONAL contextList [5] SEQUENCE OF ContextIDinList OPTIONAL -- Currently the way that WS tracing code's persistent data is -- organized disallows to relate a request to multiple contexts } -- When returning a contextList, the contextId in the ActionReply construct will -- return the contextId from the associated ActionRequest. ContextAttrAuditRequest ::= SEQUENCE { topology [0] NULL OPTIONAL, emergency [1] NULL OPTIONAL, priority [2] NULL OPTIONAL, ..., iepscallind [3] NULL OPTIONAL, contextPropAud [4] SEQUENCE OF IndAudPropertyParm OPTIONAL, selectpriority [5] INTEGER(0..15) OPTIONAL, -- to select given priority selectemergency [6] BOOLEAN OPTIONAL, -- to select if emergency set/not set (T/F) selectiepscallind [7] BOOLEAN OPTIONAL, -- to select if IEPS set/not set (T/F) selectLogic [8] SelectLogic OPTIONAL -- default is AND } SelectLogic ::= CHOICE { andAUDITSelect [0] NULL, -- all filter conditions satisfied orAUDITSelect [1] NULL, -- at least one filter condition satisfied ... } CommandRequest ::= SEQUENCE { command [0] Command, optional [1] NULL OPTIONAL, wildcardReturn [2] NULL OPTIONAL, ... } Command ::= CHOICE { addReq [0] AmmRequest, moveReq [1] AmmRequest, modReq [2] AmmRequest, -- Add, Move, Modify requests have the same parameters subtractReq [3] SubtractRequest, auditCapRequest [4] AuditRequest, auditValueRequest [5] AuditRequest, notifyReq [6] NotifyRequest, serviceChangeReq [7] ServiceChangeRequest, ... } CommandReply ::= CHOICE { addReply [0] AmmsReply, moveReply [1] AmmsReply, modReply [2] AmmsReply, subtractReply [3] AmmsReply, -- Add, Move, Modify, Subtract replies have the same parameters auditCapReply [4] AuditReply, auditValueReply [5] AuditReply, notifyReply [6] NotifyReply, serviceChangeReply [7] ServiceChangeReply, ... } TopologyRequest ::= SEQUENCE { terminationFrom [0] TerminationID, terminationTo [1] TerminationID, topologyDirection [2] ENUMERATED { bothway(0), isolate(1), oneway(2) }, ..., streamID [3]StreamID OPTIONAL, topologyDirectionExtension [4] ENUMERATED { onewayexternal(0), onewayboth(1), ... } OPTIONAL } AmmRequest ::= SEQUENCE { terminationID [0] TerminationIDList, descriptors [1] SEQUENCE OF AmmDescriptor, -- At most one descriptor of each type (see AmmDescriptor) -- allowed in the sequence. ... } AmmDescriptor ::= CHOICE { mediaDescriptor [0] MediaDescriptor, modemDescriptor [1] ModemDescriptor, muxDescriptor [2] MuxDescriptor, eventsDescriptor [3] EventsDescriptor, eventBufferDescriptor [4] EventBufferDescriptor, signalsDescriptor [5] SignalsDescriptor, digitMapDescriptor [6] DigitMapDescriptor, auditDescriptor [7] AuditDescriptor, ..., statisticsDescriptor [8] StatisticsDescriptor } AmmsReply ::= SEQUENCE { terminationID [0] TerminationIDList, terminationAudit [1]TerminationAudit OPTIONAL, ... } SubtractRequest ::= SEQUENCE { terminationID [0] TerminationIDList, auditDescriptor [1] AuditDescriptor OPTIONAL, ... } AuditRequest ::= SEQUENCE { terminationID [0] TerminationID, auditDescriptor [1] AuditDescriptor, ..., terminationIDList [3] TerminationIDList OPTIONAL } -- terminationID shall contain the first termination in the -- list when using the terminationIDList construct in AuditRequest AuditReply ::= CHOICE { contextAuditResult [0] TerminationIDList, error [1] ErrorDescriptor, auditResult [2] AuditResult, ..., auditResultTermList [3] TermListAuditResult } AuditResult ::= SEQUENCE { terminationID [0] TerminationID, terminationAuditResult [1] TerminationAudit } TermListAuditResult ::= SEQUENCE { terminationIDList [0] TerminationIDList, terminationAuditResult [1] TerminationAudit, ... } TerminationAudit ::= SEQUENCE OF AuditReturnParameter AuditReturnParameter ::= CHOICE { errorDescriptor [0] ErrorDescriptor, mediaDescriptor [1] MediaDescriptor, modemDescriptor [2] ModemDescriptor, muxDescriptor [3] MuxDescriptor, eventsDescriptor [4] EventsDescriptor, eventBufferDescriptor [5] EventBufferDescriptor, signalsDescriptor [6] SignalsDescriptor, digitMapDescriptor [7] DigitMapDescriptor, observedEventsDescriptor [8] ObservedEventsDescriptor, statisticsDescriptor [9] StatisticsDescriptor, packagesDescriptor [10] PackagesDescriptor, emptyDescriptors [11] AuditDescriptor, ... } AuditDescriptor ::= SEQUENCE { auditToken [0] BIT STRING { muxToken(0), modemToken(1), mediaToken(2), eventsToken(3), signalsToken(4), digitMapToken(5), statsToken(6), observedEventsToken(7), packagesToken(8), eventBufferToken(9) } OPTIONAL, ..., auditPropertyToken [1] SEQUENCE OF IndAuditParameter OPTIONAL } IndAuditParameter ::= CHOICE { indaudmediaDescriptor [0] IndAudMediaDescriptor, indaudeventsDescriptor [1] IndAudEventsDescriptor, indaudeventBufferDescriptor [2] IndAudEventBufferDescriptor, indaudsignalsDescriptor [3] IndAudSignalsDescriptor, indauddigitMapDescriptor [4] IndAudDigitMapDescriptor, indaudstatisticsDescriptor [5] IndAudStatisticsDescriptor, indaudpackagesDescriptor [6] IndAudPackagesDescriptor, ... } IndAudMediaDescriptor ::= SEQUENCE { termStateDescr [0] IndAudTerminationStateDescriptor OPTIONAL, streams [1] CHOICE { oneStream [0] IndAudStreamParms, multiStream [1] SEQUENCE OF IndAudStreamDescriptor } OPTIONAL, ... } IndAudStreamDescriptor ::= SEQUENCE { streamID [0] StreamID, streamParms [1] IndAudStreamParms } IndAudStreamParms ::= SEQUENCE { localControlDescriptor [0] IndAudLocalControlDescriptor OPTIONAL, localDescriptor [1] IndAudLocalRemoteDescriptor OPTIONAL, remoteDescriptor [2] IndAudLocalRemoteDescriptor OPTIONAL, ..., statisticsDescriptor [3] IndAudStatisticsDescriptor OPTIONAL } IndAudLocalControlDescriptor ::= SEQUENCE { streamMode [0] NULL OPTIONAL, reserveValue [1] NULL OPTIONAL, reserveGroup [2] NULL OPTIONAL, propertyParms [3] SEQUENCE OF IndAudPropertyParm OPTIONAL, ..., streamModeSel [4] StreamMode OPTIONAL } -- must not have both streamMode and streamModeSel -- if both are present only streamModeSel shall be honoured IndAudPropertyParm ::= SEQUENCE { name [0] PkgdName, ..., propertyParms [1] PropertyParm OPTIONAL } -- to select based on property values -- AND/OR selection logic is specified at context level IndAudLocalRemoteDescriptor ::= SEQUENCE { propGroupID [0] INTEGER(0..65535) OPTIONAL, propGrps [1] IndAudPropertyGroup, ... } IndAudPropertyGroup ::= SEQUENCE OF IndAudPropertyParm IndAudTerminationStateDescriptor ::= SEQUENCE { propertyParms [0] SEQUENCE OF IndAudPropertyParm, eventBufferControl [1] NULL OPTIONAL, serviceState [2] NULL OPTIONAL, ..., serviceStateSel [3] ServiceState OPTIONAL } -- must not have both serviceState and serviceStateSel -- if both are present only serviceStateSel shall be honoured IndAudEventsDescriptor ::= SEQUENCE { requestID [0] RequestID OPTIONAL, pkgdName [1] PkgdName, streamID [2] StreamID OPTIONAL, ... } IndAudEventBufferDescriptor ::= SEQUENCE { eventName [0] PkgdName, streamID [1] StreamID OPTIONAL, ... } IndAudSignalsDescriptor ::=CHOICE { signal [0] IndAudSignal, seqSigList [1] IndAudSeqSigList, ... } IndAudSeqSigList ::= SEQUENCE { id [0] INTEGER(0..65535), signalList [1] IndAudSignal OPTIONAL } IndAudSignal ::= SEQUENCE { signalName [0] PkgdName, streamID [1] StreamID OPTIONAL, ..., signalRequestID [2] RequestID OPTIONAL } IndAudDigitMapDescriptor ::= SEQUENCE { digitMapName [0] DigitMapName OPTIONAL } IndAudStatisticsDescriptor ::= SEQUENCE { statName [0] PkgdName } IndAudPackagesDescriptor ::= SEQUENCE { packageName [0] Name, packageVersion [1] INTEGER(0..99), ... } NotifyRequest ::= SEQUENCE { terminationID [0] TerminationIDList, observedEventsDescriptor [1] ObservedEventsDescriptor, errorDescriptor [2] ErrorDescriptor OPTIONAL, ... } NotifyReply ::= SEQUENCE { terminationID [0] TerminationIDList, errorDescriptor [1] ErrorDescriptor OPTIONAL, ... } ObservedEventsDescriptor ::= SEQUENCE { requestId [0] RequestID, observedEventLst [1] SEQUENCE OF ObservedEvent } ObservedEvent ::= SEQUENCE { eventName [0] EventName, streamID [1] StreamID OPTIONAL, eventParList [2] SEQUENCE OF EventParameter, timeNotation [3] TimeNotation OPTIONAL, ... } -- EventName ::= PkgdName EventName ::= OCTET STRING EventParameter ::= SEQUENCE { -- Wireshark specific -- eventParameterName [0] Name, -- value [1] Value, eventParameterName [0] EventParameterName, eventParamValue [1] EventParamValues, -- end -- For use of extraInfos see the comment related to PropertyParm extraInfo [2] CHOICE { relation [0] Relation, range [1] BOOLEAN, sublist [2] BOOLEAN } OPTIONAL, ... } -- Wireshark specific EventParameterName ::= Name EventParamValues ::= SEQUENCE OF EventParamValue EventParamValue ::= OCTET STRING -- end ServiceChangeRequest ::= SEQUENCE { terminationID [0] TerminationIDList, serviceChangeParms [1] ServiceChangeParm, ... } ServiceChangeReply ::= SEQUENCE { terminationID [0] TerminationIDList, serviceChangeResult [1] ServiceChangeResult, ... } -- For ServiceChangeResult, no parameters are mandatory. Hence the -- distinction between ServiceChangeParm and ServiceChangeResParm. ServiceChangeResult ::= CHOICE { errorDescriptor [0] ErrorDescriptor, serviceChangeResParms [1] ServiceChangeResParm } WildcardField ::= OCTET STRING(SIZE(1)) TerminationID ::= SEQUENCE { wildcard [0] SEQUENCE OF WildcardField, id [1] OCTET STRING(SIZE(1..8)), ... } -- See A.1 for explanation of wildcarding mechanism. -- TerminationID 0xFFFFFFFFFFFFFFFF indicates the Root Termination. TerminationIDList ::= SEQUENCE OF TerminationID MediaDescriptor ::= SEQUENCE { termStateDescr [0] TerminationStateDescriptor OPTIONAL, streams [1] CHOICE { oneStream [0] StreamParms, multiStream [1] SEQUENCE OF StreamDescriptor } OPTIONAL, ... } StreamDescriptor ::= SEQUENCE { streamID [0] StreamID, streamParms [1] StreamParms } StreamParms ::= SEQUENCE { localControlDescriptor [0] LocalControlDescriptor OPTIONAL, localDescriptor [1] LocalRemoteDescriptor OPTIONAL, remoteDescriptor [2] LocalRemoteDescriptor OPTIONAL, ..., statisticsDescriptor [3] StatisticsDescriptor OPTIONAL } LocalControlDescriptor ::= SEQUENCE { streamMode [0] StreamMode OPTIONAL, reserveValue [1] BOOLEAN OPTIONAL, reserveGroup [2] BOOLEAN OPTIONAL, propertyParms [3] SEQUENCE OF PropertyParm, ... } StreamMode ::= ENUMERATED { sendOnly(0), recvOnly(1), sendRecv(2), inactive(3), loopBack(4), ... } -- In PropertyParm, value is a SEQUENCE OF octet string. When sent -- by an MGC the interpretation is as follows: -- empty sequence means CHOOSE -- one element sequence specifies value -- If the sublist field is not selected, a longer sequence means -- "choose one of the values" (i.e., value1 OR value2 OR ...) -- If the sublist field is selected, -- a sequence with more than one element encodes the value of a -- list-valued property (i.e., value1 AND value2 AND ...). -- The relation field may only be selected if the value sequence -- has length 1. It indicates that the MG has to choose a value -- for the property. E.g., x > 3 (using the greaterThan -- value for relation) instructs the MG to choose any value larger -- than 3 for property x. -- The range field may only be selected if the value sequence -- has length 2. It indicates that the MG has to choose a value -- in the range between the first octet in the value sequence and -- the trailing octet in the value sequence, including the -- boundary values. -- When sent by the MG, only responses to an AuditCapability request -- may contain multiple values, a range, or a relation field. PropertyParm ::= SEQUENCE { -- name [0] PkgdName, propertyName [0] PkgdName, -- value [1] SEQUENCE OF OCTET STRING, value [1] SEQUENCE OF PropertyID, extraInfo [2] CHOICE { relation [0] Relation, range [1] BOOLEAN, sublist [2] BOOLEAN } OPTIONAL, ... } Name ::= OCTET STRING(SIZE(2)) PkgdName ::= OCTET STRING(SIZE(4)) -- represents Package Name (2 octets) plus property, event, -- signal names or StatisticsID. (2 octets) -- To wildcard a package use 0xFFFF for first two octets, CHOOSE -- is not allowed. To reference native property tag specified in -- Annex C, use 0x0000 as first two octets. -- To wildcard a PropertyID, EventID, SignalID, or StatisticsID, use -- 0xFFFF for last two octets, CHOOSE is not allowed. -- Wildcarding of Package Name is permitted only if PropertyID, -- EventID, SignalID, or StatisticsID are also wildcarded. -- Wireshark specific PropertyID ::= OCTET STRING Relation ::= ENUMERATED { greaterThan(0), smallerThan(1), unequalTo(2), ... } LocalRemoteDescriptor ::= SEQUENCE { propGrps [0] SEQUENCE OF PropertyGroup, ... } PropertyGroup ::= SEQUENCE OF PropertyParm TerminationStateDescriptor ::= SEQUENCE { propertyParms [0] SEQUENCE OF PropertyParm, eventBufferControl [1] EventBufferControl OPTIONAL, serviceState [2] ServiceState OPTIONAL, ... } EventBufferControl ::= ENUMERATED { off(0), lockStep(1), ... } ServiceState ::= ENUMERATED { test(0), outOfSvc(1), inSvc(2), ... } MuxDescriptor ::= SEQUENCE { muxType [0] MuxType, termList [1] SEQUENCE OF TerminationID, nonStandardData [2] NonStandardData OPTIONAL, ... } MuxType ::= ENUMERATED { h221(0), h223(1), h226(2), v76(3), ..., nx64k(4) } StreamID ::= INTEGER(0..65535) -- 16-bit unsigned integer EventsDescriptor ::= SEQUENCE { requestID [0] RequestID OPTIONAL, -- RequestID must be present if eventList -- is non empty eventList [1] SEQUENCE OF RequestedEvent, ... } RequestedEvent ::= SEQUENCE { -- pkgdName [0] PkgdName, eventName [0] EventName, streamID [1] StreamID OPTIONAL, eventAction [2] RequestedActions OPTIONAL, evParList [3] SEQUENCE OF EventParameter, ... } RegulatedEmbeddedDescriptor ::= SEQUENCE { secondEvent [0] SecondEventsDescriptor OPTIONAL, signalsDescriptor [1] SignalsDescriptor OPTIONAL, ... } NotifyBehaviour ::= CHOICE { notifyImmediate [0] NULL, notifyRegulated [1] RegulatedEmbeddedDescriptor, neverNotify [2] NULL, ... } RequestedActions ::= SEQUENCE { keepActive [0] BOOLEAN OPTIONAL, eventDM [1] EventDM OPTIONAL, secondEvent [2] SecondEventsDescriptor OPTIONAL, signalsDescriptor [3] SignalsDescriptor OPTIONAL, ..., notifyBehaviour [4] NotifyBehaviour OPTIONAL, resetEventsDescriptor [5] NULL OPTIONAL } EventDM ::= CHOICE { digitMapName [0] DigitMapName, digitMapValue [1] DigitMapValue } SecondEventsDescriptor ::= SEQUENCE { requestID [0] RequestID OPTIONAL, eventList [1] SEQUENCE OF SecondRequestedEvent, ... } SecondRequestedEvent ::= SEQUENCE { pkgdName [0] PkgdName, streamID [1] StreamID OPTIONAL, eventAction [2] SecondRequestedActions OPTIONAL, evParList [3] SEQUENCE OF EventParameter, ... } SecondRequestedActions ::= SEQUENCE { keepActive [0] BOOLEAN OPTIONAL, eventDM [1] EventDM OPTIONAL, signalsDescriptor [2] SignalsDescriptor OPTIONAL, ..., notifyBehaviour [3] NotifyBehaviour OPTIONAL, resetEventsDescriptor [4] NULL OPTIONAL } EventBufferDescriptor ::= SEQUENCE OF EventSpec EventSpec ::= SEQUENCE { eventName [0] EventName, streamID [1] StreamID OPTIONAL, eventParList [2] SEQUENCE OF EventParameter, ... } SignalsDescriptor ::= SEQUENCE OF SignalRequest SignalRequest ::=CHOICE { signal [0] Signal, seqSigList [1] SeqSigList, ... } SeqSigList ::= SEQUENCE { id [0] INTEGER(0..65535), signalList [1] SEQUENCE OF Signal } Signal ::= SEQUENCE { signalName [0] SignalName, streamID [1] StreamID OPTIONAL, sigType [2] SignalType OPTIONAL, duration [3] INTEGER (0..65535) OPTIONAL, notifyCompletion [4] NotifyCompletion OPTIONAL, keepActive [5] BOOLEAN OPTIONAL, sigParList [6] SEQUENCE OF SigParameter, ..., direction [7] SignalDirection OPTIONAL, requestID [8] RequestID OPTIONAL, intersigDelay [9] INTEGER (0..65535) OPTIONAL } SignalType ::= ENUMERATED { brief(0), onOff(1), timeOut(2), ... } SignalDirection ::= ENUMERATED { internal(0), external(1), both(2), ... } -- SignalName ::= PkgdName SignalName ::= OCTET STRING NotifyCompletion ::= BIT STRING { onTimeOut(0), onInterruptByEvent(1), onInterruptByNewSignalDescr(2), otherReason(3), onIteration(4) } SigParameter ::= SEQUENCE { -- sigParameterName [0] Name, -- value [1] Value, sigParameterName [0] SigParameterName, value [1] SigParamValues, -- For use of extraInfo see the comment related to PropertyParm extraInfo [2] CHOICE { relation [0] Relation, range [1] BOOLEAN, sublist [2] BOOLEAN } OPTIONAL, ... } -- Wireshark specific SigParameterName ::= Name SigParamValues ::= SEQUENCE OF SigParamValue SigParamValue ::= OCTET STRING -- end -- For an AuditCapReply with all events, the RequestID shall be ALL. -- ALL is represented by 0xffffffff. RequestID ::= INTEGER(0..4294967295) -- 32-bit unsigned integer ModemDescriptor ::= SEQUENCE { mtl [0] SEQUENCE OF ModemType, mpl [1] SEQUENCE OF PropertyParm, nonStandardData [2] NonStandardData OPTIONAL } ModemType ::= ENUMERATED { v18(0), v22(1), v22bis(2), v32(3), v32bis(4), v34(5), v90(6), v91(7), synchISDN(8), ... } DigitMapDescriptor ::= SEQUENCE { digitMapName [0] DigitMapName OPTIONAL, digitMapValue [1] DigitMapValue OPTIONAL } DigitMapName ::= Name DigitMapValue ::= SEQUENCE { startTimer [0] INTEGER(0..99) OPTIONAL, shortTimer [1] INTEGER(0..99) OPTIONAL, longTimer [2] INTEGER(0..99) OPTIONAL, digitMapBody [3] IA5String, -- Units are seconds for start, short and long timers, and hundreds -- of milliseconds for duration timer. Thus start, short, and long -- range from 1 to 99 seconds and duration from 100 ms to 9.9 s -- See A.3 for explanation of DigitMap syntax ..., durationTimer [4] INTEGER (0..99) OPTIONAL } ServiceChangeParm ::= SEQUENCE { serviceChangeMethod [0] ServiceChangeMethod, serviceChangeAddress [1] ServiceChangeAddress OPTIONAL, serviceChangeVersion [2] INTEGER(0..99) OPTIONAL, serviceChangeProfile [3] ServiceChangeProfile OPTIONAL, -- serviceChangeReason [4] Value, serviceChangeReason [4] SCreasonValue, -- A serviceChangeReason consists of a numeric reason code -- and an optional text description. -- The serviceChangeReason shall be a string consisting of -- a decimal reason code, optionally followed by a single -- space character and a textual description string. -- This string is first BER-encoded as an IA5String. -- The result of this BER-encoding is then encoded as -- an ASN.1 OCTET STRING type, "double wrapping" the -- value as was done for package elements. serviceChangeDelay [5] INTEGER(0..4294967295) OPTIONAL, -- 32-bit unsigned integer serviceChangeMgcId [6] MId OPTIONAL, timeStamp [7] TimeNotation OPTIONAL, nonStandardData [8] NonStandardData OPTIONAL, ..., serviceChangeInfo [9] AuditDescriptor OPTIONAL, serviceChangeIncompleteFlag [10] NULL OPTIONAL } -- Wireshark extension to decode serviceChangeReason SCreasonValue ::= SEQUENCE OF SCreasonValueOctetStr SCreasonValueOctetStr ::= OCTET STRING ServiceChangeReasonStr ::= IA5String -- end ServiceChangeAddress ::= CHOICE { portNumber [0] INTEGER(0..65535), -- TCP/UDP port number ip4Address [1] IP4Address, ip6Address [2] IP6Address, domainName [3] DomainName, deviceName [4] PathName, mtpAddress [5] MtpAddress, ... } ServiceChangeResParm ::= SEQUENCE { serviceChangeMgcId [0] MId OPTIONAL, serviceChangeAddress [1] ServiceChangeAddress OPTIONAL, serviceChangeVersion [2] INTEGER(0..99) OPTIONAL, serviceChangeProfile [3] ServiceChangeProfile OPTIONAL, timestamp [4] TimeNotation OPTIONAL, ... } ServiceChangeMethod ::= ENUMERATED { failover(0), forced(1), graceful(2), restart(3), disconnected(4), handOff(5), ... } ServiceChangeProfile ::= SEQUENCE { profileName [0] IA5String(SIZE (1..67)) -- 64 characters for name, 1 for "/", 2 for version to match ABNF } PackagesDescriptor ::= SEQUENCE OF PackagesItem PackagesItem ::= SEQUENCE { packageName [0] Name, packageVersion [1] INTEGER(0..99), ... } StatisticsDescriptor ::= SEQUENCE OF StatisticsParameter StatisticsParameter ::= SEQUENCE { statName [0] PkgdName, statValue [1] Value OPTIONAL } -- If statistic consists of a sub-lists there will be more than -- one octetstring in statValue. NonStandardData ::= SEQUENCE { nonStandardIdentifier [0] NonStandardIdentifier, data [1] OCTET STRING } NonStandardIdentifier ::= CHOICE { object [0] OBJECT IDENTIFIER, h221NonStandard [1] H221NonStandard, experimental [2] IA5String(SIZE(8)), -- first two characters should be "X-" or "X+" ... } H221NonStandard ::= SEQUENCE { t35CountryCode1 [0] INTEGER(0..255), t35CountryCode2 [1] INTEGER(0..255), -- country, as per T.35 t35Extension [2] INTEGER(0..255), -- assigned nationally manufacturerCode [3] INTEGER(0..65535), -- assigned nationally ... } TimeNotation ::= SEQUENCE { date [0] IA5String(SIZE(8)), -- yyyymmdd format time [1] IA5String(SIZE(8)) -- hhmmssss format -- per ISO 8601:2004 } Value ::= SEQUENCE OF OCTET STRING END
ASN.1
wireshark/epan/dissectors/asn1/h248/MEGACO.asn
-- This ASN definition is taken from -- http://132.151.1.19/internet-drafts/draft-ietf-megaco-h248v2-04.txt -- -- and has been modified to pass through the ASN2ETH compiler -- (we dont support automatic tags yet so the tags had to be added by -- hand) MEDIA-GATEWAY-CONTROL {itu-t(0) recommendation(0) h(8) h248(248) modules(0) media-gateway-control(0) version2(2)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN MegacoMessage ::= SEQUENCE { authHeader [0] IMPLICIT AuthenticationHeader OPTIONAL, mess [1] IMPLICIT Message } AuthenticationHeader ::= SEQUENCE { secParmIndex [0] IMPLICIT SecurityParmIndex, seqNum [1] IMPLICIT SequenceNum, ad [2] IMPLICIT AuthData } SecurityParmIndex ::= OCTET STRING(SIZE(4)) SequenceNum ::= OCTET STRING(SIZE(4)) AuthData ::= OCTET STRING (SIZE (12..32)) Message ::= SEQUENCE { version [0] IMPLICIT INTEGER(0..99), -- The version of the protocol defined here is equal to 2. mId [1] MId, -- Name/address of message originator messageBody [2] CHOICE { messageError [0] IMPLICIT ErrorDescriptor, transactions [1] IMPLICIT SEQUENCE OF Transaction }, ... } MId ::= CHOICE { ip4Address [0] IMPLICIT IP4Address, ip6Address [1] IMPLICIT IP6Address, domainName [2] IMPLICIT DomainName, deviceName [3] IMPLICIT PathName, mtpAddress [4] IMPLICIT MtpAddress, -- Addressing structure of mtpAddress: -- 25 - 15 0 -- | PC | NI | -- 24 - 14 bits 2 bits -- Note: 14 bits are defined for international use. -- Two national options exist where the point code is 16 or 24 -- bits. -- To octet align the mtpAddress, the MSBs shall be encoded as 0s. ... } MtpAddress ::= OCTET STRING(SIZE(2..4)) DomainName ::= SEQUENCE { name [0] IMPLICIT IA5String, -- The name starts with an alphanumeric digit followed by a -- sequence of alphanumeric digits, hyphens and dots. No two -- dots shall occur consecutively. portNumber [1] IMPLICIT INTEGER(0..65535) OPTIONAL } IP4Address ::= SEQUENCE { address [0] IMPLICIT OCTET STRING (SIZE(4)), portNumber [1] IMPLICIT INTEGER(0..65535) OPTIONAL } IP6Address ::= SEQUENCE { address [0] IMPLICIT OCTET STRING (SIZE(16)), portNumber [1] IMPLICIT INTEGER(0..65535) OPTIONAL } PathName ::= IA5String(SIZE (1..64)) -- See A.3 Transaction ::= CHOICE { transactionRequest [0] IMPLICIT TransactionRequest, transactionPending [1] IMPLICIT TransactionPending, transactionReply [2] IMPLICIT TransactionReply, transactionResponseAck [3] IMPLICIT TransactionResponseAck, -- use of response acks is dependent on underlying transport ... } TransactionId ::= INTEGER(0..4294967295) -- 32-bit unsigned integer TransactionRequest ::= SEQUENCE { transactionId [0] IMPLICIT TransactionId, actions [1] IMPLICIT SEQUENCE OF ActionRequest, ... } TransactionPending ::= SEQUENCE { transactionId [0] IMPLICIT TransactionId, ... } TransactionReply ::= SEQUENCE { transactionId [0] IMPLICIT TransactionId, immAckRequired [1] IMPLICIT NULL OPTIONAL, transactionResult [2] CHOICE { transactionError [0] IMPLICIT ErrorDescriptor, actionReplies [1] IMPLICIT SEQUENCE OF ActionReply }, ... } TransactionResponseAck ::= SEQUENCE OF TransactionAck TransactionAck ::= SEQUENCE { firstAck [0] IMPLICIT TransactionId, lastAck [1] IMPLICIT TransactionId OPTIONAL } ErrorDescriptor ::= SEQUENCE { errorCode [0] IMPLICIT ErrorCode, errorText [1] IMPLICIT ErrorText OPTIONAL } ErrorCode ::= INTEGER(0..65535) -- See clause 14 for IANA considerations with respect to error codes ErrorText ::= IA5String ContextID ::= INTEGER(0..4294967295) -- Context NULL Value: 0 -- Context CHOOSE Value: 4294967294 (0xFFFFFFFE) -- Context ALL Value: 4294967295 (0xFFFFFFFF) ActionRequest ::= SEQUENCE { contextId [0] IMPLICIT ContextID, contextRequest [1] IMPLICIT ContextRequest OPTIONAL, contextAttrAuditReq [2] IMPLICIT ContextAttrAuditRequest OPTIONAL, commandRequests [3] IMPLICIT SEQUENCE OF CommandRequest } ActionReply ::= SEQUENCE { contextId [0] IMPLICIT ContextID, errorDescriptor [1] IMPLICIT ErrorDescriptor OPTIONAL, contextReply [2] IMPLICIT ContextRequest OPTIONAL, commandReply [3] IMPLICIT SEQUENCE OF CommandReply } ContextRequest ::= SEQUENCE { priority [0] IMPLICIT INTEGER(0..15) OPTIONAL, emergency [1] IMPLICIT BOOLEAN OPTIONAL, topologyReq [2] IMPLICIT SEQUENCE OF TopologyRequest OPTIONAL, ... } ContextAttrAuditRequest ::= SEQUENCE { topology [0] IMPLICIT NULL OPTIONAL, emergency [1] IMPLICIT NULL OPTIONAL, priority [2] IMPLICIT NULL OPTIONAL, ... } CommandRequest ::= SEQUENCE { command [0] Command, optional [1] IMPLICIT NULL OPTIONAL, wildcardReturn [2] IMPLICIT NULL OPTIONAL, ... } Command ::= CHOICE { addReq [0] IMPLICIT AmmRequest, moveReq [1] IMPLICIT AmmRequest, modReq [2] IMPLICIT AmmRequest, -- Add, Move, Modify requests have the same parameters subtractReq [3] IMPLICIT SubtractRequest, auditCapRequest [4] IMPLICIT AuditRequest, auditValueRequest [5] IMPLICIT AuditRequest, notifyReq [6] IMPLICIT NotifyRequest, serviceChangeReq [7] IMPLICIT ServiceChangeRequest, ... } CommandReply ::= CHOICE { addReply [0] IMPLICIT AmmsReply, moveReply [1] IMPLICIT AmmsReply, modReply [2] IMPLICIT AmmsReply, subtractReply [3] IMPLICIT AmmsReply, -- Add, Move, Modify, Subtract replies have the same parameters auditCapReply [4] AuditReply, auditValueReply [5] AuditReply, notifyReply [6] IMPLICIT NotifyReply, serviceChangeReply [7] IMPLICIT ServiceChangeReply, ... } TopologyRequest ::= SEQUENCE { terminationFrom [0] IMPLICIT TerminationID, terminationTo [1] IMPLICIT TerminationID, topologyDirection [2] IMPLICIT ENUMERATED { bothway(0), isolate(1), oneway(2) }, ..., streamID [3] IMPLICIT StreamID OPTIONAL } AmmRequest ::= SEQUENCE { terminationID [0] IMPLICIT TerminationIDList, descriptors [1] IMPLICIT SEQUENCE OF AmmDescriptor, -- At most one descriptor of each type (see AmmDescriptor) -- allowed in the sequence. ... } AmmDescriptor ::= CHOICE { mediaDescriptor [0] IMPLICIT MediaDescriptor, modemDescriptor [1] IMPLICIT ModemDescriptor, muxDescriptor [2] IMPLICIT MuxDescriptor, eventsDescriptor [3] IMPLICIT EventsDescriptor, eventBufferDescriptor [4] IMPLICIT EventBufferDescriptor, signalsDescriptor [5] IMPLICIT SignalsDescriptor, digitMapDescriptor [6] IMPLICIT DigitMapDescriptor, auditDescriptor [7] IMPLICIT AuditDescriptor, ... } AmmsReply ::= SEQUENCE { terminationID [0] IMPLICIT TerminationIDList, terminationAudit [1] IMPLICIT TerminationAudit OPTIONAL, ... } SubtractRequest ::= SEQUENCE { terminationID [0] IMPLICIT TerminationIDList, auditDescriptor [1] IMPLICIT AuditDescriptor OPTIONAL, ... } AuditRequest ::= SEQUENCE { terminationID [0] IMPLICIT TerminationID, auditDescriptor [1] IMPLICIT AuditDescriptor, ... } AuditReply ::= CHOICE { contextAuditResult [0] IMPLICIT TerminationIDList, error [1] IMPLICIT ErrorDescriptor, auditResult [2] IMPLICIT AuditResult, ... } AuditResult ::= SEQUENCE { terminationID [0] IMPLICIT TerminationID, terminationAuditResult [1] IMPLICIT TerminationAudit } TerminationAudit ::= SEQUENCE OF AuditReturnParameter AuditReturnParameter ::= CHOICE { errorDescriptor [0] IMPLICIT ErrorDescriptor, mediaDescriptor [1] IMPLICIT MediaDescriptor, modemDescriptor [2] IMPLICIT ModemDescriptor, muxDescriptor [3] IMPLICIT MuxDescriptor, eventsDescriptor [4] IMPLICIT EventsDescriptor, eventBufferDescriptor [5] IMPLICIT EventBufferDescriptor, signalsDescriptor [6] IMPLICIT SignalsDescriptor, digitMapDescriptor [7] IMPLICIT DigitMapDescriptor, observedEventsDescriptor [8] IMPLICIT ObservedEventsDescriptor, statisticsDescriptor [9] IMPLICIT StatisticsDescriptor, packagesDescriptor [10] IMPLICIT PackagesDescriptor, emptyDescriptors [11] IMPLICIT AuditDescriptor, ... } AuditDescriptor ::= SEQUENCE { auditToken [0] IMPLICIT BIT STRING { muxToken(0), modemToken(1), mediaToken(2), eventsToken(3), signalsToken(4), digitMapToken(5), statsToken(6), observedEventsToken(7), packagesToken(8), eventBufferToken(9) } OPTIONAL, ..., auditPropertyToken [1] IMPLICIT SEQUENCE OF IndAuditParameter OPTIONAL } IndAuditParameter ::= CHOICE { indaudmediaDescriptor [0] IMPLICIT IndAudMediaDescriptor, indaudeventsDescriptor [1] IMPLICIT IndAudEventsDescriptor, indaudeventBufferDescriptor [2] IMPLICIT IndAudEventBufferDescriptor, indaudsignalsDescriptor [3] IndAudSignalsDescriptor, indauddigitMapDescriptor [4] IMPLICIT IndAudDigitMapDescriptor, indaudstatisticsDescriptor [5] IMPLICIT IndAudStatisticsDescriptor, indaudpackagesDescriptor [6] IMPLICIT IndAudPackagesDescriptor, ... } IndAudMediaDescriptor ::= SEQUENCE { termStateDescr [0] IMPLICIT IndAudTerminationStateDescriptor OPTIONAL, streams [1] CHOICE { oneStream [0] IMPLICIT IndAudStreamParms, multiStream [1] IMPLICIT SEQUENCE OF IndAudStreamDescriptor } OPTIONAL, ... } IndAudStreamDescriptor ::= SEQUENCE { streamID [0] IMPLICIT StreamID, streamParms [1] IMPLICIT IndAudStreamParms } IndAudStreamParms ::= SEQUENCE { localControlDescriptor [0] IMPLICIT IndAudLocalControlDescriptor OPTIONAL, localDescriptor [1] IMPLICIT IndAudLocalRemoteDescriptor OPTIONAL, remoteDescriptor [2] IMPLICIT IndAudLocalRemoteDescriptor OPTIONAL, ... } IndAudLocalControlDescriptor ::= SEQUENCE { streamMode [0] IMPLICIT NULL OPTIONAL, reserveValue [1] IMPLICIT NULL OPTIONAL, reserveGroup [2] IMPLICIT NULL OPTIONAL, propertyParms [3] IMPLICIT IndAudPropertyParms OPTIONAL, ... } IndAudPropertyParm ::= SEQUENCE { name [0] IMPLICIT PkgdName, ... } IndAudPropertyParms ::= SEQUENCE OF IndAudPropertyParm IndAudLocalRemoteDescriptor ::= SEQUENCE { propGroupID [0] IMPLICIT INTEGER(0..65535) OPTIONAL, propGrps [1] IMPLICIT IndAudPropertyGroup, ... } IndAudPropertyGroup ::= SEQUENCE OF IndAudPropertyParm IndAudTerminationStateDescriptor ::= SEQUENCE { propertyParms [0] IMPLICIT IndAudPropertyParms, eventBufferControl [1] IMPLICIT NULL OPTIONAL, serviceState [2] IMPLICIT NULL OPTIONAL, ... } IndAudEventsDescriptor ::= SEQUENCE { requestID [0] IMPLICIT RequestID OPTIONAL, pkgdName [1] IMPLICIT PkgdName, streamID [2] IMPLICIT StreamID OPTIONAL, ... } IndAudEventBufferDescriptor ::= SEQUENCE { eventName [0] IMPLICIT PkgdName, streamID [1] IMPLICIT StreamID OPTIONAL, ... } IndAudSignalsDescriptor ::=CHOICE { signal [0] IMPLICIT IndAudSignal, seqSigList [1] IMPLICIT IndAudSeqSigList, ... } IndAudSeqSigList ::= SEQUENCE { id [0] IMPLICIT INTEGER(0..65535), signalList [1] IMPLICIT IndAudSignal OPTIONAL } IndAudSignal ::= SEQUENCE { signalName [0] IMPLICIT PkgdName, streamID [1] IMPLICIT StreamID OPTIONAL, ... } IndAudDigitMapDescriptor ::= SEQUENCE { digitMapName [0] IMPLICIT DigitMapName OPTIONAL } IndAudStatisticsDescriptor ::= SEQUENCE { statName [0] IMPLICIT PkgdName } IndAudPackagesDescriptor ::= SEQUENCE { packageName [0] IMPLICIT Name, packageVersion [1] IMPLICIT INTEGER(0..99), ... } NotifyRequest ::= SEQUENCE { terminationID [0] IMPLICIT TerminationIDList, observedEventsDescriptor [1] IMPLICIT ObservedEventsDescriptor, errorDescriptor [2] IMPLICIT ErrorDescriptor OPTIONAL, ... } NotifyReply ::= SEQUENCE { terminationID [0] IMPLICIT TerminationIDList, errorDescriptor [1] IMPLICIT ErrorDescriptor OPTIONAL, ... } ObservedEventsDescriptor ::= SEQUENCE { requestId [0] IMPLICIT RequestID, observedEventLst [1] IMPLICIT SEQUENCE OF ObservedEvent } ObservedEvent ::= SEQUENCE { eventName [0] IMPLICIT EventName, streamID [1] IMPLICIT StreamID OPTIONAL, eventParList [2] IMPLICIT EventParameters, timeNotation [3] IMPLICIT TimeNotation OPTIONAL, ... } EventName ::= OCTET STRING ExtraInfo ::= CHOICE { relation [0] IMPLICIT Relation, range [1] IMPLICIT BOOLEAN, sublist [2] IMPLICIT BOOLEAN } EventParameter ::= SEQUENCE { eventParameterName [0] IMPLICIT EventParameterName, eventParamValue [1] IMPLICIT EventParamValues, -- For use of extraInfo see the comment related to PropertyParm extraInfo [2] ExtraInfo OPTIONAL, ... } EventParameterName ::= Name EventParamValues ::= SEQUENCE OF EventParamValue EventParamValue ::= OCTET STRING EventParameters ::= SEQUENCE OF EventParameter ServiceChangeRequest ::= SEQUENCE { terminationID [0] IMPLICIT TerminationIDList, serviceChangeParms [1] IMPLICIT ServiceChangeParm, ... } ServiceChangeReply ::= SEQUENCE { terminationID [0] IMPLICIT TerminationIDList, serviceChangeResult [1] ServiceChangeResult, ... } -- For ServiceChangeResult, no parameters are mandatory. Hence the -- distinction between ServiceChangeParm and ServiceChangeResParm. ServiceChangeResult ::= CHOICE { errorDescriptor [0] IMPLICIT ErrorDescriptor, serviceChangeResParms [1] IMPLICIT ServiceChangeResParm } WildcardField ::= OCTET STRING(SIZE(1)) TerminationID ::= SEQUENCE { wildcard [0] IMPLICIT SEQUENCE OF WildcardField, id [1] IMPLICIT OCTET STRING(SIZE(1..8)), ... } -- See A.1 for explanation of wildcarding mechanism. -- Termination ID 0xFFFFFFFFFFFFFFFF indicates the ROOT Termination. TerminationIDList ::= SEQUENCE OF TerminationID MediaDescriptor ::= SEQUENCE { termStateDescr [0] IMPLICIT TerminationStateDescriptor OPTIONAL, streams [1] CHOICE { oneStream [0] IMPLICIT StreamParms, multiStream [1] IMPLICIT SEQUENCE OF StreamDescriptor } OPTIONAL, ... } StreamDescriptor ::= SEQUENCE { streamID [0] IMPLICIT StreamID, streamParms [1] IMPLICIT StreamParms } StreamParms ::= SEQUENCE { localControlDescriptor [0] IMPLICIT LocalControlDescriptor OPTIONAL, localDescriptor [1] IMPLICIT LocalRemoteDescriptor OPTIONAL, remoteDescriptor [2] IMPLICIT LocalRemoteDescriptor OPTIONAL, ... } LocalControlDescriptor ::= SEQUENCE { streamMode [0] IMPLICIT StreamMode OPTIONAL, reserveValue [1] IMPLICIT BOOLEAN OPTIONAL, reserveGroup [2] IMPLICIT BOOLEAN OPTIONAL, propertyParms [3] IMPLICIT PropertyParms, ... } StreamMode ::= ENUMERATED { sendOnly(0), recvOnly(1), sendRecv(2), inactive(3), loopBack(4), ... } -- In PropertyParm, value is a SEQUENCE OF octet string. When sent -- by an MGC the interpretation is as follows: -- empty sequence means CHOOSE -- one element sequence specifies value -- If the sublist field is not selected, a longer sequence means -- "choose one of the values" (i.e. value1 OR value2 OR ...) -- If the sublist field is selected, -- a sequence with more than one element encodes the value of a -- list-valued property (i.e. value1 AND value2 AND ...). -- The relation field may only be selected if the value sequence -- has length 1. It indicates that the MG has to choose a value -- for the property. E.g. x > 3 (using the greaterThan -- value for relation) instructs the MG to choose any value larger -- than 3 for property x. -- The range field may only be selected if the value sequence -- has length 2. It indicates that the MG has to choose a value -- in the range between the first octet in the value sequence and -- the trailing octet in the value sequence, including the -- boundary values. -- When sent by the MG, only responses to an AuditCapability request -- may contain multiple values, a range, or a relation field. PropertyParm ::= SEQUENCE { propertyName [0] IMPLICIT PkgdName, value [1] IMPLICIT SEQUENCE OF PropertyID, extraInfo [2] ExtraInfo OPTIONAL, ... } PropertyParms ::= SEQUENCE OF PropertyParm Name ::= OCTET STRING(SIZE(2)) PkgdName ::= OCTET STRING(SIZE(4)) -- represents Package Name (2 octets) plus Property, Event, -- Signal Names or Statistics ID. (2 octets) -- To wildcard a package use 0xFFFF for first two octets, choose -- is not allowed. To reference native property tag specified in -- Annex C, use 0x0000 as first two octets. -- To wildcard a Property, Event, Signal, or Statistics ID, use -- 0xFFFF for last two octets, choose is not allowed. -- Wildcarding of Package Name is permitted only if Property, -- Event, Signal, or Statistics ID are -- also wildcarded. PropertyID ::= OCTET STRING Relation ::= ENUMERATED { greaterThan(0), smallerThan(1), unequalTo(2), ... } LocalRemoteDescriptor ::= SEQUENCE { propGrps [0] IMPLICIT SEQUENCE OF PropertyGroup, ... } PropertyGroup ::= SEQUENCE OF PropertyParm TerminationStateDescriptor ::= SEQUENCE { propertyParms [0] IMPLICIT PropertyParms, eventBufferControl [1] IMPLICIT EventBufferControl OPTIONAL, serviceState [2] IMPLICIT ServiceState OPTIONAL, ... } EventBufferControl ::= ENUMERATED { off(0), lockStep(1), ... } ServiceState ::= ENUMERATED { test(0), outOfSvc(1), inSvc(2), ... } MuxDescriptor ::= SEQUENCE { muxType [0] IMPLICIT MuxType, termList [1] IMPLICIT SEQUENCE OF TerminationID, nonStandardData [2] IMPLICIT NonStandardData OPTIONAL, ... } MuxType ::= ENUMERATED { h221(0), h223(1), h226(2), v76(3), ..., nx64k(4) } StreamID ::= INTEGER(0..65535) -- 16-bit unsigned integer EventsDescriptor ::= SEQUENCE { requestID [0] IMPLICIT RequestID OPTIONAL, -- RequestID must be present if eventList -- is non empty eventList [1] IMPLICIT RequestedEvents, ... } RequestedEvent ::= SEQUENCE { pkgdName [0] IMPLICIT EventName, streamID [1] IMPLICIT StreamID OPTIONAL, eventAction [2] IMPLICIT RequestedActions OPTIONAL, evParList [3] IMPLICIT EventParameters, ... } RequestedEvents ::= SEQUENCE OF RequestedEvent RequestedActions ::= SEQUENCE { keepActive [0] IMPLICIT BOOLEAN OPTIONAL, eventDM [1] EventDM OPTIONAL, secondEvent [2] IMPLICIT SecondEventsDescriptor OPTIONAL, signalsDescriptor [3] IMPLICIT SignalsDescriptor OPTIONAL, ... } EventDM ::= CHOICE { digitMapName [0] IMPLICIT DigitMapName, digitMapValue [1] IMPLICIT DigitMapValue } SecondEventsDescriptor ::= SEQUENCE { requestID [0] IMPLICIT RequestID OPTIONAL, eventList [1] IMPLICIT SEQUENCE OF SecondRequestedEvent, ... } SecondRequestedEvent ::= SEQUENCE { pkgdName [0] IMPLICIT EventName, streamID [1] IMPLICIT StreamID OPTIONAL, eventAction [2] IMPLICIT SecondRequestedActions OPTIONAL, evParList [3] IMPLICIT EventParameters, ... } SecondRequestedActions ::= SEQUENCE { keepActive [0] IMPLICIT BOOLEAN OPTIONAL, eventDM [1] EventDM OPTIONAL, signalsDescriptor [2] IMPLICIT SignalsDescriptor OPTIONAL, ... } EventBufferDescriptor ::= SEQUENCE OF EventSpec EventSpec ::= SEQUENCE { eventName [0] IMPLICIT EventName, streamID [1] IMPLICIT StreamID OPTIONAL, eventParList [2] IMPLICIT EventParameters, ... } SignalsDescriptor ::= SEQUENCE OF SignalRequest SignalRequest ::= CHOICE { signal [0] IMPLICIT Signal, seqSigList [1] IMPLICIT SeqSigList, ... } SeqSigList ::= SEQUENCE { id [0] IMPLICIT INTEGER(0..65535), signalList [1] IMPLICIT SEQUENCE OF Signal } Signal ::= SEQUENCE { signalName [0] IMPLICIT SignalName, streamID [1] IMPLICIT StreamID OPTIONAL, sigType [2] IMPLICIT SignalType OPTIONAL, duration [3] IMPLICIT INTEGER (0..65535) OPTIONAL, notifyCompletion [4] IMPLICIT NotifyCompletion OPTIONAL, keepActive [5] IMPLICIT BOOLEAN OPTIONAL, sigParList [6] IMPLICIT SEQUENCE OF SigParameter, ... } SignalType ::= ENUMERATED { brief(0), onOff(1), timeOut(2), ... } SignalName ::= OCTET STRING NotifyCompletion ::= BIT STRING { onTimeOut(0), onInterruptByEvent(1), onInterruptByNewSignalDescr(2), otherReason(3) } SigParameter ::= SEQUENCE { sigParameterName [0] IMPLICIT SigParameterName, sigParameterValue [1] IMPLICIT SigParamValues, -- For use of extraInfo see the comment related to PropertyParm extraInfo [2] ExtraInfo OPTIONAL, ... } SigParameterName ::= Name SigParamValues ::= SEQUENCE OF SigParamValue SigParamValue ::= OCTET STRING -- For an AuditCapReply with all events, the RequestID SHALL be ALL. -- ALL is represented by 0xffffffff. RequestID ::= INTEGER(0..4294967295) -- 32-bit unsigned integer ModemDescriptor ::= SEQUENCE { mtl [0] IMPLICIT SEQUENCE OF ModemType, mpl [1] IMPLICIT PropertyParms, nonStandardData [2] IMPLICIT NonStandardData OPTIONAL } ModemType ::= ENUMERATED { v18(0), v22(1), v22bis(2), v32(3), v32bis(4), v34(5), v90(6), v91(7), synchISDN(8), ... } DigitMapDescriptor ::= SEQUENCE { digitMapName [0] IMPLICIT DigitMapName OPTIONAL, digitMapValue [1] IMPLICIT DigitMapValue OPTIONAL } DigitMapName ::= Name DigitMapValue ::= SEQUENCE { startTimer [0] IMPLICIT INTEGER(0..99) OPTIONAL, shortTimer [1] IMPLICIT INTEGER(0..99) OPTIONAL, longTimer [2] IMPLICIT INTEGER(0..99) OPTIONAL, digitMapBody [3] IMPLICIT IA5String, -- Units are seconds for start, short and long timers, and -- hundreds of milliseconds for duration timer. Thus start, -- short, and long range from 1 to 99 seconds and duration -- from 100 ms to 9.9 s -- See A.3 for explanation of digit map syntax ..., durationTimer [4] IMPLICIT INTEGER (0..99) OPTIONAL } ServiceChangeParm ::= SEQUENCE { serviceChangeMethod [0] IMPLICIT ServiceChangeMethod, serviceChangeAddress [1] ServiceChangeAddress OPTIONAL, serviceChangeVersion [2] IMPLICIT INTEGER(0..99) OPTIONAL, serviceChangeProfile [3] IMPLICIT ServiceChangeProfile OPTIONAL, serviceChangeReason [4] IMPLICIT Value, -- A serviceChangeReason consists of a numeric reason code -- and an optional text description. -- The serviceChangeReason SHALL be a string consisting of -- a decimal reason code, optionally followed by a single -- space character and a textual description string. -- This string is first BER-encoded as an IA5String. -- The result of this BER-encoding is then encoded as -- an ASN.1 OCTET STRING type, "double wrapping" the -- value -- as was done for package elements. serviceChangeDelay [5] IMPLICIT INTEGER(0..4294967295) OPTIONAL, -- 32-bit unsigned integer serviceChangeMgcId [6] MId OPTIONAL, timeStamp [7] IMPLICIT TimeNotation OPTIONAL, nonStandardData [8] IMPLICIT NonStandardData OPTIONAL, ..., serviceChangeInfo [9] IMPLICIT AuditDescriptor OPTIONAL } ServiceChangeAddress ::= CHOICE { portNumber [0] IMPLICIT INTEGER(0..65535), -- TCP/UDP port number ip4Address [1] IMPLICIT IP4Address, ip6Address [2] IMPLICIT IP6Address, domainName [3] IMPLICIT DomainName, deviceName [4] IMPLICIT PathName, mtpAddress [5] IMPLICIT MtpAddress, ... } ServiceChangeResParm ::= SEQUENCE { serviceChangeMgcId [0] MId OPTIONAL, serviceChangeAddress [1] ServiceChangeAddress OPTIONAL, serviceChangeVersion [2] IMPLICIT INTEGER(0..99) OPTIONAL, serviceChangeProfile [3] IMPLICIT ServiceChangeProfile OPTIONAL, timestamp [4] IMPLICIT TimeNotation OPTIONAL, ... } ServiceChangeMethod ::= ENUMERATED { failover(0), forced(1), graceful(2), restart(3), disconnected(4), handOff(5), ... } ServiceChangeProfile ::= SEQUENCE { profileName [0] IMPLICIT IA5String(SIZE (1..67)) -- 64 characters for name, 1 for "/", 2 for version to match ABNF } PackagesDescriptor ::= SEQUENCE OF PackagesItem PackagesItem ::= SEQUENCE { packageName [0] IMPLICIT Name, packageVersion [1] IMPLICIT INTEGER(0..99), ... } StatisticsDescriptor ::= SEQUENCE OF StatisticsParameter StatisticsParameter ::= SEQUENCE { statName [0] IMPLICIT PkgdName, statValue [1] IMPLICIT Value OPTIONAL } NonStandardData ::= SEQUENCE { nonStandardIdentifier [0] NonStandardIdentifier, data [1] IMPLICIT OCTET STRING } NonStandardIdentifier ::= CHOICE { object [0] IMPLICIT OBJECT IDENTIFIER, h221NonStandard [1] IMPLICIT H221NonStandard, experimental [2] IMPLICIT IA5String(SIZE(8)), -- first two characters SHOULD be "X-" or "X+" ... } H221NonStandard ::= SEQUENCE { t35CountryCode1 [0] IMPLICIT INTEGER(0..255), t35CountryCode2 [1] IMPLICIT INTEGER(0..255), -- country, as per T.35 t35Extension [2] IMPLICIT INTEGER(0..255), -- assigned nationally manufacturerCode [3] IMPLICIT INTEGER(0..65535), -- assigned nationally ... } TimeNotation ::= SEQUENCE { date [0] IMPLICIT IA5String(SIZE(8)), -- yyyymmdd format time [1] IMPLICIT IA5String(SIZE(8)) -- hhmmssss format -- per ISO 8601:1988 } Value ::= SEQUENCE OF OCTET STRING END
C
wireshark/epan/dissectors/asn1/h248/packet-h248-template.c
/* packet-h248.c * Routines for H.248/MEGACO packet dissection * * Ronnie Sahlberg 2004 * * Luis Ontanon 2005 - Context and Transaction Tracing * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/exceptions.h> #include <epan/tap.h> #include <epan/asn1.h> #include <epan/prefs.h> #include <epan/exported_pdu.h> #include <epan/address_types.h> #include "packet-alcap.h" #include "packet-ber.h" #include "packet-tpkt.h" #include "packet-mtp3.h" #include "packet-h248.h" #define PNAME "H.248 MEGACO" #define PSNAME "H.248" #define PFNAME "h248" void proto_register_h248(void); /* Initialize the protocol and registered fields */ static int proto_h248 = -1; static int hf_248_magic_num = -1; static int hf_h248_mtpaddress_ni = -1; static int hf_h248_mtpaddress_pc = -1; static int hf_h248_pkg_name = -1; static int hf_248_pkg_param = -1; static int hf_h248_event_name = -1; static int hf_h248_signal_name = -1; static int hf_h248_signal_code = -1; static int hf_h248_event_code = -1; static int hf_h248_pkg_bcp_BNCChar_PDU = -1; static int hf_h248_context_id = -1; static int hf_h248_term_wild_type = -1; static int hf_h248_term_wild_level = -1; static int hf_h248_term_wild_position = -1; static int hf_h248_no_pkg = -1; static int hf_h248_no_sig = -1; static int hf_h248_no_evt = -1; static int hf_h248_param = -1; static int hf_h248_serviceChangeReasonStr = -1; static int hf_h248_transactionId64 = -1; static int hf_h248_context_id64 = -1; /* h248v1 support */ static int hf_h248_auditValueReplyV1 = -1; #include "packet-h248-hf.c" /* Initialize the subtree pointers */ static gint ett_h248 = -1; static gint ett_mtpaddress = -1; static gint ett_packagename = -1; static gint ett_codec = -1; static gint ett_wildcard = -1; static gint ett_h248_no_pkg = -1; static gint ett_h248_no_sig = -1; static gint ett_h248_no_evt = -1; static int h248_tap = -1; static gcp_hf_ett_t h248_arrel = {{-1,-1,-1,-1,-1,-1},{-1,-1,-1,-1}}; static gint exported_pdu_tap = -1; #include "packet-h248-ett.c" static expert_field ei_h248_errored_command = EI_INIT; static expert_field ei_h248_transactionId64 = EI_INIT; static expert_field ei_h248_context_id64 = EI_INIT; static expert_field ei_h248_octet_string_expected = EI_INIT; static dissector_table_t subdissector_table; static int ss7pc_address_type = -1; /* Gateway Control Protocol -- Context Tracking */ const value_string gcp_cmd_type[] = { { GCP_CMD_NONE, "NoCommand"}, { GCP_CMD_ADD_REQ, "addReq"}, { GCP_CMD_MOVE_REQ, "moveReq"}, { GCP_CMD_MOD_REQ, "modReq"}, { GCP_CMD_SUB_REQ, "subtractReq"}, { GCP_CMD_AUDITCAP_REQ, "auditCapRequest"}, { GCP_CMD_AUDITVAL_REQ, "auditValueRequest"}, { GCP_CMD_NOTIFY_REQ, "notifyReq"}, { GCP_CMD_SVCCHG_REQ, "serviceChangeReq"}, { GCP_CMD_TOPOLOGY_REQ, "topologyReq"}, { GCP_CMD_CTX_ATTR_AUDIT_REQ, "ctxAttrAuditReq"}, { GCP_CMD_ADD_REPLY, "addReply"}, { GCP_CMD_MOVE_REPLY, "moveReply"}, { GCP_CMD_MOD_REPLY, "modReply"}, { GCP_CMD_SUB_REPLY, "subtractReply"}, { GCP_CMD_AUDITCAP_REPLY, "auditCapReply"}, { GCP_CMD_AUDITVAL_REPLY, "auditValReply"}, { GCP_CMD_NOTIFY_REPLY, "notifyReply"}, { GCP_CMD_SVCCHG_REPLY, "serviceChangeReply"}, { GCP_CMD_TOPOLOGY_REPLY, "topologyReply"}, { 0, NULL } }; const value_string gcp_term_types[] = { { GCP_TERM_TYPE_AAL1, "aal1" }, { GCP_TERM_TYPE_AAL2, "aal2" }, { GCP_TERM_TYPE_AAL1_STRUCT, "aal1struct" }, { GCP_TERM_TYPE_IP_RTP, "ipRtp" }, { GCP_TERM_TYPE_TDM, "tdm" }, { 0, NULL } }; static wmem_tree_t* gcp_msgs = NULL; static wmem_tree_t* gcp_trxs = NULL; static wmem_tree_t* gcp_ctxs_by_trx = NULL; static wmem_tree_t* gcp_ctxs = NULL; gcp_msg_t* gcp_msg(packet_info* pinfo, int o, gboolean keep_persistent_data) { gcp_msg_t* m; guint32 framenum = (guint32)pinfo->num; guint32 offset = (guint32)o; address* src = &(pinfo->src); address* dst = &(pinfo->dst); address* lo_addr; address* hi_addr; if (keep_persistent_data) { wmem_tree_key_t key[3]; key[0].length = 1; key[0].key = &(framenum); key[1].length = 1; key[1].key = &offset; key[2].length = 0; key[2].key =NULL; if (( m = (gcp_msg_t *)wmem_tree_lookup32_array(gcp_msgs,key) )) { m->committed = TRUE; return m; } else { m = wmem_new(wmem_file_scope(), gcp_msg_t); m->framenum = framenum; m->frametime = pinfo->abs_ts; m->trxs = NULL; m->committed = FALSE; wmem_tree_insert32_array(gcp_msgs,key,m); } } else { m = wmem_new0(pinfo->pool, gcp_msg_t); m->framenum = framenum; m->trxs = NULL; m->committed = FALSE; } if (cmp_address(src, dst) < 0) { lo_addr = src; hi_addr = dst; } else { lo_addr = dst; hi_addr = src; } switch(lo_addr->type) { case AT_NONE: m->lo_addr = 0; m->hi_addr = 0; break; case AT_IPv4: memcpy((guint8*)&(m->hi_addr),hi_addr->data,4); memcpy((guint8*)&(m->lo_addr),lo_addr->data,4); break; default: if (lo_addr->type == ss7pc_address_type) { m->hi_addr = mtp3_pc_hash((const mtp3_addr_pc_t *)hi_addr->data); m->lo_addr = mtp3_pc_hash((const mtp3_addr_pc_t *)lo_addr->data); } else { /* XXX: heuristic and error prone */ m->hi_addr = g_str_hash(address_to_str(pinfo->pool, hi_addr)); m->lo_addr = g_str_hash(address_to_str(pinfo->pool, lo_addr)); } break; } return m; } gcp_trx_t* gcp_trx(gcp_msg_t* m ,guint32 t_id , gcp_trx_type_t type, packet_info *pinfo, gboolean keep_persistent_data) { gcp_trx_t* t = NULL; gcp_trx_msg_t* trxmsg; if ( !m ) return NULL; if (keep_persistent_data) { if (m->committed) { for ( trxmsg = m->trxs; trxmsg; trxmsg = trxmsg->next) { if (trxmsg->trx && trxmsg->trx->id == t_id) { return trxmsg->trx; } } DISSECTOR_ASSERT_NOT_REACHED(); } else { wmem_tree_key_t key[4]; key[0].length = 1; key[0].key = &(m->hi_addr); key[1].length = 1; key[1].key = &(m->lo_addr); key[2].length = 1; key[2].key = &(t_id); key[3].length = 0; key[3].key = NULL; trxmsg = wmem_new(wmem_file_scope(), gcp_trx_msg_t); t = (gcp_trx_t *)wmem_tree_lookup32_array(gcp_trxs,key); if (!t) { t = wmem_new(wmem_file_scope(), gcp_trx_t); t->initial = m; t->id = t_id; t->type = type; t->pendings = 0; t->error = 0; t->cmds = NULL; wmem_tree_insert32_array(gcp_trxs,key,t); } /* XXX: request, reply and ack + point to frames where they are */ switch ( type ) { case GCP_TRX_PENDING: t->pendings++; break; default: break; } } } else { t = wmem_new(pinfo->pool, gcp_trx_t); trxmsg = wmem_new(pinfo->pool, gcp_trx_msg_t); t->initial = NULL; t->id = t_id; t->type = type; t->pendings = 0; t->error = 0; t->cmds = NULL; } DISSECTOR_ASSERT(trxmsg); trxmsg->trx = t; trxmsg->next = NULL; trxmsg->last = trxmsg; if (m->trxs) { m->trxs->last = m->trxs->last->next = trxmsg; } else { m->trxs = trxmsg; } return t; } gcp_ctx_t* gcp_ctx(gcp_msg_t* m, gcp_trx_t* t, guint32 c_id, packet_info *pinfo, gboolean persistent) { gcp_ctx_t* context = NULL; gcp_ctx_t** context_p = NULL; if ( !m || !t ) return NULL; if (persistent) { wmem_tree_key_t ctx_key[4]; wmem_tree_key_t trx_key[4]; ctx_key[0].length = 1; ctx_key[0].key = &(m->hi_addr); ctx_key[1].length = 1; ctx_key[1].key = &(m->lo_addr); ctx_key[2].length = 1; ctx_key[2].key = &(c_id); ctx_key[3].length = 0; ctx_key[3].key = NULL; trx_key[0].length = 1; trx_key[0].key = &(m->hi_addr); trx_key[1].length = 1; trx_key[1].key = &(m->lo_addr); trx_key[2].length = 1; trx_key[2].key = &(t->id); trx_key[3].length = 0; trx_key[3].key = NULL; if (m->committed) { if (( context = (gcp_ctx_t *)wmem_tree_lookup32_array(gcp_ctxs_by_trx,trx_key) )) { return context; } if ((context_p = (gcp_ctx_t **)wmem_tree_lookup32_array(gcp_ctxs,ctx_key))) { context = *context_p; do { if (context->initial->framenum <= m->framenum) { return context; } } while(( context = context->prev )); DISSECTOR_ASSERT(! "a context should exist"); } } else { if (c_id == CHOOSE_CONTEXT) { if (! ( context = (gcp_ctx_t *)wmem_tree_lookup32_array(gcp_ctxs_by_trx,trx_key))) { context = wmem_new(wmem_file_scope(), gcp_ctx_t); context->initial = m; context->cmds = NULL; context->id = c_id; context->terms.last = &(context->terms); context->terms.next = NULL; context->terms.term = NULL; wmem_tree_insert32_array(gcp_ctxs_by_trx,trx_key,context); } } else { if (( context = (gcp_ctx_t *)wmem_tree_lookup32_array(gcp_ctxs_by_trx,trx_key) )) { if (( context_p = (gcp_ctx_t **)wmem_tree_lookup32_array(gcp_ctxs,ctx_key) )) { if (context != *context_p) { if(context->id != CHOOSE_CONTEXT) { context = wmem_new(wmem_file_scope(), gcp_ctx_t); } context->initial = m; context->id = c_id; context->cmds = NULL; context->terms.last = &(context->terms); context->terms.next = NULL; context->terms.term = NULL; context->prev = *context_p; *context_p = context; } } else { context_p = wmem_new(wmem_file_scope(), gcp_ctx_t*); *context_p = context; context->initial = m; context->id = c_id; wmem_tree_insert32_array(gcp_ctxs,ctx_key,context_p); } } else if (! ( context_p = (gcp_ctx_t**)wmem_tree_lookup32_array(gcp_ctxs,ctx_key) )) { context = wmem_new(wmem_file_scope(), gcp_ctx_t); context->initial = m; context->id = c_id; context->cmds = NULL; context->terms.last = &(context->terms); context->terms.next = NULL; context->terms.term = NULL; context_p = wmem_new(wmem_file_scope(), gcp_ctx_t*); *context_p = context; wmem_tree_insert32_array(gcp_ctxs,ctx_key,context_p); } else { context = *context_p; } } } } else { context = wmem_new(pinfo->pool, gcp_ctx_t); context->initial = m; context->cmds = NULL; context->id = c_id; context->terms.last = &(context->terms); context->terms.next = NULL; context->terms.term = NULL; } return context; } gcp_cmd_t* gcp_cmd(gcp_msg_t* m, gcp_trx_t* t, gcp_ctx_t* c, gcp_cmd_type_t type, guint offset, packet_info *pinfo, gboolean persistent) { gcp_cmd_t* cmd; gcp_cmd_msg_t* cmdtrx; gcp_cmd_msg_t* cmdctx; if ( !m || !t || !c ) return NULL; if (persistent) { if (m->committed) { DISSECTOR_ASSERT(t->cmds != NULL); for (cmdctx = t->cmds; cmdctx; cmdctx = cmdctx->next) { cmd = cmdctx->cmd; if (cmd->msg == m && cmd->offset == offset) { return cmd; } } DISSECTOR_ASSERT(!"called for a command that does not exist!"); return NULL; } else { cmd = wmem_new(wmem_file_scope(), gcp_cmd_t); cmdtrx = wmem_new(wmem_file_scope(), gcp_cmd_msg_t); cmdctx = wmem_new(wmem_file_scope(), gcp_cmd_msg_t); } } else { cmd = wmem_new(pinfo->pool, gcp_cmd_t); cmdtrx = wmem_new(pinfo->pool, gcp_cmd_msg_t); cmdctx = wmem_new(pinfo->pool, gcp_cmd_msg_t); } cmd->type = type; cmd->offset = offset; cmd->terms.term = NULL; cmd->terms.next = NULL; cmd->terms.last = &(cmd->terms); cmd->str = NULL; cmd->msg = m; if ((type != GCP_CMD_NONE) && (!persistent)){ cmd->str = val_to_str_const(type, gcp_cmd_type, "Unknown"); } cmd->trx = t; cmd->ctx = c; cmd->error = 0; cmdctx->cmd = cmdtrx->cmd = cmd; cmdctx->next = cmdtrx->next = NULL; cmdctx->last = cmdtrx->last = NULL; if (t->cmds) { t->cmds->last->next = cmdtrx; t->cmds->last = cmdtrx; } else { t->cmds = cmdtrx; t->cmds->last = cmdtrx; } if (c->cmds) { c->cmds->last->next = cmdctx; c->cmds->last = cmdctx; } else { c->cmds = cmdctx; c->cmds->last = cmdctx; } return cmd; } gcp_term_t* gcp_cmd_add_term(gcp_msg_t* m, gcp_trx_t* tr, gcp_cmd_t* c, gcp_term_t* t, gcp_wildcard_t wildcard, packet_info *pinfo, gboolean persistent) { gcp_terms_t* ct; gcp_terms_t* ct2; static gcp_term_t all_terms = {"$",(const guint8*)"",1,GCP_TERM_TYPE_UNKNOWN,NULL,NULL,NULL}; if ( !c ) return NULL; if ( wildcard == GCP_WILDCARD_CHOOSE) { return &all_terms; } if (persistent) { if ( c->msg->committed ) { if (wildcard == GCP_WILDCARD_ALL) { for (ct = c->ctx->terms.next; ct; ct = ct->next) { /* XXX not handling more wilcards in one msg */ if ( ct->term->start == m ) { return ct->term; } } return NULL; } else { for (ct = c->ctx->terms.next; ct; ct = ct->next) { if ( g_str_equal(ct->term->str,t->str) ) { return ct->term; } } return NULL; } } else { for (ct = c->ctx->terms.next; ct; ct = ct->next) { if ( g_str_equal(ct->term->str,t->str) || ct->term->start == m) { break; } } if ( ! ct ) { if (wildcard == GCP_WILDCARD_ALL) { ct = wmem_new(wmem_file_scope(), gcp_terms_t); ct->next = NULL; ct->term = wmem_new0(wmem_file_scope(), gcp_term_t); ct->term->start = m; ct->term->str = "*"; ct->term->buffer = NULL; ct->term->len = 0; c->terms.last = c->terms.last->next = ct; ct2 = wmem_new0(wmem_file_scope(), gcp_terms_t); ct2->term = ct->term; c->ctx->terms.last->next = ct2; c->ctx->terms.last = ct2; return ct->term; } else { for (ct = c->ctx->terms.next; ct; ct = ct->next) { /* XXX not handling more wilcards in one msg */ if ( ct->term->buffer == NULL && tr->cmds->cmd->msg == ct->term->start ) { ct->term->str = wmem_strdup(wmem_file_scope(), t->str); ct->term->buffer = (const guint8 *)wmem_memdup(wmem_file_scope(), t->buffer,t->len); ct->term->len = t->len; ct2 = wmem_new0(wmem_file_scope(), gcp_terms_t); ct2->term = ct->term; c->terms.last = c->terms.last->next = ct2; return ct->term; } if ( g_str_equal(ct->term->str,t->str) ) { ct2 = wmem_new0(wmem_file_scope(), gcp_terms_t); ct2->term = ct->term; c->terms.last = c->terms.last->next = ct2; return ct->term; } } ct = wmem_new(wmem_file_scope(), gcp_terms_t); ct->next = NULL; ct->term = wmem_new0(wmem_file_scope(), gcp_term_t); ct->term->start = m; ct->term->str = wmem_strdup(wmem_file_scope(), t->str); ct->term->buffer = (const guint8 *)wmem_memdup(wmem_file_scope(), t->buffer,t->len); ct->term->len = t->len; ct2 = wmem_new0(wmem_file_scope(), gcp_terms_t); ct2->term = ct->term; c->terms.last = c->terms.last->next = ct2; ct2 = wmem_new0(wmem_file_scope(), gcp_terms_t); ct2->term = ct->term; c->ctx->terms.last = c->ctx->terms.last->next = ct2; return ct->term; } } else { ct2 = wmem_new0(wmem_file_scope(), gcp_terms_t); ct2->term = ct->term; c->terms.last = c->terms.last->next = ct2; return ct->term; } DISSECTOR_ASSERT_NOT_REACHED(); } } else { ct = wmem_new(pinfo->pool, gcp_terms_t); ct->term = t; ct->next = NULL; c->terms.last = c->terms.last->next = ct; return t; } } static const gchar* gcp_cmd_to_str(gcp_cmd_t* c, wmem_allocator_t *scope, gboolean persistent) { const gchar* s; gcp_terms_t* term; if ( !c ) return "-"; switch (c->type) { case GCP_CMD_NONE: return "-"; case GCP_CMD_ADD_REQ: s = "AddReq {"; break; case GCP_CMD_MOVE_REQ: s = "MoveReq {"; break; case GCP_CMD_MOD_REQ: s = "ModReq {"; break; case GCP_CMD_SUB_REQ: s = "SubReq {"; break; case GCP_CMD_AUDITCAP_REQ: s = "AuditCapReq {"; break; case GCP_CMD_AUDITVAL_REQ: s = "AuditValReq {"; break; case GCP_CMD_NOTIFY_REQ: s = "NotifyReq {"; break; case GCP_CMD_SVCCHG_REQ: s = "SvcChgReq {"; break; case GCP_CMD_TOPOLOGY_REQ: s = "TopologyReq {"; break; case GCP_CMD_CTX_ATTR_AUDIT_REQ: s = "CtxAttribAuditReq {"; break; case GCP_CMD_ADD_REPLY: s = "AddReply {"; break; case GCP_CMD_MOVE_REPLY: s = "MoveReply {"; break; case GCP_CMD_MOD_REPLY: s = "ModReply {"; break; case GCP_CMD_SUB_REPLY: s = "SubReply {"; break; case GCP_CMD_AUDITCAP_REPLY: s = "AuditCapReply {"; break; case GCP_CMD_AUDITVAL_REPLY: s = "AuditValReply {"; break; case GCP_CMD_NOTIFY_REPLY: s = "NotifyReply {"; break; case GCP_CMD_SVCCHG_REPLY: s = "SvcChgReply {"; break; case GCP_CMD_TOPOLOGY_REPLY: s = "TopologyReply {"; break; case GCP_CMD_REPLY: s = "ActionReply {"; break; case GCP_CMD_OTHER_REQ: s = "Request {"; break; default: s = "-"; break; } for (term = c->terms.next; term; term = term->next) { s = wmem_strdup_printf(scope, "%s %s", s, term->term->str); } if (c->error) { s = wmem_strdup_printf(scope, "%s Error=%i", s, c->error); } s = wmem_strdup_printf(scope, "%s }", s); if (persistent) { /* FIXME: this method has a side-effect but is buried deep within an apparently side-effect free string helper */ if (! c->str) c->str = wmem_strdup(wmem_file_scope(), s); } else { c->str = s; } return s; } static const gchar * gcp_trx_to_str(gcp_msg_t* m, gcp_trx_t* t, wmem_allocator_t *scope, gboolean persistent) { wmem_strbuf_t *s; gcp_cmd_msg_t* c; if ( !m || !t ) return "-"; s = wmem_strbuf_new(scope, NULL); wmem_strbuf_append_printf(s, "T %x { ", t->id); if (t->cmds) { if (t->cmds->cmd->ctx) { wmem_strbuf_append_printf(s, " C %x {", t->cmds->cmd->ctx->id); for (c = t->cmds; c; c = c->next) { if (c->cmd->msg == m) { wmem_strbuf_append_c(s, ' '); wmem_strbuf_append(s, gcp_cmd_to_str(c->cmd, scope, persistent)); } } wmem_strbuf_append(s, " }"); } } if (t->error) { wmem_strbuf_append_printf(s, " Error=%i", t->error); } wmem_strbuf_append(s, " }"); return wmem_strbuf_finalize(s); } const gchar* gcp_msg_to_str(gcp_msg_t* m, wmem_allocator_t *scope, gboolean persistent) { gcp_trx_msg_t* t; wmem_strbuf_t *s; if ( !m ) return "-"; s = wmem_strbuf_new(scope, NULL); for (t = m->trxs; t; t = t->next) { wmem_strbuf_append_c(s, ' '); wmem_strbuf_append(s, gcp_trx_to_str(m, t->trx, scope, persistent)); } return wmem_strbuf_finalize(s); } typedef struct _gcp_ctxs_t { struct _gcp_ctx_t* ctx; struct _gcp_ctxs_t* next; } gcp_ctxs_t; /*static const gchar* trx_types[] = {"None","Req","Reply","Pending","Ack"};*/ void gcp_analyze_msg(proto_tree* gcp_tree, packet_info* pinfo, tvbuff_t* gcp_tvb, gcp_msg_t* m, gcp_hf_ett_t* ids, expert_field* command_err) { gcp_trx_msg_t* t; gcp_ctxs_t contexts = {NULL,NULL}; gcp_ctxs_t* ctx_node; gcp_cmd_msg_t* c; for (t = m->trxs; t; t = t->next) { for (c = t->trx->cmds; c; c = c->next) { gcp_ctx_t* ctx = c->cmd->ctx; for (ctx_node = contexts.next; ctx_node; ctx_node = ctx_node->next) { if (ctx_node->ctx->id == ctx->id) { break; } } if (! ctx_node) { ctx_node = wmem_new(pinfo->pool, gcp_ctxs_t); ctx_node->ctx = ctx; ctx_node->next = contexts.next; contexts.next = ctx_node; } } } for (ctx_node = contexts.next; ctx_node; ctx_node = ctx_node->next) { gcp_ctx_t* ctx = ctx_node->ctx; proto_item* ctx_item = proto_tree_add_uint(gcp_tree,ids->hf.ctx,gcp_tvb,0,0,ctx->id); proto_tree* ctx_tree = proto_item_add_subtree(ctx_item,ids->ett.ctx); gcp_terms_t *ctx_term; proto_item_set_generated(ctx_item); if (ctx->cmds) { proto_tree* history_tree = proto_tree_add_subtree(ctx_tree,gcp_tvb,0,0,ids->ett.ctx_cmds,NULL,"[ Command History ]"); for (c = ctx->cmds; c; c = c->next) { proto_item* cmd_item = proto_tree_add_uint(history_tree,ids->hf.ctx_cmd,gcp_tvb,0,0,c->cmd->msg->framenum); if (c->cmd->str) proto_item_append_text(cmd_item," %s ",c->cmd->str); proto_item_set_generated(cmd_item); if (c->cmd->error) { expert_add_info(pinfo, cmd_item, command_err); } } } if (( ctx_term = ctx->terms.next )) { proto_tree* terms_tree = proto_tree_add_subtree(ctx_tree,gcp_tvb,0,0,ids->ett.ctx_terms,NULL,"[ Terminations Used ]"); for (; ctx_term; ctx_term = ctx_term->next ) { if ( ctx_term->term && ctx_term->term->str) { proto_item* pi = proto_tree_add_string(terms_tree,ids->hf.ctx_term,gcp_tvb,0,0,ctx_term->term->str); proto_tree* term_tree = proto_item_add_subtree(pi,ids->ett.ctx_term); proto_item_set_generated(pi); if (ctx_term->term->type) { pi = proto_tree_add_uint(term_tree,ids->hf.ctx_term_type,gcp_tvb,0,0,ctx_term->term->type); proto_item_set_generated(pi); } if (ctx_term->term->bir) { pi = proto_tree_add_string(term_tree,ids->hf.ctx_term_bir,gcp_tvb,0,0,ctx_term->term->bir); proto_item_set_generated(pi); } if (ctx_term->term->nsap) { pi = proto_tree_add_string(term_tree,ids->hf.ctx_term_nsap,gcp_tvb,0,0,ctx_term->term->nsap); proto_item_set_generated(pi); } if (ctx_term->term->bir && ctx_term->term->nsap) { gchar* tmp_key = wmem_strdup_printf(pinfo->pool, "%s:%s",ctx_term->term->nsap,ctx_term->term->bir); gchar* key = g_ascii_strdown(tmp_key, -1); alcap_tree_from_bearer_key(term_tree, gcp_tvb, pinfo, key); g_free(key); } } } } } } /* END Gateway Control Protocol -- Context Tracking */ #define H248_PORT 2945 static gboolean keep_persistent_data = FALSE; static gboolean h248_desegment = TRUE; static proto_tree *h248_tree; static dissector_handle_t h248_handle; static dissector_handle_t h248_term_handle; static dissector_handle_t h248_tpkt_handle; /* Forward declarations */ static int dissect_h248_ServiceChangeReasonStr(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); /* h248v1 support */ static int dissect_h248_AuditReplyV1(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); static int dissect_h248_EventParameterV1(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); static int dissect_h248_SigParameterV1(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); static int dissect_h248_SigParamValueV1(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); #if 0 static const value_string context_id_type[] = { {NULL_CONTEXT,"0 (Null Context)"}, {CHOOSE_CONTEXT,"$ (Choose Context)"}, {ALL_CONTEXTS,"* (All Contexts)"}, {0,NULL} }; #endif /* the following value_strings are used to build defalut packages. To add additional detail to a package, build a register a h248_package_t structure */ static const value_string base_package_name_vals[] = { { 0x0000, "Media stream properties H.248.1 Annex C" }, { 0x0001, "Generic H.248.1 Annex E" }, { 0x0002, "root H.248.1 Annex E" }, { 0x0003, "tonegen H.248.1 Annex E" }, { 0x0004, "tonedet H.248.1 Annex E" }, { 0x0005, "dg H.248.1 Annex E" }, { 0x0006, "dd H.248.1 Annex E" }, { 0x0007, "cg H.248.1 Annex E" }, { 0x0008, "cd H.248.1 Annex E" }, { 0x0009, "al H.248.1 Annex E" }, { 0x000a, "ct H.248.1 Annex E" }, { 0x000b, "nt H.248.1 Annex E" }, { 0x000c, "rtp H.248.1 Annex E" }, { 0x000d, "tdmc H.248.1 Annex E" }, { 0x000e, "ftmd H.248.1 Annex E" }, { 0x000f, "txc H.248.2" }, /* H.248.2 */ { 0x0010, "txp H.248.2" }, { 0x0011, "ctyp H.248.2" }, { 0x0012, "fax H.248.2" }, { 0x0013, "ipfax H.248.2" }, { 0x0014, "dis H.248.3" }, /* H.248.3 */ { 0x0015, "key H.248.3" }, { 0x0016, "kp H.248.3" }, { 0x0017, "labelkey H.248.3" }, { 0x0018, "kf H.248.3" }, { 0x0019, "ind H.248.3" }, { 0x001a, "ks H.248.3" }, { 0x001b, "anci H.248.3" }, { 0x001c, "dtd H.248.6" }, /* H.248.6 */ { 0x001d, "an H.248.7" }, /* H.248.7 */ { 0x001e, "Bearer Characteristics Q.1950 Annex A" }, /* Q.1950 Annex A */ { 0x001f, "Bearer Network Connection Cut Q.1950 Annex A" }, { 0x0020, "Reuse Idle Q.1950 Annex A" }, { 0x0021, "Generic Bearer Connection Q.1950 Annex A" }, { 0x0022, "Bearer Control Tunnelling Q.1950 Annex A" }, { 0x0023, "Basic Call Progress Tones Q.1950 Annex A" }, { 0x0024, "Expanded Call Progress Tones Q.1950 Annex A" }, { 0x0025, "Basic Services Tones Q.1950 Annex A" }, { 0x0026, "Expanded Services Tones Q.1950 Annex A" }, { 0x0027, "Intrusion Tones Q.1950 Annex A" }, { 0x0028, "Business Tones Q.1950 Annex A" }, { 0x0029, "Media Gateway Resource Congestion Handling H.248.10" }, /* H.248.10 */ { 0x002a, "H245 package H.248.12" }, /* H.248.12 */ { 0x002b, "H323 bearer control package H.248.12" }, /* H.248.12 */ { 0x002c, "H324 package H.248.12" }, /* H.248.12 */ { 0x002d, "H245 command package H.248.12" }, /* H.248.12 */ { 0x002e, "H245 indication package H.248.12" }, /* H.248.12 */ { 0x002f, "3G User Plane" }, /* 3GPP TS 29.232 v4.1.0 */ { 0x0030, "3G Circuit Switched Data" }, { 0x0031, "3G TFO Control" }, { 0x0032, "3G Expanded Call Progress Tones" }, { 0x0033, "Advanced Audio Server (AAS Base)" }, /* H.248.9 */ { 0x0034, "AAS Digit Collection" }, /* H.248.9 */ { 0x0035, "AAS Recording" }, /* H.248.9 */ { 0x0036, "AAS Segment Management" }, /* H.248.9 */ { 0x0037, "Quality Alert Ceasing" }, /* H.248.13 */ { 0x0038, "Conferencing Tones Generation" }, /* H.248.27 */ { 0x0039, "Diagnostic Tones Generation" }, /* H.248.27 */ { 0x003a, "Carrier Tones Generation Package H.248.23" }, /* H.248.27 */ { 0x003b, "Enhanced Alerting Package H.248.23" }, /* H.248.23 */ { 0x003c, "Analog Display Signalling Package H.248.23" }, /* H.248.23 */ { 0x003d, "Multi-Frequency Tone Generation Package H.248.24" }, /* H.248.24 */ { 0x003e, "H.248.23Multi-Frequency Tone Detection Package H.248.24" }, /* H.248.24 */ { 0x003f, "Basic CAS Package H.248.25" }, /* H.248.25 */ { 0x0040, "Robbed Bit Signalling Package H.248.25" }, /* H.248.25 */ { 0x0041, "Operator Services and Emergency Services Package H.248.25" }, { 0x0042, "Operator Services Extension Package H.248.25" }, { 0x0043, "Extended Analog Line Supervision Package H.248.26" }, { 0x0044, "Automatic Metering Package H.248.26" }, { 0x0045, "Inactivity Timer Package H.248.14" }, { 0x0046, "3G Modification of Link Characteristics Bearer Capability" }, /* 3GPP TS 29.232 v4.4.0 */ { 0x0047, "Base Announcement Syntax H.248.9" }, { 0x0048, "Voice Variable Syntax H.248.9" }, { 0x0049, "Announcement Set Syntax H.248.9" }, { 0x004a, "Phrase Variable Syntax H.248.9" }, { 0x004b, "Basic NAS package" }, { 0x004c, "NAS incoming package" }, { 0x004d, "NAS outgoing package" }, { 0x004e, "NAS control package" }, { 0x004f, "NAS root package" }, { 0x0050, "Profile Handling Package H.248.18" }, { 0x0051, "Media Gateway Overload Control Package H.248.11" }, { 0x0052, "Extended DTMF Detection Package H.248.16" }, { 0x0053, "Quiet Termination Line Test" }, { 0x0054, "Loopback Line Test Response" }, /* H.248.17 */ { 0x0055, "ITU 404Hz Line Test" }, /* H.248.17 */ { 0x0056, "ITU 816Hz Line Test" }, /* H.248.17 */ { 0x0057, "ITU 1020Hz Line Test" }, /* H.248.17 */ { 0x0058, "ITU 2100Hz Disable Tone Line Test" }, /* H.248.17 */ { 0x0059, "ITU 2100Hz Disable Echo Canceller Tone Line Test" }, /* H.248.17 */ { 0x005a, "ITU 2804Hz Tone Line Test" }, /* H.248.17 */ { 0x005b, "ITU Noise Test Tone Line Test" }, /* H.248.17 */ { 0x005c, "ITU Digital Pseudo Random Test Line Test" }, /* H.248.17 */ { 0x005d, "ITU ATME No.2 Test Line Response" }, /* H.248.17 */ { 0x005e, "ANSI 1004Hz Test Tone Line Test" }, /* H.248.17 */ { 0x005f, "ANSI Test Responder Line Test" }, /* H.248.17 */ { 0x0060, "ANSI 2225Hz Test Progress Tone Line Test" }, /* H.248.17 */ { 0x0061, "ANSI Digital Test Signal Line Test" }, /* H.248.17 */ { 0x0062, "ANSI Inverting Loopback Line Test Response" }, /* H.248.17 */ { 0x0063, "Extended H.324 Packages H.248.12 Annex A" }, { 0x0064, "Extended H.245 Command Package H.248.12 Annex A" }, { 0x0065, "Extended H.245 Indication Package H.248.12 Annex A" }, { 0x0066, "Enhanced DTMF Detection Package H.248.16" }, { 0x0067, "Connection Group Identity Package Q.1950 Annex E" }, { 0x0068, "CTM Text Transport 3GPP TS 29.232 v5.2.0" }, { 0x0069, "SPNE Control Package Q.115.0" }, { 0x006a, "Semi-permanent Connection Package H.248.21" }, { 0x006b, "Shared Risk Group Package H.248.22" }, { 0x006c, "isuptn Annex B of ITU-T Rec. J.171" }, { 0x006d, "Basic CAS Addressing Package H.248.25" }, { 0x006e, "Floor Control Package H.248.19" }, { 0x006f, "Indication of Being Viewed Package H.248.19" }, { 0x0070, "Volume Control Package H.248.19" }, { 0x0071, "UNASSIGNED" }, { 0x0072, "Volume Detection Package H.248.19" }, { 0x0073, "Volume Level Mixing Package H.248.19" }, { 0x0074, "Mixing Volume Level Control Package H.248.19" }, { 0x0075, "Voice Activated Video Switch Package H.248.19" }, { 0x0076, "Lecture Video Mode Package H.248.19" }, { 0x0077, "Contributing Video Source Package H.248.19" }, { 0x0078, "Video Window Package H.248.19" }, { 0x0079, "Tiled Window Package H.248.19" }, { 0x007a, "Adaptive Jitter Buffer Package H.248.31" }, { 0x007b, "International CAS Package H.248.28" }, { 0x007c, "CAS Blocking Package H.248.28" }, { 0x007d, "International CAS Compelled Package H.248.29" }, { 0x007e, "International CAS Compelled with Overlap Package H.248.29" }, { 0x007f, "International CAS Compelled with End-to-end Package H.248.29" }, { 0x0080, "RTCP XR Package H.248.30" }, { 0x0081, "RTCP XR Burst Metrics Package H.248.30" }, { 0x0082, "threegcsden 3G Circuit Switched Data" }, /* 3GPP TS 29.232 v5.6.0 */ { 0x0083, "threegiptra 3G Circuit Switched Data" }, /* 3GPP TS 29.232 v5.6.0 */ { 0x0084, "threegflex 3G Circuit Switched Data" }, /* 3GPP TS 29.232 v5.6.0 */ { 0x0085, "H.248 PCMSB" }, { 0x008a, "TIPHON Extended H.248/MEGACO Package" }, /* ETSI specification TS 101 3 */ { 0x008b, "Differentiated Services Package" }, /* Annex A of ETSI TS 102 333 */ { 0x008c, "Gate Management Package" }, /* Annex B of ETSI TS 102 333 */ { 0x008d, "Traffic Management Package" }, /* Annex C of ETSI TS 102 333 */ { 0x008e, "Gate Recovery Information Package" }, /* Annex D of ETSI TS 102 333 */ { 0x008f, "NAT Traversal Package" }, /* Annex E of ETSI TS 102 333 */ { 0x0090, "MPLS Package" }, /* Annex F of ETSI TS 102 333 */ { 0x0091, "VLAN Package" }, /* Annex G of ETSI TS 102 333 */ { 0x0092, "Detailed Congestion Reporting Package" }, /* H.248.32 */ { 0x0093, "Stimulus Analogue Lines Package" }, /* H.248.34 */ { 0x0094, "icascgen" }, /* H.248.29 Annex B */ { 0x0095, "Coin Operated Phone Control Package" }, /* H.248.35 */ { 0x0096, "Metering Pulse Detection Package" }, /* H.248.26 Amendment 1 */ { 0x0097, "Trace Package" }, /* 3GPP TS 29.232 v6.3.0 */ { 0x0098, "Hanging Termination Package" }, /* H.248.36 */ { 0x0099, "IP NAPT Traversal Package" }, /* H.248.37 */ { 0x009a, "Notification Behaviour Package" }, /* H.248.1v3 */ { 0x009b, "Base Context Package" }, /* H.248.38 */ { 0x009c, "Application Data Inactivity Detection Package" }, /* H.248.40 */ { 0x009d, "Domain Connection Package " }, /* H.248.41 */ { 0x009e, "Digital Circuit Multiplication Equipment Package" }, /* H.248.42 */ { 0x009f, "Multi-level Precedence and Pre-emption Package" }, /* H.248.44 */ { 0x00a0, "MGC Information Package" }, /* H.248.45 */ { 0x00a1, "Text Overlay Package" }, /* H.248.19 Amendment 1 */ { 0x00a2, "Border and Background Package" }, /* H.248.19 Amendment 1 */ { 0x00a3, "Segmentation Package" }, /* H.248.1v3 */ { 0x00a4, "ETSI notification behaviour package" }, /* ETSI ES 283 039-3 */ { 0x00a5, "ETSI notification rate package" }, /* ETSI ES 283 039-4 */ { 0x00a6, "Automatic Speech Recognition Package" }, /* H.248.9 Amendment 1 */ { 0x00a7, "Set extension to basic syntax for TTS enhancement Package" },/* H.248.9 Amendment 1 */ { 0x00a8, "Advanced audio server base package for TTS enhancement" }, /* H.248.9 Amendment 1 */ { 0x00a9, "Multimedia Play Package" }, /* H.248.9 Amendment 1 */ { 0x00aa, "Floor Status Detection Package" }, /* H.248.19 Amendment 2 */ { 0x00ab, "Floor Control Policy Package" }, /* H.248.19 Amendment 2 */ { 0x00ac, "Address Reporting Package" }, /* H.248.37 Amendment 1 */ { 0x00ad, "Connection Capability Control Package" }, /* H.248.46 */ { 0x00ae, "Statistic Conditional Reporting Package" }, /* H.248.47 Amendment 1 */ { 0x00af, "RTCP HR QoS Statistics Package" }, /* H.248.48 */ { 0x00b0, "Received RTCP XR Package" }, /* H.248.30 (01/2007) */ { 0x00b1, "Received RTCP XR Burst Metrics Package" }, /* H.248.30 (01/2007) */ { 0x00b2, "ASCI Group call package" }, /* 3GPP TS 29.232 v7.4.0 */ { 0x00b3, "Multimedia Recording Package" }, /* H.248.9 Amendment 1 */ { 0x00b4, "H.245 Transport Package" }, /* H.248.12 Amendment 2 */ { 0x00b5, "RTCP Handling package" }, /* H.248.57 */ { 0x00b6, "Gate Management - Outgoing Destination Address/Port Filtering Package" },/* H.248.43 */ { 0x00b7, "Gate Management - Incoming Protocol Filtering Package" }, /* H.248.43 */ { 0x00b8, "Gate Management - Outgoing Protocol Filtering Package" }, /* H.248.43 */ { 0x00b9, "Gate Management - Incoming Filtering Behaviour Package" }, /* H.248.43 */ { 0x00ba, "Gate Management - Outgoing Filtering Behaviour Package" }, /* H.248.43 */ { 0x00bb, "Session Description Protocol RFC Package" }, /* H.248.49 */ { 0x00bc, "Session Description Protocol Capabilities Package" }, /* H.248.49 */ { 0x00bd, "NAT Traversal Toolkit - STUN Base Package" }, /* H.248.50 */ { 0x00be, "NAT Traversal Toolkit - MG STUN Client Package" }, /* H.248.50 */ { 0x00bf, "NAT Traversal Toolkit - MG TURN Client Package" }, /* H.248.50 */ { 0x00c0, "NAT Traversal Toolkit - MGC STUN Client Package" }, /* H.248.50 */ { 0x00c1, "NAT Traversal Toolkit - STUN Information Package" }, /* H.248.50 */ { 0x00c2, "NAT Traversal Toolkit - MG Act-as STUN Server Package" }, /* H.248.50 */ { 0x00c3, "NAT Traversal Toolkit - Originate STUN Continuity Check Package" }, /* H.248.50 */ { 0x00c4, "NAT Traversal Toolkit - MGC Originated STUN Request Package" }, /* H.248.50 */ { 0x00c5, "NAT Traversal Toolkit - RTP NOOP Request Package" }, /* H.248.50 */ { 0x00c6, "Termination Connection Model Package" }, /* H.248.51 */ { 0x00c7, "QoS Class Package" }, /* H.248.52 */ { 0x00c8, "Traffic Policing Statistics Package" }, /* H.248.53 */ { 0x00c9, "Packet Size Package" }, /* H.248.53 */ { 0x00ca, "Pull Mode Package" }, /* H.248.55 */ { 0x00cb, "RTP Application Data Package" }, /* H.248.58 */ { 0x00cc, "Event Timestamp Notification Package" }, /* H.248.59 */ { 0x00cd, "Resource Management Rules Package" }, /* H.248.63 */ { 0x00ce, "Resource Management Configuration Package" }, /* H.248.63 */ { 0x00cf, "Abstract Resource Management Packages" }, /* H.248.63 */ { 0x00d0, "IP layer octets count statistics Package" }, /* H.248.61 */ { 0x00d1, "Content of Communication Identity Package" }, /* H.248.60 */ { 0x00d2, "RSVP extension package" }, /* H.248.65 */ { 0x00d3, "GCP Transport Mode Indication Package" }, /* H.248.67 */ { 0x00d4, "IP Router Package" }, /* H.248.64 */ { 0x00d5, "Media Resource Identification Package" }, /* H.248.66 */ { 0x00d6, "Range Format Support Package" }, /* H.248.66 */ { 0x00d7, "Media Resource Description Expiry Package" }, /* H.248.66 */ { 0x00d8, "Media Block Size Package" }, /* H.248.66 */ { 0x00d9, "RTSP Media Resource Syntax Package" }, /* H.248.66 */ { 0x00da, "RTSP Play Package" }, /* H.248.66 */ { 0x00db, "Signal Pause Package" }, /* H.248.66 */ { 0x00dc, "Data Delivery Speed Adjustme Package" }, /* H.248.66 */ { 0x00dd, "Playback Relative Scale Adjustment Package" }, /* H.248.66 */ { 0x00de, "RTP Information Package" }, /* H.248.66 */ { 0x00df, "RTP Interleaving Package" }, /* H.248.66 */ { 0x00e0, "IP Realm Availability Package" }, /* H.248.41 Amendment 1 */ { 0x00e1, "General IP Header QoS Octet Package" }, /* H.248.52 */ { 0x00e2, "Re-answer Package" }, /* H.248.62 */ { 0x00e3, "3G Interface Type package" }, /* 3GPP TS 29.232 v8.4.0 */ { 0x00e4, "Latch Statistics Package" }, /* H.248.37 */ { 0x00e5, "Floor Control Signalling Package" }, /* H.248.19 Amendment 2 */ { 0x00e6, "Include Participant in Mix Package" }, /* H.248.19 Amendment 2 */ { 0x00e7, "Speaker Reporting Package" }, /* H.248.19 Amendment 2 */ { 0x00e8, "IP Layer Packet Count Statistics Package" }, /* H.248.61 */ { 0x00e9, "Removal of Digits and Tones Package" }, /* H.248.68 */ { 0x00ea, "MSRP Statistics Package" }, /* H.248.69 */ { 0x00eb, "MSRP Connection Status Package" }, /* H.248.69 */ { 0x00ec, "Play Message Package" }, /* H.248.69 */ { 0x00ed, "Delete Stored Message Package" }, /* H.248.69 */ { 0x00ee, "Message Session Information Package" }, /* H.248.69 */ { 0x00ef, "Message Filtering Package" }, /* H.248.69 */ { 0x00f0, "Stored Message Information Package" }, /* H.248.69 */ { 0x00f1, "Record Message Package" }, /* H.248.69 */ { 0x00f2, "Digit Dialling Method Information Package" }, /* H.248.70 */ { 0x00f3, "Digit Dialling Method Information for Extended Digitmap Detection Package" }, /* H.248.70 */ { 0x00f4, "Digit Dialling Method Information for Enhanced Digitmap Detection Package" }, /* H.248.70 */ { 0x00f5, "Received RTCP Package " }, /* H.248.71 */ { 0x00f6, "RTP Cumulative Loss Package" }, /* H.248.71 */ { 0x00f7, "H.245 Transport Package for SPC use" }, /* H.248.72 */ { 0x00f8, "MONA Preference Package" }, /* H.248.72 */ { 0x00f9, "TDM Gain Control Package" }, /* H.248.73 */ { 0x00fa, "Media Start Package" }, /* H.248.74 */ { 0x00fb, "Trim Package" }, /* H.248.74 */ { 0x00fc, "Enhanced Recording Package" }, /* H.248.74 */ { 0x00fd, "Enhanced ASR Package" }, /* H.248.74 */ { 0x00fe, "Enhanced TTS Package" }, /* H.248.74 */ { 0x00ff, "Play Offset Control Package" }, /* H.248.74 */ { 0x0100, "Enhanced DTMF Detection Package" }, /* H.248.9 Revised 2009 */ { 0x0101, "IP Router NAT Package" }, /* H.248.64 */ { 0x0102, "Voice Enrolled Grammar Package" }, /* H.248.74 */ { 0x0103, "Filter Group Package" }, /* H.248.76 */ { 0x0104, "RTCP Source Description Package" }, /* H.248.71 */ { 0x0105, "Speaker Verification and Identification Package" }, /* H.248.74 */ { 0x0106, "Package Identifier Publishing and Application Package" }, /* H.248 */ { 0x0107, "Secure RTP Package " }, /* H.248.77 */ { 0x0108, "MGC Controlled Bearer Level ALG Package" }, /* H.248.78 */ { 0x0109, "Enhanced Revised Offer/Answer SDP Support Package" }, /* H.248.80 */ { 0x010a, "Enhanced SDP Media Capabilities Negotiation Support Package" }, /* H.248.80 */ { 0x8000, "Ericsson IU" }, { 0x8001, "Ericsson UMTS and GSM Circuit" }, { 0x8002, "Ericsson Tone Generator Package" }, { 0x8003, "Ericsson Line Test Package" }, { 0x8004, "Nokia Advanced TFO Package" }, { 0x8005, "Nokia IWF Package" }, { 0x8006, "Nokia Root Package" }, { 0x8007, "Nokia Trace Package" }, { 0x8008, "Ericsson V5.2 Layer" }, { 0x8009, "Ericsson Detailed Termination Information Package" }, { 0x800a, "Nokia Bearer Characteristics Package" }, { 0x800b, "Nokia Test Call Package" }, { 0x800c, "Nokia Extended Continuity Package" }, { 0x800d, "Nokia IPnwR Package" }, { 0x800e, "Ericsson Tracing Enhancements Package" }, { 0x800f, "Ericsson Partially Wildcarded TerminationID Package" }, { 0x8010, "SCTP Stream Handling Package" }, {0, NULL} }; /* * This table consist of PackageName + EventName and its corresponding string * */ static const value_string base_event_name_vals[] = { { 0x00000000, "Media stream properties H.248.1 Annex C" }, { 0x00010000, "g H.248.1 Annex E" }, { 0x00010001, "g/Cause" }, { 0x00010002, "g/Signal Completion" }, { 0x00040000, "tonedet H.248.1 Annex E" }, { 0x00040001, "tonedet/std(Start tone detected)" }, { 0x00040002, "tonedet/etd(End tone detected)" }, { 0x00040003, "tonedet/ltd(Long tone detected)" }, { 0x00060000, "dd H.248.1 Annex E" }, { 0x00060001, "dd/std" }, { 0x00060002, "dd/etd" }, { 0x00060003, "dd/ltd" }, { 0x00060004, "dd, DigitMap Completion Event" }, { 0x00060010, "dd/d0, DTMF character 0" }, { 0x00060011, "dd/d1, DTMF character 1" }, { 0x00060012, "dd/d2, DTMF character 2" }, { 0x00060013, "dd/d3, DTMF character 3" }, { 0x00060014, "dd/d4, DTMF character 4" }, { 0x00060015, "dd/d5, DTMF character 5" }, { 0x00060016, "dd/d6, DTMF character 6" }, { 0x00060017, "dd/d7, DTMF character 7" }, { 0x00060018, "dd/d8, DTMF character 8" }, { 0x00060019, "dd/d9, DTMF character 9" }, { 0x0006001a, "dd/a, DTMF character A" }, { 0x0006001b, "dd/b, DTMF character B" }, { 0x0006001c, "dd/c, DTMF character C" }, { 0x0006001d, "dd/d, DTMF character D" }, { 0x00060020, "dd/" "*, DTMF character *" }, /* XXX: hack so checkAPIs & etc won't see a 'start of comment' */ { 0x00060021, "dd/#, DTMF character #" }, { 0x00080030, "cd, Dial Tone" }, { 0x00080031, "cd, Ringing Tone" }, { 0x00080032, "cd, Busy Tone" }, { 0x00080033, "cd, Congestion Tone" }, { 0x00080034, "cd, Special Information Tone" }, { 0x00080035, "cd, (Recording) Warning Tone" }, { 0x00080036, "cd, Payphone Recognition Tone" }, { 0x00080037, "cd, Call Waiting Tone" }, { 0x00080038, "cd, Caller Waiting Tone" }, { 0x00090004, "al, onhook" }, { 0x00090005, "al, offhook" }, { 0x00090006, "al, flashhook" }, { 0x0009ffff, "al, *" }, { 0x000a0005, "ct, Completion of Continuity test" }, { 0x000b0005, "nt, network failure" }, { 0x000b0006, "nt, quality alert" }, { 0x000c0001, "rtp, Payload Transition" }, { 0x00210000, "Generic Bearer Connection Q.1950 Annex A" }, { 0x00210001, "GB/BNCChange" }, { 0x00220001, "BT/TIND (Tunnel Indication)" }, { 0x002a0001, "H.245/h245msg (Incoming H.245 Message)" }, { 0x002a0004, "H.245/h245ChC (H.245 Channel Closed)" }, { 0x00450000, "Inactivity Timer H.248.14" }, { 0x00450001, "it/ito" }, { 0x00450002, "it/ito" }, { 0x00460001, "threegmlc/mod_link_supp (Bearer Modification Support Event)" }, { 0x00980000, "Hanging Termination Package" }, { 0x00980001, "Termination Heartbeat" }, { 0x800a0000, "Nokia Bearer Characteristics Package" }, {0, NULL} }; /* * This table consist of PackageName + SignalName and its corresponding string */ static const value_string base_signal_name_vals[] = { { 0x00000000, "Media stream properties H.248.1 Annex C" }, { 0x00010000, "g H.248.1 Annex E" }, { 0x00030001, "tonegen/pt(Play tone)" }, { 0x00050010, "dg, DTMF character 0" }, { 0x00050011, "dg, DTMF character 1" }, { 0x00050012, "dg, DTMF character 2" }, { 0x00050013, "dg, DTMF character 3" }, { 0x00050014, "dg, DTMF character 4" }, { 0x00050015, "dg, DTMF character 5" }, { 0x00050016, "dg, DTMF character 6" }, { 0x00050017, "dg, DTMF character 7" }, { 0x00050018, "dg, DTMF character 8" }, { 0x00050019, "dg, DTMF character 9" }, { 0x0005001a, "dg, DTMF character A" }, { 0x0005001b, "dg, DTMF character B" }, { 0x0005001c, "dg, DTMF character C" }, { 0x0005001d, "dg, DTMF character D" }, { 0x00050020, "dg, DTMF character *" }, { 0x00050021, "dg, DTMF character #" }, { 0x00070030, "cg, Dial Tone" }, { 0x00070031, "cg/rt (Ringing Tone)" }, { 0x00070032, "cg, Busy Tone" }, { 0x00070033, "cg, Congestion Tone" }, { 0x00070034, "cg, Special Information Tone" }, { 0x00070035, "cg, (Recording) Warning Tone" }, { 0x00070036, "cg, Payphone Recognition Tone" }, { 0x00070037, "cg, Call Waiting Tone" }, { 0x00070038, "cg, Caller Waiting Tone" }, { 0x00090002, "al, ring" }, { 0x0009ffff, "al, *" }, { 0x000a0003, "ct, Continuity test" }, { 0x000a0004, "ct, Continuity respond" }, { 0x00210000, "GB Generic Bearer Connection Q.1950 Annex A" }, { 0x00210001, "GB/EstBNC(Establish BNC)" }, { 0x00210002, "GB/ModBNC (Modify BNC)" }, { 0x00210003, "GB/RelBNC(Release BNC)" }, { 0x002a0001, "H.245/cs (channel state)" }, { 0x002a0002, "H.245/termtype (Terminal Type)" }, { 0x002c0001, "H.324/cmod (Communication mode)" }, { 0x002c0002, "H.324/muxlv (Highest Multiplexing level)" }, { 0x002c0003, "H.324/demux (Demultiplex)" }, { 0x002c0004, "H.324/h223capr (Remote H.223 capability)" }, { 0x002c0005, "H.324/muxtbl_in (Incoming Multiplex Table)" }, { 0x002c0006, "H.324/muxtbl_out (Outgoing Multiplex Table)" }, { 0x800a0000, "Nokia Bearer Characteristics Package" }, {0, NULL} }; static const value_string h248_reasons[] = { { 400, "Syntax error in message"}, { 401, "Protocol Error"}, { 402, "Unauthorized"}, { 403, "Syntax error in transaction request"}, { 406, "Version Not Supported"}, { 410, "Incorrect identifier"}, { 411, "The transaction refers to an unknown ContextId"}, { 412, "No ContextIDs available"}, { 413, "Number of transactions in message exceeds maximum"}, /* [H.248.8 (08/07)] */ { 421, "Unknown action or illegal combination of actions"}, { 422, "Syntax Error in Action"}, { 430, "Unknown TerminationID"}, { 431, "No TerminationID matched a wildcard"}, { 432, "Out of TerminationIDs or No TerminationID available"}, { 433, "TerminationID is already in a Context"}, { 434, "Max number of Terminations in a Context exceeded"}, { 435, "Termination ID is not in specified Context"}, { 440, "Unsupported or unknown Package"}, { 441, "Missing Remote or Local Descriptor"}, { 442, "Syntax Error in Command"}, { 443, "Unsupported or Unknown Command"}, { 444, "Unsupported or Unknown Descriptor"}, { 445, "Unsupported or Unknown Property"}, { 446, "Unsupported or Unknown Parameter"}, { 447, "Descriptor not legal in this command"}, { 448, "Descriptor appears twice in a command"}, { 449, "Unsupported or Unknown Parameter or Property Value"}, { 450, "No such property in this package"}, { 451, "No such event in this package"}, { 452, "No such signal in this package"}, { 453, "No such statistic in this package"}, { 454, "No such parameter value in this package"}, { 455, "Property illegal in this Descriptor"}, { 456, "Property appears twice in this Descriptor"}, { 457, "Missing parameter in signal or event"}, { 458, "Unexpected Event/Request ID"}, { 459, "Unsupported or Unknown Profile"}, { 460, "Unable to set statistic on stream"}, { 461, "Unsupported or Unknown Profile"}, /*[H.248.18] */ { 471, "Implied Add for Multiplex failure"}, { 472, "Required Information Missing"}, /*[H.248.8 (08/07)] */ { 473, "Conflicting Property Values"}, /*[H.248.8 (08/07)] */ { 474, "Invalid SDP Syntax"}, /*[H.248.49] */ { 475, "Unable to pause the playout of the signal"}, /*[H.248.66] */ { 476, "Unable to adjust the data delivery speed of the Signal"}, /*[H.248.66] */ { 477, "Unable to adjust the playback relative scale of the signal"}, /*[H.248.66] */ { 478, "Behaviour Contradicts Resource Rule"}, /*[H.248.63] */ { 500, "Internal software Failure in MG"}, { 501, "Not Implemented"}, { 502, "Not ready"}, { 503, "Service Unavailable"}, { 504, "Command Received from unauthorized entity"}, { 505, "Transaction Request Received before a Service Change Reply has been received"}, { 506, "Number of Transaction Pendings Exceeded"}, { 510, "Insufficient resources"}, { 511, "Temporarily Busy"}, /* [H.248.8 (08/07)] */ { 512, "Media Gateway unequipped to detect requested Event"}, { 513, "Media Gateway unequipped to generate requested Signals"}, { 514, "Media Gateway cannot send the specified announcement"}, { 515, "Unsupported Media Type"}, { 517, "Unsupported or invalid mode"}, { 518, "Event buffer full"}, { 519, "Out of space to store digit map"}, { 520, "Digit Map undefined in the MG"}, { 521, "Termination is ServiceChanging"}, { 522, "Functionality Requested in Topology Triple Not Supported"}, { 526, "Insufficient bandwidth"}, { 529, "Internal hardware failure in MG"}, { 530, "Temporary Network failure"}, { 531, "Permanent Network failure"}, { 532, "Audited Property, Statistic, Event or Signal does not exist"}, { 533, "Response exceeds maximum transport PDU size"}, { 534, "Illegal write or read only property"}, { 540, "Unexpected initial hook state"}, { 541, "Unexpected Spare Bit State"}, /* [H.248.33] */ { 542, "Command is not allowed on this termination"}, { 543, "MGC requested event detection timestamp not supported"}, /* [H.248.8 (08/07)] */ { 581, "Does Not Exist"}, { 600, "Illegal syntax within an announcement specification"}, { 601, "Variable type not supported"}, { 602, "Variable value out of range"}, { 603, "Category not supported"}, { 604, "Selector type not supported"}, { 605, "Selector value not supported"}, { 606, "Unknown segment ID"}, { 607, "Mismatch between play specification and provisioned data"}, { 608, "Provisioning error"}, { 609, "Invalid offset"}, { 610, "No free segment IDs"}, { 611, "Temporary segment not found"}, { 612, "Segment in use"}, { 613, "ISP port limit overrun"}, { 614, "No modems available"}, { 615, "Calling number unacceptable"}, { 616, "Called number unacceptable"}, { 617, "Reserved for H.248.9 return code"}, /* [H.248.9] */ { 618, "Reserved for H.248.9 return code"}, /* [H.248.9] */ { 622, "Reserved for H.248.9 return code"}, /* [H.248.9] */ { 623, "Reserved for H.248.9 return code"}, /* [H.248.9] */ { 624, "Reserved for H.248.9 return code"}, /* [H.248.9] */ { 625, "Reserved for H.248.9 return code"}, /* [H.248.9 Amendment 1] */ { 626, "Reserved for H.248.9 return code"}, /* [H.248.9 Amendment 1] */ { 627, "Reserved for H.248.9 return code"}, /* [H.248.9 Amendment 1] */ { 628, "Reserved for H.248.9 return code"}, /* [H.248.9 Amendment 1] */ { 629, "Reserved for H.248.9 return code"}, /* [H.248.9 Amendment 1] */ { 700, "Sieve Script Syntax Error"}, /* [H.248.69] */ { 701, "Unsupported Sieve Require Error"}, /* [H.248.69] */ { 702, "Sieve Actions Exceeded Error"}, /* [H.248.69] */ { 900, "Service Restored"}, { 901, "Cold Boot"}, { 902, "Warm Boot"}, { 903, "MGC Directed Change"}, { 904, "Termination malfunctioning"}, { 905, "Termination taken out of service"}, { 906, "Loss of lower layer connectivity (e.g. downstream sync)"}, { 907, "Transmission Failure"}, { 908, "MG Impending Failure"}, { 909, "MGC Impending Failure"}, { 910, "Media Capability Failure"}, { 911, "Modem Capability Failure"}, { 912, "Mux Capability Failure"}, { 913, "Signal Capability Failure"}, { 914, "Event Capability Failure"}, { 915, "State Loss"}, { 916, "Packages Change"}, { 917, "Capabilities Change"}, { 918, "Cancel Graceful"}, { 919, "Warm Failover"}, { 920, "Cold Failover"}, {0,NULL} }; static value_string_ext h248_reasons_ext = VALUE_STRING_EXT_INIT(h248_reasons); static const value_string wildcard_modes[] = { { 0, "Choose" }, { 1, "All" }, { 0, NULL } }; static const value_string wildcard_levels[] = { { 0, "This One Level" }, { 1, "This Level and those below" }, { 0, NULL } }; static h248_curr_info_t curr_info = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL}; static guint32 error_code; static guint32 h248_version = 0; /* h248v1 support */ static gcp_wildcard_t wild_term; static guint8 wild_card = 0xFF; /* place to store wildcardField */ /* Call the export PDU tap with relevant data */ static void export_h248_pdu(packet_info *pinfo, tvbuff_t *tvb) { if (have_tap_listener(exported_pdu_tap)) { exp_pdu_data_t *exp_pdu_data = export_pdu_create_common_tags(pinfo, "h248", EXP_PDU_TAG_DISSECTOR_NAME); exp_pdu_data->tvb_captured_length = tvb_captured_length(tvb); exp_pdu_data->tvb_reported_length = tvb_reported_length(tvb); exp_pdu_data->pdu_tvb = tvb; tap_queue_packet(exported_pdu_tap, pinfo, exp_pdu_data); } } extern void h248_param_ber_integer(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* u _U_, void* implicit) { asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); dissect_ber_integer(implicit ? *((bool*)implicit) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, NULL); } extern void h248_param_ber_octetstring(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* u _U_, void* implicit) { asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); dissect_ber_octet_string(implicit ? *((bool*)implicit) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, NULL); } extern void h248_param_ber_boolean(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* u _U_, void* implicit) { asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); dissect_ber_boolean(implicit ? *((bool*)implicit) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, NULL); } extern void h248_param_bytes_item(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo _U_, int hfid, h248_curr_info_t* h248_info _U_, void* lenp ) { int len = lenp ? *((int*)lenp) : -1; proto_tree_add_item(tree,hfid,tvb,0,len,ENC_NA); } extern void h248_param_uint_item(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo _U_, int hfid, h248_curr_info_t* h248_info _U_, void* lenp ) { int len = lenp ? *((int*)lenp) : -1; proto_tree_add_item(tree,hfid,tvb,0,len,ENC_BIG_ENDIAN); } extern void h248_param_external_dissector(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo , int hfid _U_, h248_curr_info_t* u _U_, void* dissector_hdl) { call_dissector((dissector_handle_t) dissector_hdl,tvb,pinfo,tree); } static const h248_package_t no_package = { 0xffff, &hf_h248_no_pkg, &ett_h248_no_pkg, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; static const h248_pkg_sig_t no_signal = { 0, &hf_h248_no_sig, &ett_h248_no_sig, NULL, NULL }; static const h248_pkg_param_t no_param = { 0, &hf_h248_param, h248_param_uint_item, NULL }; static const h248_pkg_evt_t no_event = { 0, &hf_h248_no_evt, &ett_h248_no_evt, NULL, NULL }; const h248_package_t *find_package_id(guint16 pkgid); static wmem_tree_t* packages = NULL; extern void h248_param_PkgdName(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo , int hfid _U_, h248_curr_info_t* u1 _U_, void* u2 _U_) { tvbuff_t *new_tvb = NULL; proto_tree *package_tree=NULL; guint16 name_major, name_minor; const h248_package_t* pkg = NULL; int offset = 0; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); offset = dissect_ber_octet_string(FALSE, &asn1_ctx, tree, tvb, offset, hfid , &new_tvb); if (new_tvb) { /* this field is always 4 bytes so just read it into two integers */ name_major=tvb_get_ntohs(new_tvb, 0); name_minor=tvb_get_ntohs(new_tvb, 2); pkg = find_package_id(name_major); /* do the prettification */ proto_item_append_text(asn1_ctx.created_item, " %s (%04x)", val_to_str_const(0, pkg->param_names, "Unknown Package"), name_major); if(tree){ proto_item* pi; const gchar* strval; package_tree = proto_item_add_subtree(asn1_ctx.created_item, ett_packagename); proto_tree_add_uint_format(package_tree, hf_h248_pkg_name, tvb, offset-4, 2, name_major, "%s (0x%04x)", val_to_str_const(0, pkg->param_names, "Unknown Package"), name_major); pi = proto_tree_add_uint(package_tree, hf_248_pkg_param, tvb, offset-2, 2, name_minor); if (pkg->signal_names && ( strval = try_val_to_str(name_minor, pkg->signal_names) )) { strval = wmem_strdup_printf(pinfo->pool, "%s (%d)",strval,name_minor); } else { strval = wmem_strdup_printf(pinfo->pool, "Unknown (%d)",name_minor); } proto_item_set_text(pi,"Signal ID: %s", strval); } } } static int dissect_h248_trx_id(bool implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32* trx_id_p) { guint64 trx_id = 0; gint8 ber_class; bool pc; gint32 tag; guint32 len; guint32 i; if(!implicit_tag){ offset=dissect_ber_identifier(pinfo, tree, tvb, offset, &ber_class, &pc, &tag); offset=dissect_ber_length(pinfo, tree, tvb, offset, &len, NULL); } else { len=tvb_reported_length_remaining(tvb, offset); } if (len > 8 || len < 1) { THROW(BoundsError); } else { for(i=1;i<=len;i++){ trx_id=(trx_id<<8)|tvb_get_guint8(tvb, offset); offset++; } if (trx_id > 0xffffffff) { proto_item* pi = proto_tree_add_uint64(tree, hf_h248_transactionId64, tvb, offset-len, len, trx_id); expert_add_info(pinfo, pi, &ei_h248_transactionId64); *trx_id_p = 0; } else { proto_tree_add_uint(tree, hf_h248_transactionId, tvb, offset-len, len, (guint32)trx_id); *trx_id_p = (guint32)trx_id; } } return offset; } static int dissect_h248_ctx_id(bool implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32* ctx_id_p) { gint8 ber_class; bool pc; gint32 tag; guint32 len; guint64 ctx_id = 0; guint32 i; if(!implicit_tag){ offset=dissect_ber_identifier(pinfo, tree, tvb, offset, &ber_class, &pc, &tag); offset=dissect_ber_length(pinfo, tree, tvb, offset, &len, NULL); } else { len=tvb_reported_length_remaining(tvb, offset); } if (len > 8 || len < 1) { THROW(BoundsError); } else { for(i=1;i<=len;i++){ ctx_id=(ctx_id<<8)|tvb_get_guint8(tvb, offset); offset++; } if (ctx_id > 0xffffffff) { proto_item* pi = proto_tree_add_uint64(tree, hf_h248_context_id64, tvb, offset-len, len, ctx_id); expert_add_info(pinfo, pi, &ei_h248_context_id64); *ctx_id_p = 0xfffffffd; } else { proto_item* pi = proto_tree_add_uint(tree, hf_h248_context_id, tvb, offset-len, len, (guint32)ctx_id); if ( ctx_id == NULL_CONTEXT ) { proto_item_set_text(pi,"contextId: Null Context(0)"); } else if ( ctx_id == CHOOSE_CONTEXT ) { proto_item_set_text(pi,"contextId: $ (Choose Context = 0xfffffffe)"); } else if ( ctx_id == ALL_CONTEXTS ) { proto_item_set_text(pi,"contextId: * (All Contexts = 0xffffffff)"); } *ctx_id_p = (guint32) ctx_id; } } return offset; } static s_h248_package_t *s_find_package_id(guint16 pkgid) { s_h248_package_t *s_pkg = NULL; s_pkg = (s_h248_package_t *)wmem_tree_lookup32(packages, (guint32)(pkgid)); return s_pkg; } const h248_package_t *find_package_id(guint16 pkgid) { s_h248_package_t *s_pkg = NULL; s_pkg = s_find_package_id(pkgid); /*(packages, GUINT_TO_POINTER((guint32)(pkgid))); */ if (! s_pkg ) return &no_package; return s_pkg->pkg; } static gboolean is_pkg_default(guint16 pkgid) { s_h248_package_t *s_pkg = NULL; s_pkg = (s_h248_package_t *)wmem_tree_lookup32(packages, (guint32)(pkgid)); if(! s_pkg ) return TRUE; return s_pkg->is_default; } void h248_register_package(h248_package_t* pkg, pkg_reg_action reg_action) { h248_package_t *pkg_found = NULL, *pkg_high = NULL, *pkg_low = NULL; s_h248_package_t *s_pkg = NULL; value_string *vst; gboolean pkg_default = FALSE; gint j = 0, idx = 0, i = 0, k = 0; if (! packages) { /* no packaegs are yet registerd so create tree and add default packages to tree */ packages = wmem_tree_new(wmem_epan_scope()); /* init tree if no entries */ while (base_package_name_vals[i].strptr != NULL) { pkg_found = wmem_new0(wmem_epan_scope(), h248_package_t); /* create a h248 package structure */ pkg_found->id = base_package_name_vals[i].value; vst = (value_string *)wmem_alloc0(wmem_epan_scope(), sizeof(value_string)*2); vst[0].strptr = base_package_name_vals[i].strptr; pkg_found->param_names = vst; pkg_found->hfid = &hf_h248_pkg_name; pkg_found->ett = &ett_packagename; try_val_to_str_idx((pkg_found->id)<<16,base_event_name_vals, &j); /* now look for events and signals that may be defined for package. If found, create value_strings */ if (j != -1) { j++; idx=j; while((base_event_name_vals[j].strptr!=NULL) && (((base_event_name_vals[j].value)>>16) == (pkg_found->id))) { j++; }; if (idx < j) { vst = (value_string *)wmem_alloc0(wmem_epan_scope(), sizeof(value_string)*(j-idx+1)); for (k=0;idx<j;k++) { vst[k].strptr = base_event_name_vals[idx].strptr; vst[k].value = (base_event_name_vals[idx].value & 0xffff); idx++; }; pkg_found->event_names = vst; } } /* now look at signals */ if (!try_val_to_str_idx((pkg_found->id)<<16, base_signal_name_vals, &j)) { j++; idx=j; while((base_signal_name_vals[j].strptr != NULL) && ((base_signal_name_vals[j].value>>16) == (pkg_found->id))) { j++; }; if (idx < j) { vst = (value_string *)wmem_alloc0(wmem_epan_scope(), sizeof(value_string)*(j-idx+1)); for (k=0;idx<j;k++) { vst[k].strptr = base_signal_name_vals[idx].strptr; vst[k].value = (base_signal_name_vals[idx].value &0xffff); idx++; }; pkg_found->signal_names = vst; } }; s_pkg = wmem_new0(wmem_epan_scope(), s_h248_package_t); s_pkg->is_default = TRUE; s_pkg->pkg = pkg_found; wmem_tree_insert32(packages, pkg_found->id, s_pkg); i++; }; pkg_found = NULL; /* reset pointer */ }; pkg_default = is_pkg_default(pkg->id); if (((reg_action==REPLACE_PKG) || (reg_action==ADD_PKG)) && pkg_default) { /* add/replace in tree */ s_pkg = wmem_new0(wmem_epan_scope(), s_h248_package_t); s_pkg->is_default = FALSE; s_pkg->pkg = (h248_package_t *)pkg; wmem_tree_insert32(packages, pkg->id, s_pkg); return; }; if(pkg_default) reg_action = MERGE_PKG_HIGH; /* always make new package overide default */ s_pkg = s_find_package_id(pkg->id); if (s_pkg == NULL) { /* no need to merge - package not in tree */ s_pkg = wmem_new0(wmem_epan_scope(), s_h248_package_t); s_pkg->is_default = FALSE; s_pkg->pkg = (h248_package_t *)pkg; wmem_tree_insert32(packages, pkg->id, s_pkg); return; } pkg_found = s_pkg->pkg; if (reg_action==MERGE_PKG_HIGH) { pkg_high = (h248_package_t *)pkg; pkg_low = pkg_found; }; if (reg_action==MERGE_PKG_LOW) { pkg_high = pkg_found; pkg_low = (h248_package_t *)pkg; }; if(pkg_high) { /* if h248_package_t High Priority value !NULL, replace it in the found tree entry else use current entry */ (pkg_high->hfid ? (pkg_found->hfid=pkg_high->hfid) : (pkg_found->hfid=pkg_low->hfid)); (pkg_high->ett ? (pkg_found->ett=pkg_high->ett ):( pkg_found->ett=pkg_low->ett)); (pkg_high->param_names ? (pkg_found->param_names=pkg_high->param_names ):( pkg_found->param_names=pkg_low->param_names)); (pkg_high->signal_names ? (pkg_found->signal_names=pkg_high->signal_names ):( pkg_found->signal_names=pkg_low->signal_names)); (pkg_high->event_names ? (pkg_found->event_names=pkg_high->event_names ):( pkg_found->event_names=pkg_low->event_names)); (pkg_high->stats_names ? (pkg_found->stats_names=pkg_high->stats_names ):( pkg_found->stats_names=pkg_low->stats_names)); (pkg_high->properties ? (pkg_found->properties=pkg_high->properties ):( pkg_found->properties=pkg_low->properties)); (pkg_high->signals ? (pkg_found->signals=pkg_high->signals ):( pkg_found->signals=pkg_low->signals)); (pkg_high->events ? (pkg_found->events=pkg_high->events ):( pkg_found->events=pkg_low->events)); (pkg_high->statistics ? (pkg_found->statistics=pkg_high->statistics ):( pkg_found->statistics=pkg_low->statistics)); s_pkg->pkg = pkg_found; s_pkg->is_default = FALSE; } } static guint32 packageandid; static int dissect_h248_PkgdName(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { tvbuff_t *new_tvb = NULL; proto_tree *package_tree=NULL; guint16 name_major, name_minor; const h248_package_t* pkg = NULL; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &new_tvb); if (new_tvb) { /* this field is always 4 bytes so just read it into two integers */ name_major=tvb_get_ntohs(new_tvb, 0); name_minor=tvb_get_ntohs(new_tvb, 2); packageandid=(name_major<<16)|name_minor; pkg = find_package_id(name_major); /* do the prettification */ proto_item_append_text(actx->created_item, " %s (%04x)", val_to_str_const(0, pkg->param_names, "Unknown Package"), name_major); if(tree){ package_tree = proto_item_add_subtree(actx->created_item, ett_packagename); proto_tree_add_uint_format(package_tree, hf_h248_pkg_name, tvb, offset-4, 2, name_major, "PkgName: %s (0x%04x)", val_to_str_const(0, pkg->param_names, "Unknown Package"), name_major); } { proto_item* pi = proto_tree_add_uint(package_tree, hf_248_pkg_param, tvb, offset-2, 2, name_minor); const gchar* strval; if (pkg->param_names && ( strval = try_val_to_str(name_minor, pkg->param_names) )) { strval = wmem_strdup_printf(actx->pinfo->pool, "%s (%d)",strval,name_minor); } else { strval = wmem_strdup_printf(actx->pinfo->pool, "Unknown (%d)",name_minor); } proto_item_set_text(pi,"Parameter: %s", strval); } } else { pkg = &no_package; } curr_info.pkg = pkg; return offset; } static int dissect_h248_EventName(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { tvbuff_t *new_tvb; proto_tree *package_tree=NULL; guint16 name_major, name_minor; const h248_package_t* pkg = NULL; const h248_pkg_evt_t* evt = NULL; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &new_tvb); if (new_tvb) { /* this field is always 4 bytes so just read it into two integers */ name_major=tvb_get_ntohs(new_tvb, 0); name_minor=tvb_get_ntohs(new_tvb, 2); packageandid=(name_major<<16)|name_minor; pkg = find_package_id(name_major); /* do the prettification */ proto_item_append_text(actx->created_item, " %s (%04x)", val_to_str_const(0, pkg->param_names, "Unknown Package"), name_major); if(tree){ package_tree = proto_item_add_subtree(actx->created_item, ett_packagename); } proto_tree_add_uint_format(package_tree, hf_h248_pkg_name, tvb, offset-4, 2, name_major, "%s (0x%04x)", val_to_str_const(0, pkg->param_names, "Unknown Package"), name_major); curr_info.pkg = pkg; if (pkg->events) { for (evt = pkg->events; evt->hfid; evt++) { if (name_minor == evt->id) { break; } } if (! evt->hfid) evt = &no_event; } else { evt = &no_event; } curr_info.evt = evt; { proto_item* pi = proto_tree_add_uint(package_tree, hf_h248_event_code, tvb, offset-2, 2, name_minor); const gchar* strval; if (pkg->event_names && ( strval = try_val_to_str(name_minor, pkg->event_names) )) { strval = wmem_strdup_printf(actx->pinfo->pool, "%s (%d)",strval,name_minor); } else { strval = wmem_strdup_printf(actx->pinfo->pool, "Unknown (%d)",name_minor); } proto_item_set_text(pi,"Event ID: %s", strval); } } else { curr_info.pkg = &no_package; curr_info.evt = &no_event; } return offset; } static int dissect_h248_SignalName(bool implicit_tag , tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { tvbuff_t *new_tvb; proto_tree *package_tree=NULL; guint16 name_major, name_minor; const h248_package_t* pkg = NULL; const h248_pkg_sig_t* sig; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &new_tvb); if (new_tvb) { /* this field is always 4 bytes so just read it into two integers */ name_major=tvb_get_ntohs(new_tvb, 0); name_minor=tvb_get_ntohs(new_tvb, 2); packageandid=(name_major<<16)|name_minor; pkg = find_package_id(name_major); /* do the prettification */ proto_item_append_text(actx->created_item, " %s (%04x)", val_to_str_const(0, pkg->param_names, "Unknown Package"), name_major); if(tree){ package_tree = proto_item_add_subtree(actx->created_item, ett_packagename); } proto_tree_add_uint_format(package_tree, hf_h248_pkg_name, tvb, offset-4, 2, name_major, "%s (0x%04x)", val_to_str_const(0, pkg->param_names, "Unknown Package"), name_major); if (pkg->signals) { for (sig = pkg->signals; sig->hfid; sig++) { if (name_minor == sig->id) { break; } } if (! sig->hfid) sig = &no_signal; curr_info.pkg = pkg; curr_info.sig = sig; } else { curr_info.pkg = &no_package; curr_info.sig = &no_signal; } { proto_item* pi = proto_tree_add_uint(package_tree, hf_h248_signal_code, tvb, offset-2, 2, name_minor); const gchar* strval; if (pkg->signal_names && ( strval = try_val_to_str(name_minor, pkg->signal_names) )) { strval = wmem_strdup_printf(actx->pinfo->pool, "%s (%d)",strval,name_minor); } else { strval = wmem_strdup_printf(actx->pinfo->pool, "Unknown (%d)",name_minor); } proto_item_set_text(pi,"Signal ID: %s", strval); } } else { curr_info.pkg = &no_package; curr_info.sig = &no_signal; } return offset; } static int dissect_h248_PropertyID(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_) { gint8 ber_class; bool pc, ind; gint32 tag; guint32 len; guint16 name_minor; int end_offset; const h248_package_t* pkg; const h248_pkg_param_t* prop; tvbuff_t *next_tvb = NULL; offset=dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &ber_class, &pc, &tag); offset=dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind); end_offset=offset+len; if( (ber_class!=BER_CLASS_UNI) ||(tag!=BER_UNI_TAG_OCTETSTRING) ){ proto_tree_add_expert_format(tree, actx->pinfo, &ei_h248_octet_string_expected, tvb, offset-2, 2, "H.248 BER Error: OctetString expected but Class:%d PC:%d Tag:%d was unexpected", ber_class, pc, tag); return end_offset; } next_tvb = tvb_new_subset_length(tvb,offset,len); name_minor = packageandid & 0xffff; pkg = (curr_info.pkg) ? curr_info.pkg : &no_package; if (pkg->properties) { for (prop = pkg->properties; prop && prop->hfid; prop++) { if (name_minor == prop->id) { break; } } } else { prop = &no_param; } if (prop && prop->hfid && prop->dissector) { prop->dissector(tree, next_tvb, actx->pinfo, *(prop->hfid), &curr_info, prop->data); } return end_offset; } static int dissect_h248_SigParameterName(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_) { tvbuff_t *next_tvb; guint32 param_id = 0xffffffff; const h248_pkg_param_t* sigpar; const gchar* strval; proto_item* pi; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &next_tvb); pi = actx->created_item; switch(tvb_reported_length(next_tvb)) { case 4: param_id = tvb_get_ntohl(next_tvb,0); break; case 3: param_id = tvb_get_ntoh24(next_tvb,0); break; case 2: param_id = tvb_get_ntohs(next_tvb,0); break; case 1: param_id = tvb_get_guint8(next_tvb,0); break; default: break; } curr_info.par = &no_param; if (curr_info.sig && curr_info.sig->parameters) { for(sigpar = curr_info.sig->parameters; sigpar->hfid; sigpar++) { if (sigpar->id == param_id) { curr_info.par = sigpar; break; } } } if (curr_info.sig && curr_info.sig->param_names && ( strval = try_val_to_str(param_id, curr_info.sig->param_names) )) { strval = wmem_strdup_printf(actx->pinfo->pool, "%s (%d)",strval,param_id); } else { strval = wmem_strdup_printf(actx->pinfo->pool, "Unknown (%d)",param_id); } proto_item_set_text(pi,"Parameter: %s", strval); return offset; } static int dissect_h248_SigParamValue(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_) { int end_offset; gint8 ber_class; bool pc, ind; gint32 tag; guint32 len; tvbuff_t *next_tvb = NULL; offset=dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &ber_class, &pc, &tag); offset=dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind); end_offset=offset+len; if( (ber_class!=BER_CLASS_UNI) ||(tag!=BER_UNI_TAG_OCTETSTRING) ){ proto_tree_add_expert_format(tree, actx->pinfo, &ei_h248_octet_string_expected, tvb, offset-2, 2, "H.248 BER Error: OctetString expected but Class:%d PC:%d Tag:%d was unexpected", ber_class, pc, tag); return end_offset; } next_tvb = tvb_new_subset_length(tvb,offset,len); if ( curr_info.par && curr_info.par->dissector) { curr_info.par->dissector(tree, next_tvb, actx->pinfo, *(curr_info.par->hfid), &curr_info, curr_info.par->data); } return end_offset; } static int dissect_h248_SigParamValueV1(bool implicit_tag _U_, tvbuff_t *tvb, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_) { return dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, NULL); } static int dissect_h248_EventParameterName(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_) { tvbuff_t *next_tvb; guint32 param_id = 0xffffffff; const h248_pkg_param_t* evtpar; const gchar* strval; proto_item* pi; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &next_tvb); pi = actx->created_item; if (next_tvb) { switch(tvb_reported_length(next_tvb)) { case 4: param_id = tvb_get_ntohl(next_tvb,0); break; case 3: param_id = tvb_get_ntoh24(next_tvb,0); break; case 2: param_id = tvb_get_ntohs(next_tvb,0); break; case 1: param_id = tvb_get_guint8(next_tvb,0); break; default: break; } } curr_info.par = &no_param; if (curr_info.evt && curr_info.evt->parameters) { for(evtpar = curr_info.evt->parameters; evtpar->hfid; evtpar++) { if (evtpar->id == param_id) { curr_info.par = evtpar; break; } } } else { curr_info.par = &no_param; } if (curr_info.evt && curr_info.evt->param_names && ( strval = try_val_to_str(param_id, curr_info.evt->param_names) )) { strval = wmem_strdup_printf(actx->pinfo->pool, "%s (%d)",strval,param_id); } else { strval = wmem_strdup_printf(actx->pinfo->pool, "Unknown (%d)",param_id); } proto_item_set_text(pi,"Parameter: %s", strval); return offset; } static int dissect_h248_EventParamValue(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_) { tvbuff_t *next_tvb; int end_offset; gint8 ber_class; bool pc, ind; gint32 tag; guint32 len; offset=dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &ber_class, &pc, &tag); offset=dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind); end_offset=offset+len; if( (ber_class!=BER_CLASS_UNI) ||(tag!=BER_UNI_TAG_OCTETSTRING) ){ proto_tree_add_expert_format(tree, actx->pinfo, &ei_h248_octet_string_expected, tvb, offset-2, 2, "H.248 BER Error: OctetString expected but Class:%d PC:%d Tag:%d was unexpected", ber_class, pc, tag); return end_offset; } next_tvb = tvb_new_subset_length(tvb,offset,len); if ( curr_info.par && curr_info.par->dissector) { curr_info.par->dissector(tree, next_tvb, actx->pinfo, *(curr_info.par->hfid), &curr_info, curr_info.par->data); } return end_offset; } static int dissect_h248_EventParamValueV1(bool implicit_tag _U_, tvbuff_t *tvb, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_) { return dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &tvb); } static int dissect_h248_MtpAddress(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { tvbuff_t *new_tvb; proto_tree *mtp_tree=NULL; guint32 val; int i, len, old_offset; old_offset=offset; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &new_tvb); if (new_tvb) { /* this field is either 2 or 4 bytes so just read it into an integer */ val=0; len=tvb_reported_length(new_tvb); for(i=0;i<len;i++){ val= (val<<8)|tvb_get_guint8(new_tvb, i); } /* do the prettification */ proto_item_append_text(actx->created_item, " NI = %d, PC = %d ( %d-%d )", val&0x03,val>>2,val&0x03,val>>2); if(tree){ mtp_tree = proto_item_add_subtree(actx->created_item, ett_mtpaddress); } proto_tree_add_uint(mtp_tree, hf_h248_mtpaddress_ni, tvb, old_offset, offset-old_offset, val&0x03); proto_tree_add_uint(mtp_tree, hf_h248_mtpaddress_pc, tvb, old_offset, offset-old_offset, val>>2); } return offset; } #define H248_TAP() do { if (keep_persistent_data && curr_info.cmd) tap_queue_packet(h248_tap, actx->pinfo, curr_info.cmd); } while(0) #include "packet-h248-fn.c" static int dissect_h248_tpkt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { dissect_tpkt_encap(tvb, pinfo, tree, h248_desegment, h248_handle); return tvb_captured_length(tvb); } static int dissect_h248(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_item *h248_item; asn1_ctx_t asn1_ctx; h248_tree = NULL; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); curr_info.msg = NULL; curr_info.trx = NULL; curr_info.ctx = NULL; curr_info.cmd = NULL; curr_info.term = NULL; curr_info.pkg = NULL; curr_info.evt = NULL; curr_info.sig = NULL; curr_info.stat = NULL; curr_info.par = NULL; /* Check if it is actually a text-based H.248 encoding, which we dissect with the "megaco" dissector in Wireshark. (Both encodings are MEGACO (RFC 3015) and both are H.248.) */ if(tvb_captured_length(tvb)>=6){ if(!tvb_strneql(tvb, 0, "MEGACO", 6)){ static dissector_handle_t megaco_handle=NULL; if(!megaco_handle){ megaco_handle = find_dissector("megaco"); } if(megaco_handle){ call_dissector(megaco_handle, tvb, pinfo, tree); return tvb_captured_length(tvb); } } { proto_item *hidden_item = NULL; guint32 magic_num = 0, offset = 0; magic_num = tvb_get_ntohl(tvb, offset); hidden_item = proto_tree_add_uint(tree, hf_248_magic_num, tvb, offset, 4, magic_num); proto_item_set_hidden(hidden_item); if( dissector_try_uint(subdissector_table, magic_num, tvb, pinfo, tree) ) { return tvb_captured_length(tvb); } } } export_h248_pdu(pinfo, tvb); /* Make entry in the Protocol column on summary display */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "H.248"); if (tree) { h248_item = proto_tree_add_item(tree, proto_h248, tvb, 0, -1, ENC_NA); h248_tree = proto_item_add_subtree(h248_item, ett_h248); } dissect_h248_MegacoMessage(FALSE, tvb, 0, &asn1_ctx, h248_tree, -1); return tvb_captured_length(tvb); } /*--- proto_register_h248 ----------------------------------------------*/ void proto_reg_handoff_h248(void); void proto_register_h248(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_248_magic_num, { "Magic Number for Avaya H.248", "h248.magic_num", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL}}, { &hf_h248_mtpaddress_ni, { "NI", "h248.mtpaddress.ni", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }}, { &hf_h248_mtpaddress_pc, { "PC", "h248.mtpaddress.pc", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }}, { &hf_h248_pkg_name, { "Package", "h248.package_name", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL }}, { &hf_248_pkg_param, { "Parameter ID", "h248.package_paramid", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL }}, { &hf_h248_signal_code, { "Signal ID", "h248.package_signalid", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL }}, { &hf_h248_event_code, { "Event ID", "h248.package_eventid", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL }}, { &hf_h248_event_name, { "Package and Event name", "h248.event_name", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }}, { &hf_h248_signal_name, { "Package and Signal name", "h248.signal_name", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }}, { &hf_h248_pkg_bcp_BNCChar_PDU, { "BNCChar", "h248.package_bcp.BNCChar", FT_UINT32, BASE_DEC, VALS(gcp_term_types), 0, NULL, HFILL }}, { &hf_h248_context_id, { "contextId", "h248.contextId", FT_UINT32, BASE_HEX, NULL, 0, "Context ID", HFILL }}, { &hf_h248_term_wild_type, { "Wildcard Mode", "h248.term.wildcard.mode", FT_UINT8, BASE_DEC, VALS(wildcard_modes), 0x80, NULL, HFILL }}, { &hf_h248_term_wild_level, { "Wildcarding Level", "h248.term.wildcard.level", FT_UINT8, BASE_DEC, VALS(wildcard_levels), 0x40, NULL, HFILL }}, { &hf_h248_term_wild_position, { "Wildcarding Position", "h248.term.wildcard.pos", FT_UINT8, BASE_DEC, NULL, 0x3F, NULL, HFILL }}, { &hf_h248_no_pkg, { "Unknown Package", "h248.pkg.unknown", FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_h248_no_sig, { "Unknown Signal", "h248.pkg.unknown.sig", FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_h248_no_evt, { "Unknown Event", "h248.pkg.unknown.evt", FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_h248_param, { "Parameter", "h248.pkg.unknown.param", FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_h248_serviceChangeReasonStr, { "ServiceChangeReasonStr", "h248.serviceChangeReasonstr", FT_STRING, BASE_NONE, NULL, 0, "h248.IA5String", HFILL }}, { &hf_h248_context_id64, { "contextId", "h248.contextId64", FT_UINT64, BASE_HEX, NULL, 0, "Context ID", HFILL }}, { &hf_h248_transactionId64, { "transactionId", "h248.transactionId", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL }}, /* h248v1 support */ { &hf_h248_auditValueReplyV1, { "auditValueReplyV1", "h248.auditValueReplyV1", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }}, #include "packet-h248-hfarr.c" GCP_HF_ARR_ELEMS("h248",h248_arrel) }; /* List of subtrees */ static gint *ett[] = { &ett_h248, &ett_mtpaddress, &ett_packagename, &ett_codec, &ett_wildcard, &ett_h248_no_pkg, &ett_h248_no_sig, &ett_h248_no_evt, GCP_ETT_ARR_ELEMS(h248_arrel), #include "packet-h248-ettarr.c" }; static ei_register_info ei[] = { { &ei_h248_errored_command, { "h248.errored_command", PI_RESPONSE_CODE, PI_WARN, "Errored Command", EXPFILL }}, { &ei_h248_transactionId64, { "h248.transactionId.error", PI_MALFORMED, PI_WARN, "Transaction ID invalid", EXPFILL }}, { &ei_h248_context_id64, { "h248.contextId.error", PI_MALFORMED, PI_WARN, "Context ID invalid", EXPFILL }}, { &ei_h248_octet_string_expected, { "h248.octet_string_expected", PI_PROTOCOL, PI_WARN, "H.248 BER Error: OctetString expected", EXPFILL }}, }; expert_module_t* expert_h248; module_t *h248_module; /* Register protocol */ proto_h248 = proto_register_protocol(PNAME, PSNAME, PFNAME); h248_handle = register_dissector("h248", dissect_h248, proto_h248); h248_tpkt_handle = register_dissector("h248.tpkt", dissect_h248_tpkt, proto_h248); /* Register fields and subtrees */ proto_register_field_array(proto_h248, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_h248 = expert_register_protocol(proto_h248); expert_register_field_array(expert_h248, ei, array_length(ei)); subdissector_table = register_dissector_table("h248.magic_num", "H.248 Magic Num", proto_h248, FT_UINT32, BASE_HEX); h248_module = prefs_register_protocol(proto_h248, NULL); prefs_register_bool_preference(h248_module, "ctx_info", "Track Context", "Maintain relationships between transactions and contexts and display an extra tree showing context data", &keep_persistent_data); prefs_register_bool_preference(h248_module, "desegment", "Desegment H.248 over TCP", "Desegment H.248 messages that span more TCP segments", &h248_desegment); gcp_msgs = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); gcp_trxs = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); gcp_ctxs_by_trx = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); gcp_ctxs = wmem_tree_new_autoreset(wmem_epan_scope(), wmem_file_scope()); h248_tap = register_tap("h248"); } /*--- proto_reg_handoff_h248 -------------------------------------------*/ void proto_reg_handoff_h248(void) { dissector_add_uint("mtp3.service_indicator", MTP_SI_GCP, h248_handle); h248_term_handle = find_dissector_add_dependency("h248term", proto_h248); dissector_add_uint_with_preference("tcp.port", H248_PORT, h248_tpkt_handle); dissector_add_uint_with_preference("udp.port", H248_PORT, h248_handle); ss7pc_address_type = address_type_get_by_name("AT_SS7PC"); exported_pdu_tap = find_tap_id(EXPORT_PDU_TAP_NAME_LAYER_7); }
C/C++
wireshark/epan/dissectors/asn1/h248/packet-h248-template.h
/* packet-h248.h * Definitions for H.248/MEGACO packet dissection * * Ronnie Sahlberg 2004 * Luis Ontanon 2005 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_H248_H #define PACKET_H248_H #include "ws_symbol_export.h" #include <epan/packet.h> #include <epan/expert.h> #include <wsutil/nstime.h> /* Gateway Control Protocol -- Context Tracking */ typedef struct _gcp_hf_ett_t { struct { int ctx; int ctx_cmd; int ctx_term; int ctx_term_type; int ctx_term_bir; int ctx_term_nsap; } hf; struct { gint ctx; gint ctx_cmds; gint ctx_terms; gint ctx_term; } ett; } gcp_hf_ett_t; #define NULL_CONTEXT 0 #define CHOOSE_CONTEXT 0xFFFFFFFE #define ALL_CONTEXTS 0xFFFFFFFF typedef enum { GCP_CMD_NONE, GCP_CMD_ADD_REQ, GCP_CMD_MOVE_REQ, GCP_CMD_MOD_REQ, GCP_CMD_SUB_REQ, GCP_CMD_AUDITCAP_REQ, GCP_CMD_AUDITVAL_REQ, GCP_CMD_NOTIFY_REQ, GCP_CMD_SVCCHG_REQ, GCP_CMD_TOPOLOGY_REQ, GCP_CMD_CTX_ATTR_AUDIT_REQ, GCP_CMD_OTHER_REQ, GCP_CMD_ADD_REPLY, GCP_CMD_MOVE_REPLY, GCP_CMD_MOD_REPLY, GCP_CMD_SUB_REPLY, GCP_CMD_AUDITCAP_REPLY, GCP_CMD_AUDITVAL_REPLY, GCP_CMD_NOTIFY_REPLY, GCP_CMD_SVCCHG_REPLY, GCP_CMD_TOPOLOGY_REPLY, GCP_CMD_REPLY } gcp_cmd_type_t; typedef enum { GCP_TRX_NONE, GCP_TRX_REQUEST, GCP_TRX_PENDING, GCP_TRX_REPLY, GCP_TRX_ACK } gcp_trx_type_t; typedef struct _gcp_msg_t { guint32 lo_addr; guint32 hi_addr; guint32 framenum; nstime_t frametime; struct _gcp_trx_msg_t* trxs; gboolean committed; } gcp_msg_t; typedef struct _gcp_trx_msg_t { struct _gcp_trx_t* trx; struct _gcp_trx_msg_t* next; struct _gcp_trx_msg_t* last; } gcp_trx_msg_t; typedef struct _gcp_cmd_msg_t { struct _gcp_cmd_t* cmd; struct _gcp_cmd_msg_t* next; struct _gcp_cmd_msg_t* last; } gcp_cmd_msg_t; typedef struct _gcp_trx_t { gcp_msg_t* initial; guint32 id; gcp_trx_type_t type; guint pendings; struct _gcp_cmd_msg_t* cmds; struct _gcp_trx_ctx_t* ctxs; guint error; } gcp_trx_t; #define GCP_TERM_TYPE_UNKNOWN 0 #define GCP_TERM_TYPE_AAL1 1 #define GCP_TERM_TYPE_AAL2 2 #define GCP_TERM_TYPE_AAL1_STRUCT 3 #define GCP_TERM_TYPE_IP_RTP 4 #define GCP_TERM_TYPE_TDM 5 typedef enum _gcp_wildcard_t { GCP_WILDCARD_NONE, GCP_WILDCARD_CHOOSE, GCP_WILDCARD_ALL } gcp_wildcard_t; typedef struct _gcp_term_t { const gchar* str; const guint8* buffer; guint len; guint type; gchar* bir; gchar* nsap; gcp_msg_t* start; } gcp_term_t; typedef struct _gcp_terms_t { gcp_term_t* term; struct _gcp_terms_t* next; struct _gcp_terms_t* last; } gcp_terms_t; typedef struct _gcp_cmd_t { guint offset; const gchar* str; gcp_cmd_type_t type; gcp_terms_t terms; struct _gcp_msg_t* msg; struct _gcp_trx_t* trx; struct _gcp_ctx_t* ctx; guint error; } gcp_cmd_t; typedef struct _gcp_ctx_t { gcp_msg_t* initial; guint32 id; struct _gcp_cmd_msg_t* cmds; struct _gcp_ctx_t* prev; gcp_terms_t terms; } gcp_ctx_t; extern gcp_msg_t* gcp_msg(packet_info* pinfo, int o, gboolean persistent); extern gcp_trx_t* gcp_trx(gcp_msg_t* m ,guint32 t_id , gcp_trx_type_t type, packet_info *pinfo, gboolean persistent); extern gcp_ctx_t* gcp_ctx(gcp_msg_t* m, gcp_trx_t* t, guint32 c_id, packet_info *pinfo, gboolean persistent); extern gcp_cmd_t* gcp_cmd(gcp_msg_t* m, gcp_trx_t* t, gcp_ctx_t* c, gcp_cmd_type_t type, guint offset, packet_info *pinfo, gboolean persistent); extern gcp_term_t* gcp_cmd_add_term(gcp_msg_t* m, gcp_trx_t* tr, gcp_cmd_t* c, gcp_term_t* t, gcp_wildcard_t wildcard, packet_info *pinfo, gboolean persistent); extern void gcp_analyze_msg(proto_tree* gcp_tree, packet_info* pinfo, tvbuff_t* gcp_tvb, gcp_msg_t* m, gcp_hf_ett_t* ids, expert_field* command_err); #define GCP_ETT_ARR_ELEMS(gi) &(gi.ett.ctx),&(gi.ett.ctx_cmds),&(gi.ett.ctx_terms),&(gi.ett.ctx_term) #define GCP_HF_ARR_ELEMS(n,gi) \ { &(gi.hf.ctx), { "Context", n ".ctx", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL }}, \ { &(gi.hf.ctx_term), { "Termination", n ".ctx.term", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, \ { &(gi.hf.ctx_term_type), { "Type", n ".ctx.term.type", FT_UINT32, BASE_HEX, VALS(gcp_term_types), 0, NULL, HFILL }}, \ { &(gi.hf.ctx_term_bir), { "BIR", n ".ctx.term.bir", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, \ { &(gi.hf.ctx_term_nsap), { "NSAP", n ".ctx.term.nsap", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }}, \ { &(gi.hf.ctx_cmd), { "Command in Frame", n ".ctx.cmd", FT_FRAMENUM, BASE_NONE, NULL, 0, NULL, HFILL }} WS_DLL_PUBLIC const value_string gcp_cmd_type[]; WS_DLL_PUBLIC const value_string gcp_term_types[]; extern const gchar* gcp_msg_to_str(gcp_msg_t* m, wmem_allocator_t *scope, gboolean persistent); #define gcp_cmd_set_error(c,e) (c->error = e) #define gcp_trx_set_error(t,e) (t->error = e) /* END Gateway Control Protocol -- Context Tracking */ typedef struct _h248_curr_info_t h248_curr_info_t; typedef void (*h248_pkg_param_dissector_t)(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo _U_, int hfid, h248_curr_info_t*, void*); extern void h248_param_bytes_item(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored); extern void h248_param_uint_item(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored); WS_DLL_PUBLIC void h248_param_ber_integer(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored); extern void h248_param_ber_octetstring(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored); extern void h248_param_ber_boolean(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored); extern void external_dissector(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* dissector_handle); extern void h248_param_PkgdName(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo , int hfid _U_, h248_curr_info_t* u _U_, void* dissector_hdl); extern void h248_param_external_dissector(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo , int hfid _U_, h248_curr_info_t* u _U_, void* dissector_hdl); typedef enum { ADD_PKG, /* add package at registration ONLY if no matching package ID */ REPLACE_PKG, /* replace/add package at registration */ MERGE_PKG_HIGH, /* merge h248_package_t at registration favor new package */ MERGE_PKG_LOW /* merge h248_package_t at registration favor current package */ } pkg_reg_action; typedef struct _h248_pkg_param_t { guint32 id; int* hfid; h248_pkg_param_dissector_t dissector; void* data; } h248_pkg_param_t; typedef struct _h248_pkg_sig_t { guint32 id; int* hfid; gint* ett; const h248_pkg_param_t* parameters; const value_string* param_names; } h248_pkg_sig_t; typedef struct _h248_pkg_evt_t { guint32 id; int* hfid; gint* ett; const h248_pkg_param_t* parameters; const value_string* param_names; } h248_pkg_evt_t; typedef struct _h248_pkg_stat_t { guint32 id; int* hfid; gint* ett; const h248_pkg_param_t* parameters; const value_string* param_names; } h248_pkg_stat_t; typedef struct _h248_package_t { guint32 id; /**< Package ID */ int* hfid; /**< hfid that will display the package name */ gint* ett; /**< The ett for this item */ const value_string* param_names; /**< The parameter names, Value 00000 should be the package name */ const value_string* signal_names; const value_string* event_names; const value_string* stats_names; const h248_pkg_param_t* properties; const h248_pkg_sig_t* signals; const h248_pkg_evt_t* events; const h248_pkg_stat_t* statistics; } h248_package_t; typedef struct _save_h248_package_t { h248_package_t *pkg; gboolean is_default; } s_h248_package_t; struct _h248_curr_info_t { gcp_ctx_t* ctx; gcp_trx_t* trx; gcp_msg_t* msg; gcp_term_t* term; gcp_cmd_t* cmd; const h248_package_t* pkg; const h248_pkg_evt_t* evt; const h248_pkg_sig_t* sig; const h248_pkg_stat_t* stat; const h248_pkg_param_t* par; }; typedef struct h248_term_info { guint8 wild_card; gchar *str; } h248_term_info_t; WS_DLL_PUBLIC void h248_register_package(h248_package_t* pkg, pkg_reg_action reg_action); #endif /* PACKET_H248_H */
Text
wireshark/epan/dissectors/asn1/h282/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h282 ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST RDC-PROTOCOL.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) ASN2WRS()
Configuration
wireshark/epan/dissectors/asn1/h282/h282.cnf
# h282.cnf # H.282 conformation file # 2007 Tomas Kukosa #.OPT PER ALIGNED #.END #.OMIT_ASSIGNMENT IrisContinuous #.END #.PDU RDCPDU NonCollapsingCapabilities #.END #.FIELD_RENAME CameraFilterCapability/filterTextLabel/_item/filterTextLabel filterTextLabel_deviceText #.FIELD_ATTR CameraFilterCapability/filterTextLabel/_item/filterTextLabel ABBREV=filterTextLabel.deviceText #.FN_PARS RequestPDU VAL_PTR = &msg_type #.FN_HDR gint32 msg_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(msg_type, VALS(h282_RequestPDU_vals)); if (p) col_add_fstr(actx->pinfo->cinfo, COL_INFO, "RequestPDU/%s", p); #.END #.FN_PARS ResponsePDU VAL_PTR = &msg_type #.FN_HDR gint32 msg_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(msg_type, VALS(h282_ResponsePDU_vals)); if (p) col_add_fstr(actx->pinfo->cinfo, COL_INFO, "ResponsePDU/%s", p); #.END #.FN_PARS IndicationPDU VAL_PTR = &msg_type #.FN_HDR gint32 msg_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(msg_type, VALS(h282_IndicationPDU_vals)); if (p) col_add_fstr(actx->pinfo->cinfo, COL_INFO, "IndicationPDU/%s", p); #.END
C
wireshark/epan/dissectors/asn1/h282/packet-h282-template.c
/* packet-h282.c * Routines for H.282 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> #include "packet-per.h" #define PNAME "H.282 Remote Device Control" #define PSNAME "RDC" #define PFNAME "rdc" void proto_register_h282(void); void proto_reg_handoff_h282(void); /* Initialize the protocol and registered fields */ static int proto_h282 = -1; #include "packet-h282-hf.c" /* Initialize the subtree pointers */ static int ett_h282 = -1; #include "packet-h282-ett.c" /* Dissectors */ /* Subdissectors */ #include "packet-h282-fn.c" static int dissect_h282(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { proto_item *ti = NULL; proto_tree *h282_tree = NULL; col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME); ti = proto_tree_add_item(tree, proto_h282, tvb, 0, -1, ENC_NA); h282_tree = proto_item_add_subtree(ti, ett_h282); return dissect_RDCPDU_PDU(tvb, pinfo, h282_tree, NULL); } /*--- proto_register_h282 ----------------------------------------------*/ void proto_register_h282(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-h282-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_h282, #include "packet-h282-ettarr.c" }; /* Register protocol */ proto_h282 = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_h282, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); register_dissector(PFNAME, dissect_h282, proto_h282); register_dissector(PFNAME".device_list", dissect_NonCollapsingCapabilities_PDU, proto_h282); } /*--- proto_reg_handoff_h282 -------------------------------------------*/ void proto_reg_handoff_h282(void) { }
ASN.1
wireshark/epan/dissectors/asn1/h282/RDC-PROTOCOL.asn
-- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h282/1999/RDC-PROTOCOL.asn -- Module RDC-PROTOCOL (H.282:02/1998) RDC-PROTOCOL {itu-t(0) recommendation(0) h 282 version(0) 1} DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- Export all symbols -- ========================================================================== -- Part 1: Message Components -- ========================================================================== H221NonStandardIdentifier ::= OCTET STRING(SIZE (4..255)) -- First four octets shall be country code and -- Manufacturer code, assigned as specified in -- H.221 Annex A for NS-cap and NS-comm Key ::= CHOICE -- Identifier of a standard or non-standard object { object OBJECT IDENTIFIER, h221NonStandard H221NonStandardIdentifier } NonStandardParameter ::= SEQUENCE {key Key, data OCTET STRING } Handle ::= INTEGER(0..4294967295) NonStandardIdentifier ::= CHOICE { object OBJECT IDENTIFIER, h221nonStandard H221NonStandardIdentifier } TextString ::= BMPString (SIZE (0..255)) -- Basic Multilingual Plane of ISO/IEC 10646-1 (Unicode) DeviceClass ::= CHOICE { camera NULL, microphone NULL, streamPlayerRecorder NULL, slideProjector NULL, lightSource NULL, sourceCombiner NULL, nonStandardDevice NonStandardIdentifier } DeviceID ::= INTEGER(0..127) StreamID ::= INTEGER(0..65535) DeviceProfile ::= SEQUENCE { deviceID DeviceID, audioSourceFlag BOOLEAN, audioSinkFlag BOOLEAN, videoSourceFlag BOOLEAN, videoSinkFlag BOOLEAN, remoteControlFlag BOOLEAN, instanceNumber INTEGER(0..255), deviceName TextString OPTIONAL, ... } StreamProfile ::= SEQUENCE { streamID StreamID, videoStreamFlag BOOLEAN, sourceChangeFlag BOOLEAN, streamName TextString OPTIONAL, ... } CapabilityID ::= CHOICE { standard INTEGER(0..65535), -- Assigned by this specification nonStandard Key } NonCollapsingCapabilities ::= SET OF SEQUENCE {capabilityID CapabilityID, applicationData CHOICE {deviceList SET SIZE (0..127) OF DeviceProfile, streamList SET SIZE (0..127) OF StreamProfile }} -- -- Attribute parameter types -- Day ::= INTEGER(1..31) Month ::= INTEGER(1..12) Year ::= INTEGER(1980..2999) Hour ::= INTEGER(0..23) Minute ::= INTEGER(0..59) DeviceText ::= OCTET STRING(SIZE (0..32)) PanPosition ::= INTEGER(-18000..18000) -- 100ths of a degree TiltPosition ::= INTEGER(-18000..18000) -- 100ths of a degree ZoomPosition ::= INTEGER(-1023..1023) IrisPosition ::= INTEGER(-127..127) FocusPosition ::= INTEGER(-127..127) CameraPanSpeed ::= INTEGER(1..18000) -- 100ths of a degree/sec CameraTiltSpeed ::= INTEGER(1..18000) -- 100ths of a degree/sec BackLight ::= INTEGER(0..255) WhiteBalance ::= INTEGER(0..255) PresetNumber ::= INTEGER(1..255) StreamPlayerState ::= CHOICE { playing NULL, recording NULL, pausedOnRecord NULL, pausedOnPlay NULL, rewinding NULL, fastForwarding NULL, searchingForwards NULL, searchingBackwards NULL, stopped NULL, programUnavailable NULL } DevicePresetCapability ::= SEQUENCE { maxNumber PresetNumber, presetCapability SET SIZE (0..255) OF SEQUENCE {presetNumber PresetNumber, storeModeSupported BOOLEAN, presetTextLabel DeviceText} OPTIONAL } CameraFilterCapability ::= SEQUENCE { maxNumberOfFilters INTEGER(2..255), filterTextLabel SET SIZE (0..255) OF SEQUENCE {filterNumber INTEGER(1..255), filterTextLabel DeviceText} OPTIONAL } CameraLensCapability ::= SEQUENCE { maxNumberOfLens INTEGER(2..255), accessoryTextLabel SET SIZE (0..255) OF SEQUENCE {lensNumber INTEGER(1..255), lensTextLabel DeviceText} OPTIONAL } ExternalCameraLightCapability ::= SEQUENCE { maxNumber INTEGER(1..10), lightTextLabel SET SIZE (0..10) OF SEQUENCE {lightNumber INTEGER(1..10), lightLabel DeviceText} OPTIONAL } CameraPanSpeedCapability ::= SEQUENCE { maxSpeed CameraPanSpeed, minSpeed CameraPanSpeed, speedStepSize CameraPanSpeed } CameraTiltSpeedCapability ::= SEQUENCE { maxSpeed CameraTiltSpeed, minSpeed CameraTiltSpeed, speedStepSize CameraTiltSpeed } MaxBacklight ::= INTEGER(1..255) MaxWhiteBalance ::= INTEGER(1..255) MinZoomPositionSetSize ::= INTEGER(1..1023) MinFocusPositionStepSize ::= INTEGER(1..127) MinIrisPositionStepSize ::= INTEGER(1..127) PanPositionCapability ::= SEQUENCE { maxLeft INTEGER(-18000..0), -- Max pan left maxRight INTEGER(0..18000), -- Max pan right minStepSize INTEGER(1..18000) } TiltPositionCapability ::= SEQUENCE { maxDown INTEGER(-18000..0), -- Max tilt down maxUp INTEGER(0..18000), -- Max tilt up minStepSize INTEGER(1..18000) } MinZoomMagnificationStepSize ::= INTEGER(1..1000) MaxNumberOfSlides ::= INTEGER(1..1024) MaxSlideDisplayTime ::= INTEGER(1..255) -- Max time in seconds MaxNumberOfPrograms ::= INTEGER(1..1023) PlayBackSpeedCapability ::= SEQUENCE { multiplierFactors SET SIZE (1..64) OF INTEGER(10..1000), divisorFactors SET SIZE (1..64) OF INTEGER(10..1000) } VideoInputsCapability ::= SEQUENCE { numberOfDeviceInputs INTEGER(2..64), numberOfDeviceRows INTEGER(1..64), -- The Optional Device list is only included if the inputs are configurable availableDevices SET SIZE (2..64) OF SEQUENCE {deviceClass DeviceClass, deviceIdentifier DeviceID} OPTIONAL } AudioInputsCapability ::= SEQUENCE { numberOfDeviceInputs INTEGER(2..64), -- The Optional Device list is only included if the inputs are configurable availableDevices SET SIZE (2..64) OF SEQUENCE {deviceClass DeviceClass, deviceIdentifier DeviceID} OPTIONAL } DeviceAttribute ::= CHOICE { deviceStateSupported NULL, deviceDateSupported NULL, deviceTimeSupported NULL, devicePresetSupported DevicePresetCapability, irisModeSupported NULL, focusModeSupported NULL, pointingModeSupported NULL, cameraLensSupported CameraLensCapability, cameraFilterSupported CameraFilterCapability, homePositionSupported NULL, externalCameraLightSupported ExternalCameraLightCapability, clearCameraLensSupported NULL, cameraPanSpeedSupported CameraPanSpeedCapability, cameraTiltSpeedSupported CameraTiltSpeedCapability, backLightModeSupported NULL, backLightSettingSupported MaxBacklight, whiteBalanceSettingSupported MaxWhiteBalance, whiteBalanceModeSupported NULL, calibrateWhiteBalanceSupported NULL, focusImageSupported NULL, captureImageSupported NULL, panContinuousSupported NULL, tiltContinuousSupported NULL, zoomContinuousSupported NULL, focusContinuousSupported NULL, irisContinuousSupported NULL, zoomPositionSupported MinZoomPositionSetSize, focusPositionSupported MinFocusPositionStepSize, irisPositionSupported MinIrisPositionStepSize, panPositionSupported PanPositionCapability, tiltPositionSupported TiltPositionCapability, zoomMagnificationSupported MinZoomMagnificationStepSize, panViewSupported NULL, tiltViewSupported NULL, selectSlideSupported MaxNumberOfSlides, selectNextSlideSupported NULL, slideShowModeSupported NULL, playSlideShowSupported NULL, setSlideDisplayTimeSupported MaxSlideDisplayTime, continuousRewindSupported NULL, continuousFastForwardSupported NULL, searchBackwardsSupported NULL, searchForwardsSupported NULL, pauseSupported NULL, selectProgramSupported MaxNumberOfPrograms, nextProgramSupported NULL, gotoNormalPlayTimePointSupported NULL, readStreamPlayerStateSupported NULL, readProgramDurationSupported NULL, continuousPlayBackModeSupported NULL, playbackSpeedSupported PlayBackSpeedCapability, playSupported NULL, setAudioOutputStateSupported NULL, playToNormalPlayTimePointSupported NULL, recordSupported NULL, recordForDurationSupported NULL, configurableVideoInputsSupported VideoInputsCapability, videoInputsSupported VideoInputsCapability, configurableAudioInputsSupported AudioInputsCapability, audioInputsSupported AudioInputsCapability, -- Attributes for Device Events deviceLockStateChangedSupported NULL, deviceAvailabilityChangedSupported NULL, cameraPannedToLimitSupported NULL, cameraTiltedToLimitSupported NULL, cameraZoomedToLimitSupported NULL, cameraFocusedToLimitSupported NULL, autoSlideShowFinishedSupported NULL, streamPlayerStateChangeSupported NULL, streamPlayerProgramChangeSupported NULL, nonStandardAttributeSupported NonStandardParameter, ... } DeviceState ::= CHOICE {active NULL, inactive NULL } DeviceDate ::= SEQUENCE {day Day, month Month, year Year } DeviceTime ::= SEQUENCE {hour Hour, minute Minute } DevicePreset ::= SEQUENCE { presetNumber PresetNumber, mode CHOICE {store NULL, activate NULL} } Mode ::= CHOICE {manual NULL, auto NULL } PointingToggle ::= CHOICE {manual NULL, auto NULL, toggle NULL } SelectExternalLight ::= CHOICE {lightNumber INTEGER(1..10), none NULL } PanContinuous ::= SEQUENCE { panDirection CHOICE {left NULL, right NULL, stop NULL, continue NULL}, timeOut INTEGER(50..1000) -- Milliseconds } TiltContinuous ::= SEQUENCE { tiltDirection CHOICE {up NULL, down NULL, stop NULL, continue NULL}, timeOut INTEGER(50..1000) -- Milliseconds } ZoomContinuous ::= SEQUENCE { zoomDirection CHOICE {telescopic NULL, wide NULL, stop NULL, continue NULL}, timeOut INTEGER(50..1000) -- Milliseconds } FocusContinuous ::= SEQUENCE { focusDirection CHOICE {near NULL, far NULL, stop NULL, continue NULL}, timeOut INTEGER(50..1000) -- Milliseconds } IrisContinuous ::= SEQUENCE { irisDirection CHOICE {darker NULL, lighter NULL, stop NULL, continue NULL}, timeOut INTEGER(50..1000) -- Milliseconds } PositioningMode ::= CHOICE {relative NULL, absolute NULL } CameraLensNumber ::= INTEGER(1..255) CameraFilterNumber ::= INTEGER(1..255) SetZoomPosition ::= SEQUENCE { zoomPosition ZoomPosition, positioningMode PositioningMode } SetFocusPosition ::= SEQUENCE { focusPosition FocusPosition, positioningMode PositioningMode } SetIrisPosition ::= SEQUENCE { irisPosition IrisPosition, positioningMode PositioningMode } SetPanPosition ::= SEQUENCE { panPosition PanPosition, positioningMode PositioningMode } SetTiltPosition ::= SEQUENCE { tiltPosition TiltPosition, positioningMode PositioningMode } ZoomMagnification ::= INTEGER(10..1000) PanView ::= INTEGER(-1000..1000) TiltView ::= INTEGER(-1000..1000) SlideNumber ::= INTEGER(0..1023) SelectDirection ::= CHOICE {next NULL, previous NULL } AutoSlideShowControl ::= CHOICE {start NULL, stop NULL, pause NULL } AutoSlideDisplayTime ::= INTEGER(1..255) -- Automatic slide display time in seconds ProgramNumber ::= INTEGER(1..1023) ProgramDuration ::= SEQUENCE { hours INTEGER(0..24), minutes INTEGER(0..59), seconds INTEGER(0..59), microseconds INTEGER(0..99999) } PlaybackSpeed ::= SEQUENCE { scaleFactor INTEGER(10..1000), multiplyFactor BOOLEAN -- TRUE to multiply, FALSE to divide } RecordForDuration ::= SEQUENCE { hours INTEGER(0..24), minutes INTEGER(0..59), seconds INTEGER(0..59) } DeviceInputs ::= SEQUENCE { -- When used with the configurableVideoInputs type this device list must only contain -- devices that source a video stream. -- When used with the configurableAudioInputs type this device list must only contain -- devices that source an audio stream. inputDevices SET SIZE (2..64) OF SEQUENCE {deviceClass DeviceClass, deviceIdentifier DeviceID} } ControlAttribute ::= CHOICE { setDeviceState DeviceState, setDeviceDate DeviceDate, setDeviceTime DeviceTime, setDevicePreset DevicePreset, setIrisMode Mode, setFocusMode Mode, setBackLightMode Mode, setPointingMode PointingToggle, selectCameraLens CameraLensNumber, selectCameraFilter CameraFilterNumber, gotoHomePosition NULL, selectExternalLight SelectExternalLight, clearCameraLens NULL, setCameraPanSpeed CameraPanSpeed, setCameraTiltSpeed CameraTiltSpeed, setBackLight BackLight, setWhiteBalance WhiteBalance, setWhiteBalanceMode Mode, calibrateWhiteBalance NULL, focusImage NULL, captureImage NULL, panContinuous PanContinuous, tiltContinuous TiltContinuous, zoomContinuous ZoomContinuous, focusContinuous FocusContinuous, setZoomPosition SetZoomPosition, setFocusPosition SetFocusPosition, setIrisPosition SetIrisPosition, setPanPosition SetPanPosition, setTiltPosition SetTiltPosition, setZoomMagnification ZoomMagnification, setPanView PanView, setTiltView TiltView, selectSlide SlideNumber, selectNextSlide SelectDirection, playAutoSlideShow AutoSlideShowControl, setAutoSlideDisplayTime AutoSlideDisplayTime, continuousRewindControl BOOLEAN, -- TRUE to start, FALSE to Stop continuousFastForwardControl BOOLEAN, -- TRUE to start, FALSE to Stop searchBackwardsControl BOOLEAN, -- TRUE to start, FALSE to Stop searchForwardsControl BOOLEAN, -- TRUE to start, FALSE to Stop pause BOOLEAN, -- TRUE to pause, FALSE to release selectProgram ProgramNumber, nextProgramSelect SelectDirection, gotoNormalPlayTimePoint ProgramDuration, continuousPlayBackMode BOOLEAN, -- TRUE to set continuous mode setPlaybackSpeed PlaybackSpeed, play BOOLEAN, -- TRUE to pause, FALSE to release setAudioOutputMute BOOLEAN, -- TRUE to mute, FALSE to unmute playToNormalPlayTimePoint ProgramDuration, record BOOLEAN, -- TRUE to start, FALSE to Stop recordForDuration RecordForDuration, configureVideoInputs DeviceInputs, -- Device list contains Video devices configureAudioInputs DeviceInputs, -- Device list contains Audio Devices nonStandardControl NonStandardParameter, ... } StatusAttributeIdentifier ::= CHOICE { getDeviceState NULL, getDeviceDate NULL, getDeviceTime NULL, getdevicePreset NULL, getIrisMode NULL, getFocusMode NULL, getBacklightMode NULL, getPointingMode NULL, getCameraLens NULL, getCameraFilter NULL, getExternalLight NULL, getCameraPanSpeed NULL, getCameraTiltSpeed NULL, getBackLightMode NULL, getBackLight NULL, getWhiteBalance NULL, getWhiteBalanceMode NULL, getZoomPosition NULL, getFocusPosition NULL, getIrisPosition NULL, getPanPosition NULL, getTiltPosition NULL, getSelectedSlide NULL, getAutoSlideDisplayTime NULL, getSelectedProgram NULL, getStreamPlayerState NULL, getCurrentProgramDuration NULL, getPlaybackSpeed NULL, getAudioOutputState NULL, getConfigurableVideoInputs NULL, getVideoInputs NULL, getConfigurableAudioInputs NULL, getAudioInputs NULL, getNonStandardStatus NonStandardIdentifier, ... } CurrentDeviceState ::= CHOICE {deviceState DeviceState, unknown NULL } CurrentDeviceDate ::= SEQUENCE { currentDay CHOICE {day Day, unknown NULL}, currentMonth CHOICE {month Month, unknown NULL}, currentYear CHOICE {year Year, unknown NULL} } CurrentDeviceTime ::= SEQUENCE { currentHour CHOICE {hour Hour, unknown NULL}, currentMinute CHOICE {minute Minute, unknown NULL} } CurrentDevicePreset ::= CHOICE {preset PresetNumber, unknown NULL } CurrentMode ::= CHOICE {mode Mode, unknown NULL } CurrentPointingMode ::= CHOICE { automatic NULL, manual NULL, unknown NULL } CurrentCameraLensNumber ::= CHOICE { lensNumber CameraLensNumber, unknown NULL } CurrentCameraFilterNumber ::= CHOICE { lensNumber CameraFilterNumber, unknown NULL } CurrentExternalLight ::= CHOICE { lightNumber INTEGER(1..10), none NULL, unknown NULL } CurrentCameraPanSpeed ::= CHOICE {speed CameraPanSpeed, unknown NULL } CurrentCameraTiltSpeed ::= CHOICE {speed CameraTiltSpeed, unknown NULL } CurrentBackLight ::= CHOICE {backLight BackLight, unknown NULL } CurrentWhiteBalance ::= CHOICE {whiteBalance WhiteBalance, unknown NULL } CurrentZoomPosition ::= CHOICE {zoomPosition ZoomPosition, unknown NULL } CurrentFocusPosition ::= CHOICE { focusPosition FocusPosition, unknown NULL } CurrentIrisPosition ::= CHOICE {irisPosition IrisPosition, unknown NULL } CurrentPanPosition ::= CHOICE {panPosition PanPosition, unknown NULL } CurrentTiltPosition ::= CHOICE {tiltPosition TiltPosition, unknown NULL } CurrentSlide ::= CHOICE {slide SlideNumber, unknown NULL } CurrentAutoSlideDisplayTime ::= CHOICE { time AutoSlideDisplayTime, unknown NULL } CurrentSelectedProgram ::= CHOICE {program ProgramNumber, unknown NULL } CurrentStreamPlayerState ::= CHOICE {state StreamPlayerState, unknown NULL } CurrentPlaybackSpeed ::= CHOICE {speed PlaybackSpeed, unknown NULL } CurrentAudioOutputMute ::= CHOICE { mute BOOLEAN, -- TRUE if muted unknown NULL } StatusAttribute ::= CHOICE { currentdeviceState CurrentDeviceState, currentDeviceDate CurrentDeviceDate, currentDeviceTime CurrentDeviceTime, currentDevicePreset CurrentDevicePreset, currentIrisMode CurrentMode, currentFocusMode CurrentMode, currentBackLightMode CurrentMode, currentPointingMode CurrentPointingMode, currentCameraLens CurrentCameraLensNumber, currentCameraFilter CurrentCameraFilterNumber, currentExternalLight CurrentExternalLight, currentCameraPanSpeed CurrentCameraPanSpeed, currentCameraTiltSpeed CurrentCameraTiltSpeed, currentBackLight CurrentBackLight, currentWhiteBalance CurrentWhiteBalance, currentWhiteBalanceMode CurrentMode, currentZoomPosition CurrentZoomPosition, currentFocusPosition CurrentFocusPosition, currentIrisPosition CurrentIrisPosition, currentPanPosition CurrentPanPosition, currentTiltPosition CurrentTiltPosition, currentSlide CurrentSlide, currentAutoSlideDisplayTime CurrentAutoSlideDisplayTime, currentSelectedProgram CurrentSelectedProgram, currentstreamPlayerState CurrentStreamPlayerState, currentProgramDuration ProgramDuration, currentPlaybackSpeed CurrentPlaybackSpeed, currentAudioOutputMute CurrentAudioOutputMute, configurableVideoInputs DeviceInputs, videoInputs DeviceInputs, configurableAudioInputs DeviceInputs, audioInputs DeviceInputs, nonStandardStatus NonStandardParameter, ... } DeviceEventIdentifier ::= CHOICE { requestDeviceLockChanged NULL, requestDeviceAvailabilityChanged NULL, requestCameraPannedToLimit NULL, requestCameraTiltedToLimit NULL, requestCameraZoomedToLimit NULL, requestCameraFocusedToLimit NULL, requestAutoSlideShowFinished NULL, requestStreamPlayerStateChange NULL, requestStreamPlayerProgramChange NULL, requestNonStandardEvent NonStandardIdentifier, ... } CameraPannedToLimit ::= CHOICE {left NULL, right NULL } CameraTiltedToLimit ::= CHOICE {up NULL, down NULL } CameraZoomedToLimit ::= CHOICE {telescopic NULL, wide NULL } CameraFocusedToLimit ::= CHOICE {near NULL, far NULL } DeviceEvent ::= CHOICE { deviceLockChanged BOOLEAN, -- TRUE if now locked FALSE if now unlocked deviceAvailabilityChanged BOOLEAN, -- TRUE if available FALSE if now unavailable cameraPannedToLimit CameraPannedToLimit, cameraTiltedToLimit CameraTiltedToLimit, cameraZoomedToLimit CameraZoomedToLimit, cameraFocusedToLimit CameraFocusedToLimit, autoSlideShowFinished NULL, streamPlayerStateChange StreamPlayerState, streamPlayerProgramChange ProgramNumber, nonStandardEvent NonStandardParameter, ... } -- ========================================================================== -- Part 2: PDU Messages -- ========================================================================== SourceSelectRequest ::= SEQUENCE { requestHandle Handle, deviceClass DeviceClass, deviceID DeviceID, streamIdentifier StreamID, ... } SourceSelectResponse ::= SEQUENCE { requestHandle Handle, result CHOICE {successful NULL, requestDenied NULL, deviceUnavailable NULL, invalidStreamID NULL, currentDeviceIsLocked NULL, deviceIncompatible NULL, ...}, ... } SourceEventsRequest ::= SEQUENCE { requestHandle Handle, streamIdentifier StreamID, sourceEventNotify BOOLEAN, -- TRUE to request source events ... } SourceEventsResponse ::= SEQUENCE { requestHandle Handle, deviceClass DeviceClass, deviceID DeviceID, result CHOICE {successful NULL, eventsNotSupported NULL, invalidStreamID NULL, ...}, ... } SourceChangeEventIndication ::= SEQUENCE { deviceClass DeviceClass, deviceID DeviceID, ... } DeviceAttributeRequest ::= SEQUENCE { requestHandle Handle, deviceClass DeviceClass, deviceID DeviceID, ... } DeviceAttributeResponse ::= SEQUENCE { requestHandle Handle, deviceAttributeList SET OF DeviceAttribute OPTIONAL, result CHOICE {successful NULL, requestDenied NULL, unknownDevice NULL, ...}, ... } DeviceLockRequest ::= SEQUENCE { requestHandle Handle, deviceClass DeviceClass, deviceID DeviceID, lockFlag BOOLEAN, -- TRUE to lock ... } DeviceLockResponse ::= SEQUENCE { requestHandle Handle, result CHOICE {successful NULL, requestDenied NULL, unknownDevice NULL, lockingNotSupported NULL, deviceAlreadyLocked NULL, ...}, ... } DeviceLockEnquireRequest ::= SEQUENCE { requestHandle Handle, deviceClass DeviceClass, deviceID DeviceID, ... } DeviceLockEnquireResponse ::= SEQUENCE { requestHandle Handle, result CHOICE {lockRequired NULL, lockNotRequired NULL, unknownDevice NULL, ...}, ... } DeviceLockTerminatedIndication ::= SEQUENCE { deviceClass DeviceClass, deviceID DeviceID, ... } DeviceControlRequest ::= SEQUENCE { requestHandle Handle, deviceClass DeviceClass, deviceID DeviceID, controlAttributeList SET SIZE (1..8) OF ControlAttribute, ... } DeviceStatusEnquireRequest ::= SEQUENCE { requestHandle Handle, deviceClass DeviceClass, deviceID DeviceID, statusAttributeIdentifierList SET SIZE (1..16) OF StatusAttributeIdentifier, ... } DeviceStatusEnquireResponse ::= SEQUENCE { requestHandle Handle, statusAttributeList SET SIZE (1..16) OF StatusAttribute OPTIONAL, result CHOICE {successful NULL, requestDenied NULL, unknownDevice NULL, deviceUnavailable NULL, deviceAttributeError NULL, ...}, ... } ConfigureDeviceEventsRequest ::= SEQUENCE { requestHandle Handle, deviceClass DeviceClass, deviceID DeviceID, deviceEventIdentifierList SET OF DeviceEventIdentifier, ... } ConfigureDeviceEventsResponse ::= SEQUENCE { requestHandle Handle, result CHOICE {successful NULL, requestDenied NULL, unknownDevice NULL, deviceUnavailable NULL, deviceAttributeError NULL, ...}, ... } DeviceEventNotifyIndication ::= SEQUENCE { deviceClass DeviceClass, deviceID DeviceID, deviceEventList SET SIZE (1..8) OF DeviceEvent, ... } NonStandardPDU ::= SEQUENCE {nonStandardData NonStandardParameter, ... } -- ========================================================================== -- Part 3: Messages sent using lower layer protocol -- ========================================================================== RDCPDU ::= CHOICE { request RequestPDU, response ResponsePDU, indication IndicationPDU } RequestPDU ::= CHOICE { sourceSelectRequest SourceSelectRequest, sourceEventsRequest SourceEventsRequest, deviceAttributeRequest DeviceAttributeRequest, deviceLockRequest DeviceLockRequest, deviceLockEnquireRequest DeviceLockEnquireRequest, deviceControlRequest DeviceControlRequest, deviceStatusEnquireRequest DeviceStatusEnquireRequest, configureDeviceEventsRequest ConfigureDeviceEventsRequest, nonStandardRequest NonStandardPDU, ... } ResponsePDU ::= CHOICE { sourceSelectResponse SourceSelectResponse, sourceEventsResponse SourceEventsResponse, deviceAttributeResponse DeviceAttributeResponse, deviceLockResponse DeviceLockResponse, deviceLockEnquireResponse DeviceLockEnquireResponse, deviceStatusEnquireResponse DeviceStatusEnquireResponse, configureDeviceEventsResponse ConfigureDeviceEventsResponse, nonStandardResponse NonStandardPDU, ... } IndicationPDU ::= CHOICE { sourceChangeEventIndication SourceChangeEventIndication, deviceLockTerminatedIndication DeviceLockTerminatedIndication, deviceEventNotifyIndication DeviceEventNotifyIndication, nonStandardIndication NonStandardPDU, ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
Text
wireshark/epan/dissectors/asn1/h283/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h283 ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST LCT-PROTOCOL.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) ASN2WRS()
Configuration
wireshark/epan/dissectors/asn1/h283/h283.cnf
# h283.cnf # H.283 conformation file # 2007 Tomas Kukosa #.OPT PER ALIGNED #.END #.PDU LCTPDU #.END #.FN_PARS LCTPDU/pduType VAL_PTR = &pdu_type #.FN_HDR gint32 pdu_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(pdu_type, VALS(h283_T_pduType_vals)); if (!info_is_set && p ) { col_set_str(actx->pinfo->cinfo, COL_INFO, p); info_is_set = TRUE; } #.END #.FN_PARS RDCData/dataType VAL_PTR = &data_type #.FN_HDR gint32 data_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(data_type, VALS(h283_T_dataType_vals)); if (!info_is_set && p ) { col_add_fstr(actx->pinfo->cinfo, COL_INFO, "RDCData/%s", p); info_is_set = TRUE; } #.END #.FN_PARS LCTMessage VAL_PTR = &msg_type #.FN_HDR gint32 msg_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(msg_type, VALS(h283_LCTMessage_vals)); if (!info_is_set && p ) { col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTMessage/%s", p); info_is_set = TRUE; } #.END #.FN_PARS LCTRequest VAL_PTR = &msg_type #.FN_HDR gint32 msg_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(msg_type, VALS(h283_LCTRequest_vals)); if (!info_is_set && p ) { col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTRequest/%s", p); info_is_set = TRUE; } #.END #.FN_PARS LCTResponse VAL_PTR = &msg_type #.FN_HDR gint32 msg_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(msg_type, VALS(h283_LCTResponse_vals)); if (!info_is_set && p ) { col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTResponse/%s", p); info_is_set = TRUE; } #.END #.FN_PARS LCTIndication VAL_PTR = &msg_type #.FN_HDR gint32 msg_type = -1; const gchar *p = NULL; #.FN_FTR p = try_val_to_str(msg_type, VALS(h283_LCTIndication_vals)); if (!info_is_set && p ) { col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTIndication/%s", p); info_is_set = TRUE; } #.END #.FN_BODY RDCData/dataType/rdcPDU VAL_PTR = &next_tvb tvbuff_t *next_tvb = NULL; %(DEFAULT_BODY)s if (next_tvb && tvb_reported_length(next_tvb)) { call_dissector((rdc_pdu_handle)?rdc_pdu_handle:data_handle, next_tvb, %(ACTX)s->pinfo, proto_tree_get_root(tree)); } info_is_set = TRUE; #.END #.FN_BODY LCTResponse/deviceListResp VAL_PTR = &next_tvb tvbuff_t *next_tvb = NULL; %(DEFAULT_BODY)s if (next_tvb && tvb_reported_length(next_tvb)) { call_dissector((rdc_device_list_handle)?rdc_device_list_handle:data_handle, next_tvb, %(ACTX)s->pinfo, tree); } #.END #.TYPE_ATTR RDCData/dataType/rdcPDU TYPE = FT_UINT32 DISPLAY = BASE_DEC LCTResponse/deviceListResp TYPE = FT_UINT32 DISPLAY = BASE_DEC #.END
ASN.1
wireshark/epan/dissectors/asn1/h283/LCT-PROTOCOL.asn
-- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h283/1999/LCT-PROTOCOL.asn -- Module LCT-PROTOCOL (H.283:05/1999) LCT-PROTOCOL {itu-t recommendation h 283 version(0) 1} DEFINITIONS AUTOMATIC TAGS ::= BEGIN H221NonStandard ::= SEQUENCE { t35CountryCode INTEGER(0..255), -- country, as per Recommendation T.35 t35Extension INTEGER(0..255), -- assigned nationally manufacturerCode INTEGER(0..65535) } -- assigned nationally NonStandardIdentifier ::= CHOICE { object OBJECT IDENTIFIER, h221NonStandard H221NonStandard, ... } NonStandardParameter ::= SEQUENCE { nonStandardIdentifier NonStandardIdentifier, data OCTET STRING } LCTPDU ::= SEQUENCE { srcAddr MTAddress, dstAddr MTAddress, timestamp INTEGER(0..4294967295), -- milliseconds seqNumber INTEGER(0..65535), pduType CHOICE {ack NULL, rdcData RDCData}, nonStandardParameters SEQUENCE OF NonStandardParameter OPTIONAL, ... } MTAddress ::= SEQUENCE { mAddress INTEGER(0..65535), tAddress INTEGER(0..65535) } RDCData ::= SEQUENCE { reliable BOOLEAN, dataType CHOICE {lctMessage LCTMessage, rdcPDU OCTET STRING}, -- Common RDC PDU ... } LCTMessage ::= CHOICE { lctRequest LCTRequest, lctResponse LCTResponse, lctIndication LCTIndication, nonStandardMessage NonStandardMessage, ... } LCTRequest ::= CHOICE {announceReq NULL, deviceListReq NULL, ... } LCTResponse ::= CHOICE { announceResp NULL, deviceListResp OCTET STRING, -- Common RDC ... } LCTIndication ::= CHOICE {deviceChange NULL, ... } NonStandardMessage ::= SEQUENCE { nonStandardParameters SEQUENCE OF NonStandardParameter OPTIONAL, ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
C
wireshark/epan/dissectors/asn1/h283/packet-h283-template.c
/* packet-h283.c * Routines for H.283 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> #include "packet-per.h" #define PNAME "H.283 Logical Channel Transport" #define PSNAME "LCT" #define PFNAME "lct" void proto_register_h283(void); void proto_reg_handoff_h283(void); /* Initialize the protocol and registered fields */ static int proto_h283 = -1; #include "packet-h283-hf.c" /* Initialize the subtree pointers */ static int ett_h283 = -1; #include "packet-h283-ett.c" /* Subdissectors */ static dissector_handle_t rdc_pdu_handle; static dissector_handle_t rdc_device_list_handle; static dissector_handle_t data_handle; static dissector_handle_t h283_udp_handle; static gboolean info_is_set; #include "packet-h283-fn.c" static int dissect_h283_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { proto_item *ti = NULL; proto_tree *h283_tree = NULL; col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME); info_is_set = FALSE; ti = proto_tree_add_item(tree, proto_h283, tvb, 0, -1, ENC_NA); h283_tree = proto_item_add_subtree(ti, ett_h283); return dissect_LCTPDU_PDU(tvb, pinfo, h283_tree, NULL); } /*--- proto_register_h283 ----------------------------------------------*/ void proto_register_h283(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-h283-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_h283, #include "packet-h283-ettarr.c" }; /* Register protocol */ proto_h283 = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_h283, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); h283_udp_handle = register_dissector(PFNAME, dissect_h283_udp, proto_h283); } /*--- proto_reg_handoff_h283 -------------------------------------------*/ void proto_reg_handoff_h283(void) { dissector_add_for_decode_as_with_preference("udp.port", h283_udp_handle); rdc_pdu_handle = find_dissector_add_dependency("rdc", proto_h283); rdc_device_list_handle = find_dissector_add_dependency("rdc.device_list", proto_h283); data_handle = find_dissector("data"); }
Text
wireshark/epan/dissectors/asn1/h323/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h323 ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST RAS-PROTOCOL-TUNNEL.asn ROBUSTNESS-DATA.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../h225/h225-exp.cnf" ) ASN2WRS()
Configuration
wireshark/epan/dissectors/asn1/h323/h323.cnf
# h323.cnf # H.323 conformation file # 2007 Tomas Kukosa #.IMPORT ../h225/h225-exp.cnf #.OPT PER ALIGNED #.END #.PDU RasTunnelledSignallingMessage RobustnessData #.END
C
wireshark/epan/dissectors/asn1/h323/packet-h323-template.c
/* packet-h323.c * Routines for H.323 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> #include "packet-per.h" #include "packet-h225.h" #include "packet-h323.h" #define PNAME "H.323" #define PSNAME "H.323" #define PFNAME "h323" void proto_register_h323(void); void proto_reg_handoff_h323(void); /* Generic Extensible Framework */ gef_ctx_t* gef_ctx_alloc(wmem_allocator_t *pool, gef_ctx_t *parent, const gchar *type) { gef_ctx_t *gefx; gefx = wmem_new0(pool, gef_ctx_t); gefx->signature = GEF_CTX_SIGNATURE; gefx->parent = parent; gefx->type = type; return gefx; } gboolean gef_ctx_check_signature(gef_ctx_t *gefx) { return gefx && (gefx->signature == GEF_CTX_SIGNATURE); } gef_ctx_t* gef_ctx_get(void *ptr) { gef_ctx_t *gefx = (gef_ctx_t*)ptr; asn1_ctx_t *actx = (asn1_ctx_t*)ptr; if (!asn1_ctx_check_signature(actx)) actx = NULL; if (actx) gefx = (gef_ctx_t *)actx->private_data; if (!gef_ctx_check_signature(gefx)) gefx = NULL; return gefx; } void gef_ctx_update_key(wmem_allocator_t *pool, gef_ctx_t *gefx) { const gchar *parent_key; if (!gefx) return; parent_key = (gefx->parent) ? gefx->parent->key : NULL; gefx->key = wmem_strdup_printf(pool, "%s%s" /* parent prefix */ "%s%s%s" /* type, id */ "%s%s" /* subid */, (parent_key) ? parent_key : "", (parent_key) ? "/" : "", (gefx->type) ? gefx->type : "", (gefx->type && (gefx->id || gefx->subid)) ? "/" : "", (gefx->id) ? gefx->id : "", (gefx->subid) ? "-" : "", (gefx->subid) ? gefx->subid : "" ); } /* Initialize the protocol and registered fields */ static int proto_h323 = -1; #include "packet-h323-hf.c" /* Initialize the subtree pointers */ #include "packet-h323-ett.c" #include "packet-h323-fn.c" /*--- proto_register_h323 ----------------------------------------------*/ void proto_register_h323(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-h323-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-h323-ettarr.c" }; /* Register protocol */ proto_h323 = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_h323, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } /*--- proto_reg_handoff_h323 -------------------------------------------*/ void proto_reg_handoff_h323(void) { dissector_handle_t q931_handle; q931_handle = find_dissector("q931"); /* H.323, Annex M1, Tunnelling of signalling protocols (QSIG) in H.323 */ dissector_add_string("h225.tp", "1.3.12.9", q931_handle); /* H.323, Annex M4, Tunnelling of narrow-band signalling syntax (NSS) for H.323 */ dissector_add_string("h225.gef.content", "GenericData/1000/1", create_dissector_handle(dissect_RasTunnelledSignallingMessage_PDU, proto_h323)); /* H.323, Annex R, Robustness methods for H.323 entities */ dissector_add_string("h225.gef.content", "GenericData/1/1", create_dissector_handle(dissect_RobustnessData_PDU, proto_h323)); }
C/C++
wireshark/epan/dissectors/asn1/h323/packet-h323-template.h
/* packet-h323.h * Routines for H.235 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_H323_H #define PACKET_H323_H /* Generic Extensible Framework */ #define GEF_CTX_SIGNATURE 0x47454658 /* "GEFX" */ typedef struct _gef_ctx_t { guint32 signature; struct _gef_ctx_t *parent; /* H323-MESSAGES FeatureDescriptor/<id> <id> GenericData/<id> <id> MULTIMEDIA-SYSTEM-CONTROL GenericInformation/<id>[-<subid>] <id> GenericMessage/<id>[-<subid>] <id> GenericCapability/<id> collapsing/<id> nonCollapsing/<id> nonCollapsingRaw EncryptionSync <id> */ const gchar *type; const gchar *id; const gchar *subid; const gchar *key; } gef_ctx_t; extern gef_ctx_t* gef_ctx_alloc(wmem_allocator_t *pool, gef_ctx_t *parent, const gchar *type); extern gboolean gef_ctx_check_signature(gef_ctx_t *gefx); extern gef_ctx_t* gef_ctx_get(void *ptr); extern void gef_ctx_update_key(wmem_allocator_t *pool, gef_ctx_t *gefx); #endif /* PACKET_H323_H */
ASN.1
wireshark/epan/dissectors/asn1/h323/RAS-PROTOCOL-TUNNEL.asn
-- RAS-PROTOCOL-TUNNEL.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h323/2006/RAS-PROTOCOL-TUNNEL.asn -- -- Module RAS-PROTOCOL-TUNNEL (H.323:06/2006) RAS-PROTOCOL-TUNNEL DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS TunnelledProtocol, NonStandardParameter FROM H323-MESSAGES; RasTunnelledSignallingMessage ::= SEQUENCE { tunnelledProtocolID TunnelledProtocol, -- tunnelled signalling protocol ID messageContent SEQUENCE OF OCTET STRING, -- sequence of entire message(s) tunnellingRequired NULL OPTIONAL, nonStandardData NonStandardParameter OPTIONAL, ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h323/ROBUSTNESS-DATA.asn
-- ROBUSTNESS-DATA.asn -- -- ITU-T Rec. H.323 (06/2006) -- -- Annex R - Robustness methods for H.323 entities -- R.11 GenericData usage -- ROBUSTNESS-DATA DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS TransportAddress, AlternateTransportAddresses, GloballyUniqueID, TimeToLive FROM H323-MESSAGES; RobustnessData ::= SEQUENCE { versionID INTEGER(1..256), robustnessData CHOICE { rrqData Rrq-RD, rcfData Rcf-RD, setupData Setup-RD, connectData Connect-RD, statusData Status-RD, statusInquiryData StatusInquiry-RD, ... }, ... } BackupCallSignalAddresses ::= SEQUENCE OF CHOICE { tcp TransportAddress, alternateTransport AlternateTransportAddresses, ... } GloballyUniqueIdentifier ::= GloballyUniqueID Rrq-RD ::= SEQUENCE { backupCallSignalAddresses BackupCallSignalAddresses, hasSharedRepository NULL OPTIONAL, ... } Rcf-RD ::= SEQUENCE { hasSharedRepository NULL OPTIONAL, ..., irrFrequency INTEGER(1..65535) OPTIONAL -- in seconds; -- not present -- if GK does not -- want IRRs for -- recovered calls } Setup-RD ::= SEQUENCE { backupCallSignalAddresses BackupCallSignalAddresses, hasSharedRepository NULL OPTIONAL, endpointGuid GloballyUniqueIdentifier OPTIONAL, ... } Connect-RD ::= SEQUENCE { backupCallSignalAddresses BackupCallSignalAddresses, hasSharedRepository NULL OPTIONAL, endpointGuid GloballyUniqueIdentifier OPTIONAL, ... } Status-RD ::= SEQUENCE { h245Address TransportAddress OPTIONAL, fastStart SEQUENCE OF OCTET STRING OPTIONAL, ..., resetH245 NULL OPTIONAL } StatusInquiry-RD ::= SEQUENCE { h245Address TransportAddress OPTIONAL, timeToLive TimeToLive OPTIONAL, includeFastStart NULL OPTIONAL, ... } robustnessId GenericIdentifier ::= standard:1 END
ASN.1
wireshark/epan/dissectors/asn1/h450/Addressing-Data-Elements.asn
-- Addressing-Data-Elements.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.1/1998/Addressing-Data-Elements.asn -- -- Module Addressing-Data-Elements (H.450.1:02/1998) Addressing-Data-Elements {itu-t recommendation h 450 1 version1(0) addressing-data-elements(9)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS AliasAddress, PartyNumber, PresentationIndicator, ScreeningIndicator FROM H323-MESSAGES; -- see H.225.0 PresentedAddressScreened ::= CHOICE { presentationAllowedAddress AddressScreened, presentationRestricted NULL, numberNotAvailableDueToInterworking NULL, presentationRestrictedAddress AddressScreened, ... } PresentedAddressUnscreened ::= CHOICE { presentationAllowedAddress Address, presentationRestricted NULL, numberNotAvailableDueToInterworking NULL, presentationRestrictedAddress Address, ... } PresentedNumberScreened ::= CHOICE { presentationAllowedAddress NumberScreened, presentationRestricted NULL, numberNotAvailableDueToInterworking NULL, presentationRestrictedAddress NumberScreened, ... } PresentedNumberUnscreened ::= CHOICE { presentationAllowedAddress PartyNumber, presentationRestricted NULL, numberNotAvailableDueToInterworking NULL, presentationRestrictedAddress PartyNumber, ... } AddressScreened ::= SEQUENCE { partyNumber PartyNumber, screeningIndicator ScreeningIndicator, partySubaddress PartySubaddress OPTIONAL, ... } NumberScreened ::= SEQUENCE { partyNumber PartyNumber, screeningIndicator ScreeningIndicator, ... } Address ::= SEQUENCE { partyNumber PartyNumber, partySubaddress PartySubaddress OPTIONAL, ... } -- PartyNumber defined in Recommendation H.225.0 -- PublicPartyNumber defined in Recommendation H.225.0 -- PrivatePartyNumber defined in Recommendation H.225.0 -- NumberDigits defined in Recommendation H.225.0 -- PublicTypeOfNumber defined in Recommendation H.225.0 -- PrivateTypeOfNumber defined in Recommendation H.225.0 -- PresentationIndicator defined in Recommendation H.225.0 (v3 and beyond) -- ScreeningIndicator defined in Recommendation H.225.0 (v3 and beyond) EndpointAddress ::= SEQUENCE { destinationAddress SEQUENCE OF AliasAddress, -- multiple alias addresses may be used to address the same H.323 endpoint remoteExtensionAddress AliasAddress OPTIONAL, ..., destinationAddressPresentationIndicator PresentationIndicator OPTIONAL, -- Note 1, 2 destinationAddressScreeningIndicator ScreeningIndicator OPTIONAL, remoteExtensionAddressPresentationIndicator PresentationIndicator OPTIONAL, -- Note 1, 2 remoteExtensionAddressScreeningIndicator ScreeningIndicator OPTIONAL } -- Note 1: If this element is not available, presentation allowed shall be assumed. -- Note 2: If an H.450 APDU that carries this element EndpointAddress also -- contains an element PresentationAllowedIndicator, then the setting of the -- element PresentationAllowedIndicator shall take precedence in case of -- conflicting presentation information. PartySubaddress ::= CHOICE { userSpecifiedSubaddress UserSpecifiedSubaddress, -- not recommended. nsapSubaddress NSAPSubaddress, -- according to Recommendation X.213. ... } UserSpecifiedSubaddress ::= SEQUENCE { subaddressInformation SubaddressInformation, oddCountIndicator BOOLEAN OPTIONAL, -- used when the coding of subaddress is BCD ... } NSAPSubaddress ::= OCTET STRING(SIZE (1..20)) -- specified according to X.213. Some networks may -- limit the subaddress value to some other length -- e.g. 4 octets SubaddressInformation ::= OCTET STRING(SIZE (1..20)) -- coded according to user requirements. Some networks -- may limit the subaddress value to some other length -- e.g. 4 octets PresentationAllowedIndicator ::= BOOLEAN END -- of Addressing-Data-Elements -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Call-Completion-Operations.asn
-- Call-Completion-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.9/2000/Call-Completion-Operations.asn -- -- Module Call-Completion-Operations (H.450.9:11/2000) Call-Completion-Operations {itu-t recommendation h 450 9 version1(0) call-completion-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} CallIdentifier FROM H323-MESSAGES -- see ITU-T H.225.0 EndpointAddress FROM Addressing-Data-Elements {itu-t recommendation h 450 1 version1(0) addressing-data-elements(9)} MixedExtension, undefined FROM Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)} supplementaryServiceInteractionNotAllowed FROM H4501-General-Error-List {itu-t recommendation h 450 1 version1(0) general-error-list(1)} BasicService FROM Message-Waiting-Indication-Operations {itu-t recommendation h 450 7 version1(0) message-waiting-operations(0)}; H323CallCompletionOperations OPERATION ::= {ccbsRequest | ccnrRequest | ccCancel | ccExecPossible | ccRingout | ccSuspend | ccResume} ccbsRequest OPERATION ::= { ARGUMENT CcRequestArg RESULT CcRequestRes ERRORS {shortTermRejection | longTermRejection | undefined | supplementaryServiceInteractionNotAllowed} CODE local:40 } ccnrRequest OPERATION ::= { ARGUMENT CcRequestArg RESULT CcRequestRes ERRORS {shortTermRejection | longTermRejection | undefined | supplementaryServiceInteractionNotAllowed} CODE local:27 } ccCancel OPERATION ::= { ARGUMENT CcArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:28 } ccExecPossible OPERATION ::= { ARGUMENT CcArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:29 } ccRingout OPERATION ::= { ARGUMENT CcShortArg OPTIONAL TRUE RETURN RESULT FALSE ERRORS {remoteUserBusyAgain | failureToMatch | undefined} CODE local:31 } ccSuspend OPERATION ::= { ARGUMENT CcShortArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:32 } ccResume OPERATION ::= { ARGUMENT CcArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:33 } CcRequestArg ::= SEQUENCE { numberA EndpointAddress, numberB EndpointAddress, ccIdentifier CallIdentifier OPTIONAL, -- If present, it shall be used as the prime mechanism for associating -- the unsuccessful call, the CC Request and the CC Call. service BasicService, can-retain-service BOOLEAN, retain-sig-connection BOOLEAN OPTIONAL, extension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CcRequestRes ::= SEQUENCE { retain-service BOOLEAN, extension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CcArg ::= CHOICE { shortArg CcShortArg, -- if signalling conection is retained longArg CcLongArg, -- if connection release option applies ... } CcShortArg ::= SEQUENCE { ccIdentifier CallIdentifier OPTIONAL, extension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CcLongArg ::= SEQUENCE { numberA EndpointAddress OPTIONAL, numberB EndpointAddress OPTIONAL, ccIdentifier CallIdentifier OPTIONAL, service BasicService OPTIONAL, -- these elements are used to identify the proper CC Request. -- The ccIdentifier if present shall be the prime mechanism for this purpose. extension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } shortTermRejection ERROR ::= {CODE local:1010 } longTermRejection ERROR ::= {CODE local:1011 } remoteUserBusyAgain ERROR ::= {CODE local:1012 } failureToMatch ERROR ::= {CODE local:1013 } END -- of Call-Completion-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Call-Diversion-Operations.asn
-- Call-Diversion-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.3/1998/Call-Diversion-Operations.asn -- -- Module Call-Diversion-Operations (H.450.3:02/1998) Call-Diversion-Operations {itu-t recommendation h 450 3 version1(0) call-diversion-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} H225InformationElement FROM H225-generic-parameters-definition {itu-t recommendation h 450 1 version1(0) h225-generic-parameters(6)} NonStandardParameter FROM H323-MESSAGES EndpointAddress, PartySubaddress, PresentationAllowedIndicator FROM Addressing-Data-Elements {itu-t recommendation h 450 1 version1(0) addressing-data-elements(9)} userNotSubscribed, notAvailable, invalidServedUserNumber, basicServiceNotProvided, resourceUnavailable, supplementaryServiceInteractionNotAllowed FROM H4501-General-Error-List {itu-t recommendation h 450 1 version1(0) general-error-list(1)}; H323CallDiversionOperations OPERATION ::= {activateDiversionQ | deactivateDiversionQ | interrogateDiversionQ | checkRestriction | callRerouting | divertingLegInformation1 | divertingLegInformation2 | divertingLegInformation3 | divertingLegInformation4 | cfnrDivertedLegFailed} activateDiversionQ OPERATION ::= { -- sent from the activating h.323-endpoint to the served h.323-endpoint ARGUMENT SEQUENCE {procedure Procedure, basicService BasicService, divertedToAddress EndpointAddress, servedUserNr EndpointAddress, activatingUserNr EndpointAddress, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} RESULT CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL TRUE ERRORS {userNotSubscribed | notAvailable | invalidServedUserNumber | basicServiceNotProvided | resourceUnavailable | invalidDivertedNumber | specialServiceNumber | diversionToServedUserNumber | temporarilyUnavailable | notAuthorized | unspecified} CODE local:15 } deactivateDiversionQ OPERATION ::= { -- sent from the deactivating h.323-endpoint to the served h.323-endpoint ARGUMENT SEQUENCE {procedure Procedure, basicService BasicService, servedUserNr EndpointAddress, deactivatingUserNr EndpointAddress, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} RESULT CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL TRUE ERRORS {userNotSubscribed | notAvailable | invalidServedUserNumber | temporarilyUnavailable | notAuthorized | unspecified} CODE local:16 } interrogateDiversionQ OPERATION ::= { -- sent from the interrogating h.323-endpoint to the served h.323-endpoint ARGUMENT SEQUENCE {procedure Procedure, basicService BasicService DEFAULT allServices, servedUserNr EndpointAddress, interrogatingUserNr EndpointAddress, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} RESULT IntResultList ERRORS {userNotSubscribed | notAvailable | invalidServedUserNumber | temporarilyUnavailable | notAuthorized | unspecified} CODE local:17 } checkRestriction OPERATION ::= { -- sent from the served h.323-endpoint to the diverted-to h.323-endpoint ARGUMENT SEQUENCE {servedUserNr EndpointAddress, basicService BasicService, divertedToNr EndpointAddress, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} RESULT CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL TRUE ERRORS {notAvailable | invalidServedUserNumber | invalidDivertedNumber | specialServiceNumber | unspecified} CODE local:18 } callRerouting OPERATION ::= { -- sent from the served h.323-endpoint to the rerouting h.323-endpoint ARGUMENT SEQUENCE {reroutingReason DiversionReason, originalReroutingReason DiversionReason OPTIONAL, calledAddress EndpointAddress, diversionCounter INTEGER(1..15), h225InfoElement H225InformationElement, -- The H.225 information elements Bearer capability, -- High layer compatibility, Low layer compatibility and -- Progress Indicator information element may be embedded -- in the h225InfoElement in accordance with H.450.1. lastReroutingNr EndpointAddress, subscriptionOption SubscriptionOption, callingPartySubaddress PartySubaddress OPTIONAL, callingNumber EndpointAddress, callingInfo BMPString(SIZE (1..128)) OPTIONAL, originalCalledNr EndpointAddress OPTIONAL, redirectingInfo BMPString(SIZE (1..128)) OPTIONAL, originalCalledInfo BMPString(SIZE (1..128)) OPTIONAL, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} RESULT CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL TRUE ERRORS {userNotSubscribed | notAvailable | resourceUnavailable | invalidDivertedNumber | specialServiceNumber | diversionToServedUserNumber | numberOfDiversionsExceeded | supplementaryServiceInteractionNotAllowed | unspecified} CODE local:19 } divertingLegInformation1 OPERATION ::= { -- sent from the re-routing h.323-endpoint to the originating h.323-endpoint -- if the re-routing endpoint equals the originating endpoint, this operation -- is not applicable; may also be sent from the rerouting endpoint to other -- members of a conference, if subscription option allows. ARGUMENT SEQUENCE {diversionReason DiversionReason, subscriptionOption SubscriptionOption, nominatedNr EndpointAddress, nominatedInfo BMPString(SIZE (1..128)) OPTIONAL, redirectingNr EndpointAddress OPTIONAL, redirectingInfo BMPString(SIZE (1..128)) OPTIONAL, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:20 } divertingLegInformation2 OPERATION ::= { --sent from the re-routing h.323-endpoint to the diverted-to h.323-endpoint ARGUMENT SEQUENCE {diversionCounter INTEGER(1..15), diversionReason DiversionReason, originalDiversionReason DiversionReason OPTIONAL, divertingNr EndpointAddress OPTIONAL, originalCalledNr EndpointAddress OPTIONAL, redirectingInfo BMPString(SIZE (1..128)) OPTIONAL, originalCalledInfo BMPString(SIZE (1..128)) OPTIONAL, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} -- The divertingNr element is mandatory except in the case of interworking RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:21 } divertingLegInformation3 OPERATION ::= { --sent from the diverted-to h.323-endpoint to the originating h.323-endpoint ARGUMENT SEQUENCE {presentationAllowedIndicator PresentationAllowedIndicator, redirectionNr EndpointAddress OPTIONAL, redirectionInfo BMPString(SIZE (1..128)) OPTIONAL, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:22 } divertingLegInformation4 OPERATION ::= { -- If call diversion in not performed by the forwarding terminal but by a -- gatekeeper, the gatekeeper may send divertingLegInformation4 apdu to the -- forwarding terminal. ARGUMENT SEQUENCE {diversionReason DiversionReason, subscriptionOption SubscriptionOption, callingNr EndpointAddress, callingInfo BMPString(SIZE (1..128)) OPTIONAL, nominatedNr EndpointAddress, nominatedInfo BMPString(SIZE (1..128)) OPTIONAL, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ...} RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:100 } cfnrDivertedLegFailed OPERATION ::= { -- sent from the rerouting h.323-terminal to the served h.323-endpoint ARGUMENT CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:23 } -- This indicates that the diverted-to leg has been cleared during SS-CFNR execution. -- Definitions of general used data types: DiversionReason ::= ENUMERATED {unknown(0), cfu(1), cfb(2), cfnr(3), ... } -- The value unknown is only used if received from another network when interworking. IntResultList ::= SET SIZE (0..29) OF IntResult IntResult ::= SEQUENCE { servedUserNr EndpointAddress, basicService BasicService, procedure Procedure, divertedToAddress EndpointAddress, remoteEnabled BOOLEAN DEFAULT FALSE, extension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ... } Procedure ::= ENUMERATED {cfu(0), cfb(1), cfnr(2), ... } SubscriptionOption ::= ENUMERATED { noNotification(0), notificationWithoutDivertedToNr(1), notificationWithDivertedToNr(2), ... } invalidDivertedNumber ERROR ::= {CODE local:12 } specialServiceNumber ERROR ::= {CODE local:14 } diversionToServedUserNumber ERROR ::= {CODE local:15 } numberOfDiversionsExceeded ERROR ::= {CODE local:24 } temporarilyUnavailable ERROR ::= {CODE local:1000 } notAuthorized ERROR ::= {CODE local:1007 } unspecified ERROR ::= { PARAMETER CHOICE {extension Extension{{ExtensionSet}}, nonStandard NonStandardParameter} CODE local:1008 } BasicService ::= ENUMERATED { allServices(0), -- speech (1), -- unrestrictedDigitalInformation (2), -- audio3.1KHz (3), -- telephony (32), -- teletex (33), -- telefaxGroup4Class1 (34), -- videotexSyntaxBased (35), -- videotelephony (36), ... } -- For multimedia calls the value "allServices" shall be used only. -- The usage of the other codepoints for multimedia calls is for further study. ExtensionSeq ::= SEQUENCE OF Extension{{ExtensionSet}} ExtensionSet EXTENSION ::= {...} -- Actual values defined by individual manufacturers END -- of Call-Diversion-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Call-Hold-Operations.asn
-- Call-Hold-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.4/1999/Call-Hold-Operations.asn -- -- Module Call-Hold-Operations (H.450.4:05/1999) Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} notAvailable, invalidCallState, resourceUnavailable, supplementaryServiceInteractionNotAllowed FROM H4501-General-Error-List {itu-t recommendation h 450 1 version1(0) general-error-list(1)} NonStandardParameter FROM H323-MESSAGES; -- see H.225.0 CallHoldOperations OPERATION ::= {holdNotific | retrieveNotific | remoteHold | remoteRetrieve} holdNotific OPERATION ::= { -- sent from holding to held H.323 endpoint to invoke near-end call hold feature ARGUMENT HoldNotificArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:101 } HoldNotificArg ::= SEQUENCE { extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } retrieveNotific OPERATION ::= { -- sent from holding to held H.323 endpoint to invoke retrieval of near-end call hold feature ARGUMENT RetrieveNotificArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:102 } RetrieveNotificArg ::= SEQUENCE { extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } remoteHold OPERATION ::= { -- sent from holding to held H.323 endpoint to invoke remote-end call hold feature ARGUMENT RemoteHoldArg OPTIONAL TRUE RESULT RemoteHoldRes OPTIONAL TRUE ERRORS {notAvailable | -- feature not available in combination with the basic service invalidCallState | --hold not possible in current call state resourceUnavailable | -- maximum number of calls on hold reached supplementaryServiceInteractionNotAllowed | -- other supplementary service prohibits hold undefined -- undefined reason--} CODE local:103 } RemoteHoldArg ::= SEQUENCE { extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } RemoteHoldRes ::= SEQUENCE { extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } remoteRetrieve OPERATION ::= { -- sent from holding to held H.323 endpoint to invoke retrieval of remote-end call hold feature ARGUMENT RemoteRetrieveArg OPTIONAL TRUE RESULT RemoteRetrieveRes OPTIONAL TRUE ERRORS {invalidCallState | -- Call to which retrieve request applies is not in state Hold_RE_Held undefined -- undefined reason--} CODE local:104 } RemoteRetrieveArg ::= SEQUENCE { extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } RemoteRetrieveRes ::= SEQUENCE { extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } MixedExtension ::= CHOICE { extension Extension{{ExtensionSet}}, nonStandardData NonStandardParameter } ExtensionSet EXTENSION ::= {...} -- Actual values defined by individual manufacturers undefined ERROR ::= { PARAMETER SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL TRUE CODE local:2002 } END -- of Call-Hold-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Call-Intrusion-Operations.asn
-- Call-Intrusion-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.11/2001/Call-Intrusion-Operations.asn -- -- Module Call-Intrusion-Operations (H.450.11:03/2001) Call-Intrusion-Operations {itu-t recommendation h 450 11 version1(0) call-intrusion-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} CallIdentifier FROM H323-MESSAGES -- see H.225.0 MixedExtension, undefined FROM Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)} notAvailable, supplementaryServiceInteractionNotAllowed FROM H4501-General-Error-List {itu-t recommendation h 450 1 version1(0) general-error-list(1)} callWaiting FROM Call-Waiting-Operations {itu-t recommendation h 450 6 version1(0) call-waiting-operations(0)} cfbOverride, remoteUserAlerting FROM Call-Offer-Operations {itu-t recommendation h 450 10 version1(0) call-offer-operations(0)}; H323CallIntrusionOperations OPERATION ::= {callIntrusionRequest | callIntrusionGetCIPL | callIntrusionIsolate | callIntrusionForcedRelease | callIntrusionWOBRequest | callIntrusionSilentMonitor | callIntrusionNotification | cfbOverride | remoteUserAlerting | callWaiting} -- callWaiting is only used for interaction with Call Transfer callIntrusionRequest OPERATION ::= { ARGUMENT CIRequestArg RESULT CIRequestRes ERRORS {notAvailable | notBusy | temporarilyUnavailable | notAuthorized | undefined | supplementaryServiceInteractionNotAllowed} CODE local:43 } callIntrusionGetCIPL OPERATION ::= { ARGUMENT CIGetCIPLOptArg OPTIONAL TRUE RESULT CIGetCIPLRes ALWAYS RESPONDS FALSE CODE local:44 } callIntrusionIsolate OPERATION ::= { ARGUMENT CIIsOptArg OPTIONAL TRUE RESULT CIIsOptRes OPTIONAL TRUE ERRORS {notAvailable | undefined | supplementaryServiceInteractionNotAllowed} CODE local:45 } callIntrusionForcedRelease OPERATION ::= { ARGUMENT CIFrcRelArg OPTIONAL TRUE RESULT CIFrcRelOptRes OPTIONAL TRUE ERRORS {notAvailable | notBusy | temporarilyUnavailable | notAuthorized | undefined | supplementaryServiceInteractionNotAllowed} CODE local:46 } callIntrusionWOBRequest OPERATION ::= { ARGUMENT CIWobOptArg OPTIONAL TRUE RESULT CIWobOptRes OPTIONAL TRUE ERRORS {notAvailable | undefined | supplementaryServiceInteractionNotAllowed} CODE local:47 } callIntrusionSilentMonitor OPERATION ::= { ARGUMENT CISilentArg RESULT CISilentOptRes OPTIONAL TRUE ERRORS {notAvailable | notBusy | temporarilyUnavailable | notAuthorized | undefined | supplementaryServiceInteractionNotAllowed} CODE local:116 } callIntrusionNotification OPERATION ::= { ARGUMENT CINotificationArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:117 } CIRequestArg ::= SEQUENCE { ciCapabilityLevel CICapabilityLevel, argumentExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIRequestRes ::= SEQUENCE { ciStatusInformation CIStatusInformation, resultExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIGetCIPLOptArg ::= SEQUENCE { argumentExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIGetCIPLRes ::= SEQUENCE { ciProtectionLevel CIProtectionLevel, silentMonitoringPermitted NULL OPTIONAL, resultExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIIsOptArg ::= SEQUENCE { argumentExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIIsOptRes ::= SEQUENCE { resultExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIFrcRelArg ::= SEQUENCE { ciCapabilityLevel CICapabilityLevel, argumentExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIFrcRelOptRes ::= SEQUENCE { resultExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIWobOptArg ::= SEQUENCE { argumentExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CIWobOptRes ::= SEQUENCE { resultExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CISilentArg ::= SEQUENCE { ciCapabilityLevel CICapabilityLevel, specificCall CallIdentifier OPTIONAL, argumentExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CISilentOptRes ::= SEQUENCE { resultExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CINotificationArg ::= SEQUENCE { ciStatusInformation CIStatusInformation, argumentExtension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CICapabilityLevel ::= INTEGER { intrusionLowCap(1), intrusionMediumCap(2), intrusionHighCap(3)}(1..3) CIProtectionLevel ::= INTEGER { lowProtection(0), mediumProtection(1), highProtection(2), fullProtection(3) }(0..3) CIStatusInformation ::= CHOICE { callIntrusionImpending NULL, callIntruded NULL, callIsolated NULL, callForceReleased NULL, callIntrusionComplete NULL, callIntrusionEnd NULL, ... } notBusy ERROR ::= {CODE local:1009 } -- used when the called user is not busy temporarilyUnavailable ERROR ::= {CODE local:1000 } -- used when conditions for invocation of SS-CI -- are momentarily not met notAuthorized ERROR ::= {CODE local:1007 } -- used when a SS-CI request is rejected -- because of insufficient CICL or if silent -- monitoring is not permitted END -- of Call-Intrusion-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Call-Offer-Operations.asn
-- Call-Offer-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.10/2001/Call-Offer-Operations.asn -- -- Module Call-Offer-Operations (H.450.10:03/2001) Call-Offer-Operations {itu-t recommendation h 450 10 version1(0) call-offer-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} MixedExtension FROM Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)} callWaiting FROM Call-Waiting-Operations {itu-t recommendation h 450 6 version1(0) call-waiting-operations(0)}; H323CallOfferOperations OPERATION ::= {callOfferRequest | callWaiting | remoteUserAlerting | cfbOverride} callOfferRequest OPERATION ::= -- sent from calling to called endpoint { ARGUMENT CoReqOptArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:34 } remoteUserAlerting OPERATION ::= -- sent from called to calling endpoint { ARGUMENT RUAlertOptArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:115 } cfbOverride OPERATION ::= -- sent from calling to called endpoint { ARGUMENT CfbOvrOptArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:49 } CoReqOptArg ::= SEQUENCE { extension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } RUAlertOptArg ::= SEQUENCE { extension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CfbOvrOptArg ::= SEQUENCE { extension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } END -- of Call-Offer-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Call-Park-Pickup-Operations.asn
-- Call-Park-Pickup-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.5/1999/Call-Park-Pickup-Operations.asn -- -- Module Call-Park-Pickup-Operations (H.450.5:05/1999) Call-Park-Pickup-Operations {itu-t recommendation h 450 5 version1(0) call-park-pickup-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} notAvailable, invalidCallState, resourceUnavailable, supplementaryServiceInteractionNotAllowed FROM H4501-General-Error-List {itu-t recommendation h 450 1 version1(0) general-error-list(1)} EndpointAddress FROM Addressing-Data-Elements {itu-t recommendation h 450 1 version1(0) addressing-data-elements(9)} MixedExtension FROM Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)} NonStandardParameter, CallIdentifier FROM H323-MESSAGES; -- see H.225.0 CallParkPickupOperations OPERATION ::= {cpRequest | cpSetup | groupIndicationOn | groupIndicationOff | pickrequ | pickup | pickExe | cpNotify | cpickupNotify} cpRequest OPERATION ::= { -- sent from parking endpoint to the parked endpoint to invoke SS-PARK ARGUMENT CpRequestArg RESULT CpRequestRes ERRORS {notAvailable | -- feature not available in combination with the basic service invalidCallState | -- call park not possible in current call state resourceUnavailable | -- maximum number of parked calls reached supplementaryServiceInteractionNotAllowed | -- other supplementary service prohibits call park invocation undefined -- undefined reason--} CODE local:106 } CpRequestArg ::= SEQUENCE { parkingNumber EndpointAddress, parkedNumber EndpointAddress, parkedToNumber EndpointAddress, parkedToPosition ParkedToPosition OPTIONAL, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CpRequestRes ::= SEQUENCE { parkedToNumber EndpointAddress, parkedToPosition ParkedToPosition OPTIONAL, parkCondition ParkCondition, extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } cpSetup OPERATION ::= { -- sent from parked endpoint to the parked-to endpoint ARGUMENT CpSetupArg RESULT CpSetupRes ERRORS {notAvailable | -- feature not available in combination with the basic service invalidCallState | -- call park not possible in current call state resourceUnavailable | -- maximum number of parked calls reached supplementaryServiceInteractionNotAllowed | -- other supplementary service prohibits call park invocation undefined -- undefined reason --} CODE local:107 } CpSetupArg ::= SEQUENCE { parkingNumber EndpointAddress, parkedNumber EndpointAddress, parkedToNumber EndpointAddress, parkedToPosition ParkedToPosition OPTIONAL, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } CpSetupRes ::= SEQUENCE { parkedToNumber EndpointAddress, parkedToPosition ParkedToPosition OPTIONAL, parkCondition ParkCondition, extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } groupIndicationOn OPERATION ::= { -- sent from the parked-to endpoint/alerting endpoint to the group members ARGUMENT GroupIndicationOnArg RESULT GroupIndicationOnRes ERRORS {undefined -- undefined reason--} CODE local:108 } GroupIndicationOnArg ::= SEQUENCE { callPickupId CallIdentifier, -- identification of the call to be retrieved (parked or alerting call); -- its value equals the value of the CallIdentifier as assigned for the parked/ -- alerting call within Setup-UUIE groupMemberUserNr EndpointAddress, retrieveCallType CallType, partyToRetrieve EndpointAddress, -- Parked or Calling User retrieveAddress EndpointAddress, -- parked-to or alerting entity address -- (may also be a GK, see 9.2) parkPosition ParkedToPosition OPTIONAL, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } GroupIndicationOnRes ::= SEQUENCE { extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } groupIndicationOff OPERATION ::= { -- sent from the parked-to endpoint/alerting endpoint to the group members ARGUMENT GroupIndicationOffArg RESULT GroupIndicationOffRes ERRORS {invalidCallState | -- group indication is not on undefined -- undefined reason--} CODE local:109 } GroupIndicationOffArg ::= SEQUENCE { callPickupId CallIdentifier, -- identification of the call that has been picked up (parked or alerting call) groupMemberUserNr EndpointAddress, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } GroupIndicationOffRes ::= SEQUENCE { extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } pickrequ OPERATION ::= { -- sent from the picking-up user to the parked-to/ -- alerting endpoint as part of the SS-PICKUP invocation ARGUMENT PickrequArg RESULT PickrequRes ERRORS {undefined | -- undefined reason callAlreadyPickedUp -- call has already been picked up by another user --} CODE local:110 } PickrequArg ::= SEQUENCE { picking-upNumber EndpointAddress, callPickupId CallIdentifier OPTIONAL, -- identification of the call to be picked up (parked or alerting call), if known partyToRetrieve EndpointAddress OPTIONAL, -- Parked or Calling User retrieveAddress EndpointAddress, -- parked-to or alerting entity address parkPosition ParkedToPosition OPTIONAL, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } PickrequRes ::= SEQUENCE { callPickupId CallIdentifier, -- identification of the call that is being picked up (parked or alerting call), -- if not sent in pickrequ invoke, it is assigned at the parked-to/alerting -- endpoint and reflects the CallIdentification of the parked/alerting call for -- later association with the pickExe invoke APDU. extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } pickup OPERATION ::= { -- sent from the parked-to/alerting endpoint to the parked/calling endpoint -- after the picking-up user has invoked SS-PICKUP. The picking-up user may -- be local (i.e. parked-to/alerting endpoint equals picking-up -- endpoint) or may be remote (i.e. picking-up user is located at a -- remote picking-up endpoint having sent pickrequ invoke APDU to the -- parked-to/alerting endpoint). ARGUMENT PickupArg RESULT PickupRes ERRORS {undefined | -- undefined reason callAlreadyPickedUp -- call has already been picked up by another user --} CODE local:111 } PickupArg ::= SEQUENCE { callPickupId CallIdentifier, -- identification of this call to be picked up (parked or alerting call); -- equals the CallIdentifier value that was assigned to this call in Setup-UUIE picking-upNumber EndpointAddress, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } PickupRes ::= SEQUENCE { extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } pickExe OPERATION ::= { -- sent from the parked/calling endpoint to the picking-up endpoint ARGUMENT PickExeArg RESULT PickExeRes ERRORS {undefined | -- undefined reason callPickupIdInvalid -- value not matching with the previous SS-PICKUP request } CODE local:112 } PickExeArg ::= SEQUENCE { callPickupId CallIdentifier, -- identification of the parked/alerting call to be picked-up; -- required at picking-up endpoint to associate the SS-PICKUP invoked with this -- incoming setup message carrying the pickExe invoke APDU. picking-upNumber EndpointAddress, partyToRetrieve EndpointAddress, -- Parked or Calling User extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } PickExeRes ::= SEQUENCE { extensionRes SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } cpNotify OPERATION ::= { -- sent from the parking-to to parked endpoint in case of local park. ARGUMENT CpNotifyArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:113 } CpNotifyArg ::= SEQUENCE { parkingNumber EndpointAddress OPTIONAL, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } cpickupNotify OPERATION ::= { -- sent from parked-to to parked endpoint in case of SS-PICKUP from local park ARGUMENT CpickupNotifyArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:114 } CpickupNotifyArg ::= SEQUENCE { picking-upNumber EndpointAddress OPTIONAL, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } ParkedToPosition ::= INTEGER(0..65535) ParkCondition ::= ENUMERATED { unspecified(0), parkedToUserIdle(1), parkedToUserBusy(2), parkedToGroup(3), ... } CallType ::= ENUMERATED {parkedCall(0), alertingCall(1), ... } callPickupIdInvalid ERROR ::= {CODE local:2000 } callAlreadyPickedUp ERROR ::= {CODE local:2001 } undefined ERROR ::= { PARAMETER SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL TRUE CODE local:2002 } END -- of Call-Park-Pickup-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Call-Transfer-Operations.asn
-- Call-Transfer-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.2/1998/Call-Transfer-Operations.asn -- -- Module Call-Transfer-Operations (H.450.2:02/1998) Call-Transfer-Operations {itu-t recommendation h 450 2 version1(0) call-transfer-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} notAvailable, supplementaryServiceInteractionNotAllowed, invalidCallState FROM H4501-General-Error-List {itu-t recommendation h 450 1 version1(0) general-error-list(1)} EndpointAddress, PartySubaddress FROM Addressing-Data-Elements {itu-t recommendation h 450 1 version1(0) addressing-data-elements(9)} NonStandardParameter FROM H323-MESSAGES -- see H.225.0 H225InformationElement FROM H225-generic-parameters-definition {itu-t recommendation h 450 1 version1(0) h225-generic-parameters(6)}; H323CallTransferOperations OPERATION ::= {callTransferIdentify | callTransferAbandon | callTransferInitiate | callTransferSetup | callTransferUpdate | subaddressTransfer | callTransferComplete | callTransferActive} callTransferIdentify OPERATION ::= { -- sent from transferring endpoint to transferred-to endpoint ARGUMENT DummyArg OPTIONAL TRUE RESULT CTIdentifyRes ERRORS {notAvailable | invalidCallState | supplementaryServiceInteractionNotAllowed | unspecified} CODE local:7 } callTransferAbandon OPERATION ::= { -- sent from transferring to transferred-to endpoint ARGUMENT DummyArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:8 } callTransferInitiate OPERATION ::= { -- sent from transfering to transferred endpoint ARGUMENT CTInitiateArg RESULT DummyRes OPTIONAL TRUE ERRORS {notAvailable | invalidCallState | invalidReroutingNumber | unrecognizedCallIdentity | establishmentFailure | supplementaryServiceInteractionNotAllowed | unspecified} CODE local:9 } callTransferSetup OPERATION ::= { -- sent from transferred to transferred-to endpoint ARGUMENT CTSetupArg RESULT DummyRes OPTIONAL TRUE ERRORS {notAvailable | invalidCallState | invalidReroutingNumber | unrecognizedCallIdentity | unspecified | supplementaryServiceInteractionNotAllowed} CODE local:10 } callTransferUpdate OPERATION ::= { -- may be sent from transferred to transferred-to endpoint (in SETUP) and -- vice versa (in CONNECT) ARGUMENT CTUpdateArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:13 } subaddressTransfer OPERATION ::= { -- may be sent from transferred to the transferred-to endpoint and vice versa ARGUMENT SubaddressTransferArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:14 } callTransferComplete OPERATION ::= { -- sent from GK to the transferred endpoint, if GK performs call transfer -- (see 10.6.1). ARGUMENT CTCompleteArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:12 } callTransferActive OPERATION ::= { -- sent from gatekeeper to the transferred endpoint, in case of transfer ringing -- after transferred-to endpoint has answered the call (only in case of -- transfer performed by gatekeeper) ARGUMENT CTActiveArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:11 } DummyArg ::= CHOICE { extensionSeq ExtensionSeq, nonStandardData NonStandardParameter } DummyRes ::= CHOICE { extensionSeq ExtensionSeq, nonStandardData NonStandardParameter } CTInitiateArg ::= SEQUENCE { callIdentity CallIdentity, reroutingNumber EndpointAddress, argumentExtension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ... } CTSetupArg ::= SEQUENCE { callIdentity CallIdentity, transferringNumber EndpointAddress OPTIONAL, argumentExtension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ... } CTIdentifyRes ::= SEQUENCE { callIdentity CallIdentity, reroutingNumber EndpointAddress, resultExtension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ... } CTUpdateArg ::= SEQUENCE { redirectionNumber EndpointAddress, redirectionInfo BMPString(SIZE (1..128)) OPTIONAL, basicCallInfoElements H225InformationElement OPTIONAL, -- Information element -- Progress indicator may be conveyed argumentExtension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ... } SubaddressTransferArg ::= SEQUENCE { redirectionSubaddress PartySubaddress, argumentExtension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ... } CTCompleteArg ::= SEQUENCE { endDesignation EndDesignation, redirectionNumber EndpointAddress, -- number of new connected user basicCallInfoElements H225InformationElement OPTIONAL, -- Information element Progress indicator may be conveyed redirectionInfo BMPString(SIZE (1..128)) OPTIONAL, callStatus CallStatus DEFAULT answered, argumentExtension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ... } EndDesignation ::= ENUMERATED {primaryEnd(0), secondaryEnd(1), ... } CallStatus ::= ENUMERATED {answered(0), alerting(1), ... } CTActiveArg ::= SEQUENCE { connectedAddress EndpointAddress, -- number of new connected user basicCallInfoElements H225InformationElement OPTIONAL, -- Information element Progress indicator may be conveyed connectedInfo BMPString(SIZE (1..128)) OPTIONAL, argumentExtension CHOICE {extensionSeq ExtensionSeq, nonStandardData NonStandardParameter} OPTIONAL, ... } CallIdentity ::= NumericString(SIZE (0..4)) -- size 0 means 'empty' ExtensionSeq ::= SEQUENCE OF Extension{{ExtensionSet}} ExtensionSet EXTENSION ::= {...} -- Actual values defined by individual manufacturers unspecified ERROR ::= { PARAMETER CHOICE {extension Extension{{ExtensionSet}}, nonStandard NonStandardParameter} CODE local:1008 } invalidReroutingNumber ERROR ::= { -- used when establishment of the new connection fails -- because the reroutingNumber is not a valid alias address CODE local:1004 } unrecognizedCallIdentity ERROR ::= { -- used when establishment of the new connection fails because it -- could not be associated with a SS-CT entity at the -- transferred-to endpoint CODE local:1005 } establishmentFailure ERROR ::= { -- used when establishment of the new connection fails and -- no other error applies CODE local:1006 } END -- of Call-Transfer-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Call-Waiting-Operations.asn
-- Call-Waiting-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.6/1999/Call-Waiting-Operations.asn -- -- Module Call-Waiting-Operations (H.450.6:05/1999) Call-Waiting-Operations {itu-t recommendation h 450 6 version1(0) call-waiting-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} MixedExtension FROM Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)}; CallWaitingOperations OPERATION ::= {callWaiting} callWaiting OPERATION ::= { -- sent from served endpoint to the calling endpoint in ALERTING message ARGUMENT CallWaitingArg OPTIONAL TRUE RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:105 } CallWaitingArg ::= SEQUENCE { nbOfAddWaitingCalls INTEGER(0..255) OPTIONAL, -- indicates the number of waiting calls at the served user -- in addition to the call to which this operation applies. extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } END -- of Call-Waiting-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
Text
wireshark/epan/dissectors/asn1/h450/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h450 ) set( PROTO_OPT _EMPTY_ ) set( EXT_ASN_FILE_LIST ) set( H450_ASN H4501-Supplementary-ServiceAPDU-Structure.asn Addressing-Data-Elements.asn H225-generic-parameters-definition.asn Manufacturer-specific-service-extension-definition.asn H4501-General-Error-List.asn ) set( H450_OP_ASN Call-Transfer-Operations.asn Call-Diversion-Operations.asn Call-Hold-Operations.asn Call-Park-Pickup-Operations.asn Call-Waiting-Operations.asn Message-Waiting-Indication-Operations.asn Name-Operations.asn Call-Completion-Operations.asn Call-Offer-Operations.asn Call-Intrusion-Operations.asn Common-Information-Operations.asn ) set( ASN_FILE_LIST ${H450_ASN} ${H450_OP_ASN} ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../h225/h225-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../h450-ros/h450-ros-exp.cnf" ) ASN2WRS()
ASN.1
wireshark/epan/dissectors/asn1/h450/Common-Information-Operations.asn
-- Common-Information-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.12/2001/Common-Information-Operations.asn -- -- Module Common-Information-Operations (H.450.12:07/2001) Common-Information-Operations {itu-t recommendation h 450 12 version1(0) common-information-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} MixedExtension, undefined FROM Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)}; H323CommonInformationOperations OPERATION ::= {cmnRequest | cmnInform} cmnRequest OPERATION ::= { ARGUMENT DummyArg OPTIONAL TRUE RESULT CmnArg ERRORS {undefined} CODE local:84 } cmnInform OPERATION ::= { ARGUMENT CmnArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:85 } CmnArg ::= SEQUENCE { featureList FeatureList OPTIONAL, featureValues FeatureValues OPTIONAL, featureControl FeatureControl OPTIONAL, extension SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } DummyArg ::= SEQUENCE { extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL } FeatureList ::= SEQUENCE { -- indicates capabilities of the endpoint sending the FeatureList ssCFreRoutingSupported NULL OPTIONAL, -- Call Forwarding rerouting -- supported meaningful only in -- forward direction during call -- establishment ssCTreRoutingSupported NULL OPTIONAL, -- Call Transfer rerouting -- supported meaningful both in -- forward & backward direction -- during call establishment ssCCBSPossible NULL OPTIONAL, -- CCBS possible meaningful only -- in backward direction before -- receipt of ALERTING/CONNECT ssCCNRPossible NULL OPTIONAL, -- CCNR possible meaningful only -- in backward direction before -- receipt of CONNECT ssCOSupported NULL OPTIONAL, -- Call Offer supported -- meaningful only in backward -- direction during call -- establishment -- Call Intrusion ssCIForcedReleaseSupported NULL OPTIONAL, -- meaningful only in -- backward direction ssCIIsolationSupported NULL OPTIONAL, -- meaningful only in -- backward direction ssCIWaitOnBusySupported NULL OPTIONAL, -- meaningful only in -- backward direction ssCISilentMonitoringSupported NULL OPTIONAL, -- meaningful only in -- backward direction ssCIConferenceSupported NULL OPTIONAL, -- meaningful only in -- backward direction -- Call Hold ssCHFarHoldSupported NULL OPTIONAL, -- meaningful in both -- directions -- Message Waiting Callback ssMWICallbackSupported NULL OPTIONAL, -- meaningful in backward -- direction -- meaningful both in -- forward & backward -- direction during call -- establishment -- Call Park ssCPCallParkSupported NULL OPTIONAL, -- meaningful in both -- directions ... } FeatureValues ::= SEQUENCE { partyCategory PartyCategory OPTIONAL, ssCIprotectionLevel SSCIProtectionLevel OPTIONAL, -- Supplementary Service Call Intrusion Protection level -- meaningful both in forward and backward direction; inclusion -- indicates support of SS-CI as an unwanted endpoint (forward -- direction) or as a Terminating Endpoint (backward direction), -- as well as the applicable protection level. ... } PartyCategory ::= ENUMERATED {unknown, extension, attendant, emergExt, ... } SSCIProtectionLevel ::= INTEGER(0..3) FeatureControl ::= SEQUENCE { ssCHDoNotHold NULL OPTIONAL, -- meaningful in both directions -- Sending endpoint shall not be held ssCTDoNotTransfer NULL OPTIONAL, -- meaningful in both directions -- sending endpoint shall not be transferred ssMWICallbackCall NULL OPTIONAL, -- meaningful only in SETUP -- indicating a callback call ssCISilentMonitorPermitted NULL OPTIONAL, -- unwanted endpoint -- allows for -- silent monitoring -- meaningful in forward and backward direction ... } END -- of Common-Information-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/H225-generic-parameters-definition.asn
-- H225-generic-parameters-definition.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.1/1998/H225-generic-parameters-definition.asn -- -- Module H225-generic-parameters-definition (H.450.1:02/1998) H225-generic-parameters-definition {itu-t recommendation h 450 1 version1(0) h225-generic-parameters(6)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN H225InformationElement ::= OCTET STRING END -- of H225 Generic parameters definition -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
Configuration
wireshark/epan/dissectors/asn1/h450/h450.cnf
# h450.cnf # H.450 conformation file # Copyright 2004 Anders Broman #.OPT PER ALIGNED GROUP_BY_PROT -o h450 #.END #.IMPORT ../h225/h225-exp.cnf #.IMPORT ../h450-ros/h450-ros-exp.cnf #.MODULE H4501-Supplementary-ServiceAPDU-Structure h450 Addressing-Data-Elements h450 H225-generic-parameters-definition h450 Manufacturer-specific-service-extension-definition h450 H4501-General-Error-List h450 Call-Transfer-Operations h450.2 Call-Diversion-Operations h450.3 Call-Hold-Operations h450.4 Call-Park-Pickup-Operations h450.5 Call-Waiting-Operations h450.6 Message-Waiting-Indication-Operations h450.7 Name-Operations h450.8 Call-Completion-Operations h450.9 Call-Offer-Operations h450.10 Call-Intrusion-Operations h450.11 Common-Information-Operations h450.12 #.OMIT_ASSIGNMENT PresentedAddressScreened PresentedAddressUnscreened PresentedNumberScreened PresentedNumberUnscreened AddressScreened NumberScreened Address # implemented manually in h450-ros as asn2wrs is not able to handle subtype constraint event passed through parameter InvokeIDs #.END #.PDU H4501SupplementaryService OPERATION.&ArgumentType OPERATION.&ResultType ERROR.&ParameterType #.FN_HDR H4501SupplementaryService proto_item *hidden_item; hidden_item = proto_tree_add_item(tree, proto_h450, tvb, offset, -1, ENC_NA); proto_item_set_hidden(hidden_item); #.END #.FN_HDR ServiceApdus/rosApdus/_item h450_rose_ctx.apdu_depth = 1; actx->rose_ctx = &h450_rose_ctx; #.END #.TYPE_RENAME ARG-activateDiversionQ/extension ActivateDiversionQArg_extension ARG-deactivateDiversionQ/extension DeactivateDiversionQArg_extension ARG-interrogateDiversionQ/extension InterrogateDiversionQ_extension ARG-checkRestriction/extension CheckRestrictionArg_extension ARG-callRerouting/extension CallReroutingArg_extension ARG-divertingLegInformation1/extension DivertingLegInformation1Arg_extension ARG-divertingLegInformation2/extension DivertingLegInformation2Arg_extension ARG-divertingLegInformation3/extension DivertingLegInformation3Arg_extension ARG-divertingLegInformation4/extension DivertingLegInformation4Arg_extension IntResult/extension IntResult_extension #.FIELD_RENAME #PresentedAddressScreened/presentationAllowedAddress addressScreened_presentationAllowedAddress #PresentedNumberScreened/presentationAllowedAddress numberScreened_presentationAllowedAddress #PresentedNumberUnscreened/presentationAllowedAddress numberUnscreened_presentationAllowedAddress #PresentedAddressUnscreened/presentationAllowedAddress addressUnscreened_presentationAllowedAddress #PresentedAddressScreened/presentationRestrictedAddress addressScreened_presentationRestrictedAddress #PresentedNumberScreened/presentationRestrictedAddress numberScreened_presentationRestrictedAddress #PresentedNumberUnscreened/presentationRestrictedAddress numberUnscreened_presentationRestrictedAddress #PresentedAddressUnscreened/presentationRestrictedAddress addressUnscreened_presentationRestrictedAddress CTInitiateArg/argumentExtension cTInitiateArg_argumentExtension CTSetupArg/argumentExtension cTSetupArg_argumentExtension CTUpdateArg/argumentExtension cTUpdateArg_argumentExtension SubaddressTransferArg/argumentExtension subaddressTransferArg_argumentExtension CTCompleteArg/argumentExtension cTCompleteArg_argumentExtension CTActiveArg/argumentExtension cTActiveArg_argumentExtension MixedExtension/extension mixedExtension_extension PAR-unspecified/extension unspecified_extension ARG-checkRestriction/extension checkRestrictionArg_extension ARG-divertingLegInformation1/extension divertingLegInformation1Arg_extension ARG-divertingLegInformation2/extension divertingLegInformation2Arg_extension CcRequestArg/extension ccRequestArg_extension CcRequestRes/extension ccRequestRes_extension CcShortArg/extension ccShortArg_extension CcLongArg/extension ccLongArg_extension CoReqOptArg/extension coReqOptArg_extension RUAlertOptArg/extension rUAlertOptArg_extension CfbOvrOptArg/extension cfbOvrOptArg_extension CmnArg/extension cmnArg_extension ARG-activateDiversionQ/extension activateDiversionQArg_extension ARG-interrogateDiversionQ/extension interrogateDiversionQ_extension ARG-callRerouting/extension callReroutingArg_extension ARG-divertingLegInformation4/extension divertingLegInformation4Arg_extension ARG-divertingLegInformation3/extension divertingLegInformation3Arg_extension ARG-deactivateDiversionQ/extension deactivateDiversionQArg_extension IntResult/extension intResult_extension MWIActivateArg/extensionArg mWIActivateArg_extensionArg MWIDeactivateArg/extensionArg mWIDeactivateArg_extensionArg MWIInterrogateArg/extensionArg mWIInterrogateArg_extensionArg MWIInterrogateResElt/extensionArg mWIInterrogateResElt_extensionArg HoldNotificArg/extensionArg holdNotificArg_extensionArg RetrieveNotificArg/extensionArg retrieveNotificArg_extensionArg RemoteHoldArg/extensionArg remoteHoldArg_extensionArg RemoteRetrieveArg/extensionArg remoteRetrieveArg_extensionArg CpRequestArg/extensionArg cpRequestArg_extensionArg CpSetupArg/extensionArg cpSetupArg_extensionArg GroupIndicationOnArg/extensionArg groupIndicationOnArg_extensionArg GroupIndicationOffArg/extensionArg groupIndicationOffArg_extensionArg PickrequArg/extensionArg pickrequArg_extensionArg PickupArg/extensionArg pickupArg_extensionArg PickExeArg/extensionArg pickExeArg_extensionArg CpNotifyArg/extensionArg cpNotifyArg_extensionArg CpickupNotifyArg/extensionArg cpickupNotifyArg_extensionArg CallWaitingArg/extensionArg callWaitingArg_extensionArg CIRequestArg/argumentExtension cIRequestArg_argumentExtension CIGetCIPLOptArg/argumentExtension cIGetCIPLOptArg_argumentExtension CIIsOptArg/argumentExtension cIIsOptArg_argumentExtension CIFrcRelArg/argumentExtension cIFrcRelArg_argumentExtension CIWobOptArg/argumentExtension cIWobOptArg_argumentExtension CISilentArg/argumentExtension cISilentArg_argumentExtension CINotificationArg/argumentExtension cINotificationArg_argumentExtension CIRequestRes/resultExtension cIRequestRes_resultExtension CIGetCIPLRes/resultExtension cIGetCIPLRes_resultExtension CIIsOptRes/resultExtension cIIsOptRes_resultExtension CIFrcRelOptRes/resultExtension cIFrcRelOptRes_resultExtension CIWobOptRes/resultExtension cIWobOptRes_resultExtension CISilentOptRes/resultExtension cISilentOptRes_resultExtension #.TABLE10_BODY OPERATION { %(&operationCode)3s, "%(_name)s" }, #.END #.TABLE11_BODY OPERATION /* %(_name)-24s */ { %(&operationCode)3s, %(_argument_pdu)s, %(_result_pdu)s }, #.END #.TABLE20_BODY ERROR { %(&errorCode)4s, "%(_name)s" }, #.END #.TABLE21_BODY ERROR /* %(_name)-24s */ { %(&errorCode)4s, %(_parameter_pdu)s }, #.END
ASN.1
wireshark/epan/dissectors/asn1/h450/H4501-General-Error-List.asn
-- H4501-General-Error-List.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.1/1998/H4501-General-Error-List.asn -- -- Module H4501-General-Error-List (H.450.1:02/1998) H4501-General-Error-List {itu-t recommendation h 450 1 version1(0) general-error-list(1)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)}; -- The following errors are based on the error definitions of Recommendation Q.950. userNotSubscribed ERROR ::= {CODE local:0 } -- is an indication that the user has not subscribed to this service. rejectedByNetwork ERROR ::= {CODE local:1 } -- is an indication that the requested service is rejected by the network -- (e.g. gatekeeper). rejectedByUser ERROR ::= {CODE local:2 } -- is an indication that the requested service is provided by the -- network but that the remote user has rejected this service request. notAvailable ERROR ::= {CODE local:3 } -- is an indication that the user has subscribed to this service but the -- requested service is not available combined with the basic service or -- the other services (e.g. operation). insufficientInformation ERROR ::= {CODE local:5 } -- is an indication that the content of operation argument is -- incomplete, or absent entirely. invalidServedUserNumber ERROR ::= {CODE local:6 } -- is an indication that the requested service cannot be performed -- because of the usage of an invalid served user number. invalidCallState ERROR ::= {CODE local:7 } -- is an indication that no match exists between the service request and -- the valid H.225.0 call state, this applies also to invalid -- auxiliary states or an invalid combination of H.225.0 call states and -- auxiliary states. basicServiceNotProvided ERROR ::= {CODE local:8 } -- is an indication that the service request is directed to a Basic -- Service which is not provided (e.g. this return error value is used -- in cases where a supplementary service is to be invoked with a SETUP -- message but indicating the wrong Basic Service). notIncomingCall ERROR ::= {CODE local:9 } -- is an indication that the service request has been invoked for an -- outgoing call, which is not permitted for that service. supplementaryServiceInteractionNotAllowed ERROR ::= {CODE local:10 } -- is an indication that the Service request is not permitted in -- combination with either a further requested or active supplementary -- service. resourceUnavailable ERROR ::= {CODE local:11 } -- is an indication that the service provider has temporarily no -- resource available for the provision of the requested service. callFailure ERROR ::= {CODE local:25 } -- is an indication that the requested supplementary service was not executable by virtue -- of a Basic Call Failure. The parameter is included under circumstances where the -- call failure was remote from the local gatekeeper interface over which the error is to -- be sent. For example when: -- a) no H.225.0 RELEASE COMPLETE message is provided locally, or -- b) the cause information element included in the RELEASE COMPLETE -- message represents only the reason for local basic call clearing. -- In these cases the parameter value represents the clearing cause included in the -- remote clearing procedure. proceduralError ERROR ::= {CODE local:43 } -- is an indication that a transport message (e.g. SETUP) -- is received which has one or more operation APDUs which have a valid -- content but which are not specified as valid information content of -- the transport message used. END -- of H4501-General-Error-List -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/H4501-Supplementary-ServiceAPDU-Structure.asn
-- H4501-Supplementary-ServiceAPDU-Structure.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.1/1998/H4501-Supplementary-ServiceAPDU-Structure.asn -- -- Module H4501-Supplementary-ServiceAPDU-Structure (H.450.1:02/1998) H4501-Supplementary-ServiceAPDU-Structure {itu-t recommendation h 450 1 version1(0) h4501-facility-information-structure(2)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS AliasAddress FROM H323-MESSAGES -- see H.225.0 V2 OPERATION, ROS{}, InvokeId FROM Remote-Operations-Apdus {itu-t recommendation h 450 1 version1(0) remote-operations-apdus(11)}; H4501SupplementaryService ::= SEQUENCE { networkFacilityExtension NetworkFacilityExtension OPTIONAL, -- see 8.1 interpretationApdu InterpretationApdu OPTIONAL, -- see 8.2 serviceApdu ServiceApdus, -- H.450.x supplementary services ... } NetworkFacilityExtension ::= SEQUENCE { sourceEntity EntityType, sourceEntityAddress AddressInformation OPTIONAL, destinationEntity EntityType, destinationEntityAddress AddressInformation OPTIONAL, ... } EntityType ::= CHOICE {endpoint NULL, anyEntity NULL, ... } AddressInformation ::= AliasAddress InterpretationApdu ::= CHOICE { discardAnyUnrecognizedInvokePdu NULL, clearCallIfAnyInvokePduNotRecognized NULL, -- this value also applies to Call independent signalling connections rejectAnyUnrecognizedInvokePdu NULL, -- this coding is implied by the absence of an interpretation APDU. ... } ServiceApdus ::= CHOICE { rosApdus SEQUENCE SIZE (1..MAX) OF ROS{{InvokeIdSet}, {OperationSet}, {OperationSet}}, -- see 8.3; other alternatives may be defined in future versions ... } InvokeIdSet INTEGER ::= {InvokeIDs, ...} InvokeIDs ::= INTEGER(0..65535) OperationSet OPERATION ::= {...} -- actual values are defined by individual supplementary service specifications -- (e.g. H.450.x or manufacturer specific) END -- of H4501- Supplementary-ServiceAPDU-Structure -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Manufacturer-specific-service-extension-definition.asn
-- Manufacturer-specific-service-extension-definition.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.1/1998/Manufacturer-specific-service-extension-definition.asn -- -- Module Manufacturer-specific-service-extension-definition (H.450.1:02/1998) Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN EXTENSION ::= CLASS {&ArgumentType , &extensionId OBJECT IDENTIFIER }WITH SYNTAX {ARGUMENT &ArgumentType IDENTIFIER &extensionId } Extension{EXTENSION:ExtensionSet} ::= SEQUENCE { extensionId EXTENSION.&extensionId({ExtensionSet}), extensionArgument EXTENSION.&ArgumentType({ExtensionSet}{@extensionId}) } -- ExtensionSet is a set of objects of class EXTENSION. -- Actual values of ExtensionSet are defined by the individual manufacturers. -- Element extensionId is constrained to be the identifier of an object from that set. -- Element extensionArgument is constrained to be the argument type for that particular -- object. END -- of Manufacturer-specific-service-extension-definition -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Message-Waiting-Indication-Operations.asn
-- Message-Waiting-Indication-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.7/1999/Message-Waiting-Indication-Operations.asn -- -- Module Message-Waiting-Indication-Operations (H.450.7:05/1999) Message-Waiting-Indication-Operations {itu-t recommendation h 450 7 version1(0) message-waiting-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} userNotSubscribed, invalidServedUserNumber, basicServiceNotProvided FROM H4501-General-Error-List {itu-t recommendation h 450 1 version1(0) general-error-list(1)} EndpointAddress FROM Addressing-Data-Elements {itu-t recommendation h 450 1 version1(0) addressing-data-elements(9)} MixedExtension FROM Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)}; H323-MWI-Operations OPERATION ::= {mwiActivate | mwiDeactivate | mwiInterrogate} mwiActivate OPERATION ::= { ARGUMENT MWIActivateArg RESULT DummyRes ERRORS {userNotSubscribed | invalidServedUserNumber | basicServiceNotProvided | undefined} CODE local:80 } mwiDeactivate OPERATION ::= { ARGUMENT MWIDeactivateArg RESULT DummyRes ERRORS {userNotSubscribed | invalidServedUserNumber | basicServiceNotProvided | undefined} CODE local:81 } mwiInterrogate OPERATION ::= { ARGUMENT MWIInterrogateArg RESULT MWIInterrogateRes ERRORS {userNotSubscribed | invalidServedUserNumber | notActivated | invalidMsgCentreId | undefined} CODE local:82 } MWIActivateArg ::= SEQUENCE { servedUserNr EndpointAddress, basicService BasicService, msgCentreId MsgCentreId OPTIONAL, nbOfMessages NbOfMessages OPTIONAL, originatingNr EndpointAddress OPTIONAL, timestamp TimeStamp OPTIONAL, priority INTEGER(0..9) OPTIONAL, -- the value 0 means the highest priority and 9 the lowest extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } DummyRes ::= SEQUENCE SIZE (0..255) OF MixedExtension MWIDeactivateArg ::= SEQUENCE { servedUserNr EndpointAddress, basicService BasicService, msgCentreId MsgCentreId OPTIONAL, callbackReq BOOLEAN OPTIONAL, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } MWIInterrogateArg ::= SEQUENCE { servedUserNr EndpointAddress, basicService BasicService, msgCentreId MsgCentreId OPTIONAL, callbackReq BOOLEAN OPTIONAL, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } MWIInterrogateRes ::= SEQUENCE SIZE (1..64) OF MWIInterrogateResElt MWIInterrogateResElt ::= SEQUENCE { basicService BasicService, msgCentreId MsgCentreId OPTIONAL, nbOfMessages NbOfMessages OPTIONAL, originatingNr EndpointAddress OPTIONAL, timestamp TimeStamp OPTIONAL, priority INTEGER(0..9) OPTIONAL, -- the value 0 means the highest priority and 9 the lowest extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ... } MsgCentreId ::= CHOICE { -- only partyNumber provides a callable identification integer INTEGER(0..65535), partyNumber EndpointAddress, numericString NumericString(SIZE (1..10)) } NbOfMessages ::= INTEGER(0..65535) TimeStamp ::= GeneralizedTime(SIZE (12..19)) -- a VisibleString representation of date and time following ISO 8601 -- containing: -- - the (local) date in 8 digits (YYYYMMDD), -- - followed by (local) time of day in 4 or 6 digits [HHMM(SS)], -- - optionally followed by the letter "Z" or by a local time differential -- from UTC time in 5 digits ("+"HHMM or "-"HHMM); -- Examples: -- 1) 19970621194530, meaning 21 June 1997, 19:45:30; -- 2) 19970621194530Z, meaning the same as 1); -- 3) 19970621194530-0500, meaning the same as 1), -- 5 hours retarded in relation to UTC time undefined ERROR ::= { PARAMETER SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL TRUE CODE local:2002 } invalidMsgCentreId ERROR ::= { -- returned by a Message Centre endpoint when an unknown Message -- Centre Identifier is specified in a mwiInterrogate invoke CODE local:1018 } BasicService ::= ENUMERATED { -- MWI Services: -- for compatibility among vendors, speech is recommended for voice mail -- indications allServices(0), speech(1), unrestrictedDigitalInformation(2), audio3100Hz(3), telephony(32), teletex(33), telefaxGroup4Class1(34), videotexSyntaxBased(35), videotelephony(36), telefaxGroup2-3(37), reservedNotUsed1(38), reservedNotUsed2(39), reservedNotUsed3(40), reservedNotUsed4(41), reservedNotUsed5(42), -- -- MWI Service Classes: email(51), video(52), fileTransfer(53), shortMessageService(54), speechAndVideo(55), speechAndFax(56), speechAndEmail(57), videoAndFax(58), videoAndEmail(59), faxAndEmail(60), speechVideoAndFax(61), speechVideoAndEmail(62), speechFaxAndEmail(63), videoFaxAndEmail(64), speechVideoFaxAndEmail(65), multimediaUnknown(66), serviceUnknown(67), -- -- Reserved for future additions: futureReserve1(68), futureReserve2(69), futureReserve3(70), futureReserve4(71), futureReserve5(72), futureReserve6(73), futureReserve7(74), futureReserve8(75)} notActivated ERROR ::= {CODE local:31 } END -- of Message-Waiting-Indication-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h450/Name-Operations.asn
-- Name-Operations.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.8/2000/Name-Operations.asn -- -- Module Name-Operations (H.450.8:02/2000) Name-Operations {itu-t recommendation h 450 8 version1(0) name-operations(0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-definition {itu-t recommendation h 450 1 version1(0) msi-definition(18)} MixedExtension FROM Call-Hold-Operations {itu-t recommendation h 450 4 version1(0) call-hold-operations(0)}; NameOperations OPERATION ::= {callingName | alertingName | connectedName | busyName} callingName OPERATION ::= { ARGUMENT SEQUENCE {name Name, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ...} RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:0 } alertingName OPERATION ::= { ARGUMENT SEQUENCE {name Name, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ...} RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:1 } connectedName OPERATION ::= { ARGUMENT SEQUENCE {name Name, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ...} RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:2 } busyName OPERATION ::= { ARGUMENT SEQUENCE {name Name, extensionArg SEQUENCE SIZE (0..255) OF MixedExtension OPTIONAL, ...} RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local:3 } Name ::= CHOICE { namePresentationAllowed NamePresentationAllowed, namePresentationRestricted NamePresentationRestricted, nameNotAvailable NULL, ... } NamePresentationAllowed ::= CHOICE { simpleName SimpleName, extendedName ExtendedName, ... } NamePresentationRestricted ::= CHOICE { simpleName SimpleName, extendedName ExtendedName, restrictedNull NULL, -- only used in case of interworking where other network -- provides indication that the name is restricted without -- the name itself ... } SimpleName ::= OCTET STRING(SIZE (1..50)) ExtendedName ::= BMPString(SIZE (1..256)) -- Basic ISO/IEC 10646-1 (Unicode) END -- of Name-Operations -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
C
wireshark/epan/dissectors/asn1/h450/packet-h450-template.c
/* packet-h450.c * Routines for h450 packet dissection * Based on the previous h450 dissector by: * 2003 Graeme Reid ([email protected]) * Copyright 2005, Anders Broman <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * * Credit to Tomas Kukosa for developing the asn2wrs compiler. * */ #include "config.h" #include <epan/packet.h> #include <epan/expert.h> #include <epan/asn1.h> #include "packet-per.h" #include "packet-h225.h" #include "packet-h450-ros.h" #define PNAME "H.450 Supplementary Services" #define PSNAME "H.450" #define PFNAME "h450" void proto_register_h450(void); void proto_reg_handoff_h450(void); static dissector_handle_t h450_arg_handle; static dissector_handle_t h450_res_handle; static dissector_handle_t h450_err_handle; /* Initialize the protocol and registered fields */ static int proto_h450 = -1; static int hf_h450_operation = -1; static int hf_h450_error = -1; #include "packet-h450-hf.c" /* Initialize the subtree pointers */ #include "packet-h450-ett.c" static expert_field ei_h450_unsupported_arg_type = EI_INIT; static expert_field ei_h450_unsupported_result_type = EI_INIT; static expert_field ei_h450_unsupported_error_type = EI_INIT; static const value_string h450_str_operation[] = { #include "packet-h450-table10.c" { 0, NULL} }; static const value_string h450_str_error[] = { #include "packet-h450-table20.c" { 0, NULL} }; /* ROSE context */ static rose_ctx_t h450_rose_ctx; /* Global variables */ #include "packet-h450-fn.c" typedef struct _h450_op_t { gint32 opcode; dissector_t arg_pdu; dissector_t res_pdu; } h450_op_t; static const h450_op_t h450_op_tab[] = { #include "packet-h450-table11.c" }; typedef struct _h450_err_t { gint32 errcode; dissector_t err_pdu; } h450_err_t; static const h450_err_t h450_err_tab[] = { #include "packet-h450-table21.c" }; static const h450_op_t *get_op(gint32 opcode) { int i; /* search from the end to get the last occurrence if the operation is redefined in some newer specification */ for (i = array_length(h450_op_tab) - 1; i >= 0; i--) if (h450_op_tab[i].opcode == opcode) return &h450_op_tab[i]; return NULL; } static const h450_err_t *get_err(gint32 errcode) { int i; /* search from the end to get the last occurrence if the operation is redefined in some newer specification */ for (i = array_length(h450_err_tab) - 1; i >= 0; i--) if (h450_err_tab[i].errcode == errcode) return &h450_err_tab[i]; return NULL; } /*--- dissect_h450_arg ------------------------------------------------------*/ static int dissect_h450_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_item *hidden_item; int offset = 0; rose_ctx_t *rctx; gint32 opcode; const h450_op_t *op_ptr; const gchar *p; /* Reject the packet if data is NULL */ if (data == NULL) return 0; rctx = get_rose_ctx(data); DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 1) /* invoke */ return offset; if (rctx->d.code != 0) /* local */ return offset; opcode = rctx->d.code_local; op_ptr = get_op(opcode); if (!op_ptr) return offset; hidden_item = proto_tree_add_uint(tree, hf_h450_operation, tvb, 0, 0, opcode); proto_item_set_hidden(hidden_item); p = try_val_to_str(opcode, VALS(h450_str_operation)); if (p) { proto_item_append_text(rctx->d.code_item, " - %s", p); if (rctx->apdu_depth >= 0) proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), rctx->apdu_depth), " %s", p); } if (op_ptr->arg_pdu && (tvb_reported_length_remaining(tvb, offset) > 0)) offset = op_ptr->arg_pdu(tvb, pinfo, tree, NULL); else if (tvb_reported_length_remaining(tvb, offset) > 0) { proto_tree_add_expert(tree, pinfo, &ei_h450_unsupported_arg_type, tvb, offset, -1); offset += tvb_reported_length_remaining(tvb, offset); } return offset; } /*--- dissect_h450_res ------------------------------------------------------*/ static int dissect_h450_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_item *hidden_item; int offset = 0; rose_ctx_t *rctx; gint32 opcode; const h450_op_t *op_ptr; const gchar *p; /* Reject the packet if data is NULL */ if (data == NULL) return 0; rctx = get_rose_ctx(data); DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 2) /* returnResult */ return offset; if (rctx->d.code != 0) /* local */ return offset; opcode = rctx->d.code_local; op_ptr = get_op(opcode); if (!op_ptr) return offset; hidden_item = proto_tree_add_uint(tree, hf_h450_operation, tvb, 0, 0, opcode); proto_item_set_hidden(hidden_item); p = try_val_to_str(opcode, VALS(h450_str_operation)); if (p) { proto_item_append_text(rctx->d.code_item, " - %s", p); if (rctx->apdu_depth >= 0) proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), rctx->apdu_depth), " %s", p); } if (op_ptr->res_pdu && (tvb_reported_length_remaining(tvb, offset) > 0)) offset = op_ptr->res_pdu(tvb, pinfo, tree, NULL); else if (tvb_reported_length_remaining(tvb, offset) > 0) { proto_tree_add_expert(tree, pinfo, &ei_h450_unsupported_result_type, tvb, offset, -1); offset += tvb_reported_length_remaining(tvb, offset); } return offset; } /*--- dissect_h450_err ------------------------------------------------------*/ static int dissect_h450_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_item *hidden_item; int offset = 0; rose_ctx_t *rctx; gint32 errcode; const h450_err_t *err_ptr; const gchar *p; /* Reject the packet if data is NULL */ if (data == NULL) return 0; rctx = get_rose_ctx(data); DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 3) /* returnError */ return offset; if (rctx->d.code != 0) /* local */ return offset; errcode = rctx->d.code_local; err_ptr = get_err(errcode); if (!err_ptr) return offset; hidden_item = proto_tree_add_uint(tree, hf_h450_error, tvb, 0, 0, errcode); proto_item_set_hidden(hidden_item); p = try_val_to_str(errcode, VALS(h450_str_error)); if (p) { proto_item_append_text(rctx->d.code_item, " - %s", p); if (rctx->apdu_depth >= 0) proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), rctx->apdu_depth), " %s", p); } if (err_ptr->err_pdu && (tvb_reported_length_remaining(tvb, offset) > 0)) offset = err_ptr->err_pdu(tvb, pinfo, tree, NULL); else if (tvb_reported_length_remaining(tvb, offset) > 0) { proto_tree_add_expert(tree, pinfo, &ei_h450_unsupported_error_type, tvb, offset, -1); offset += tvb_reported_length_remaining(tvb, offset); } return offset; } /*--- proto_register_h450 -------------------------------------------*/ void proto_register_h450(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_h450_operation, { "Operation", "h450.operation", FT_UINT8, BASE_DEC, VALS(h450_str_operation), 0x0, NULL, HFILL }}, { &hf_h450_error, { "Error", "h450.error", FT_UINT16, BASE_DEC, VALS(h450_str_error), 0x0, NULL, HFILL }}, #include "packet-h450-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-h450-ettarr.c" }; static ei_register_info ei[] = { { &ei_h450_unsupported_arg_type, { "h450.unsupported.arg_type", PI_UNDECODED, PI_WARN, "UNSUPPORTED ARGUMENT TYPE (H.450)", EXPFILL }}, { &ei_h450_unsupported_result_type, { "h450.unsupported.result_type", PI_UNDECODED, PI_WARN, "UNSUPPORTED RESULT TYPE (H.450)", EXPFILL }}, { &ei_h450_unsupported_error_type, { "h450.unsupported.error_type", PI_UNDECODED, PI_WARN, "UNSUPPORTED ERROR TYPE (H.450)", EXPFILL }}, }; expert_module_t* expert_h450; /* Register protocol */ proto_h450 = proto_register_protocol(PNAME, PSNAME, PFNAME); register_dissector("h4501", dissect_h450_H4501SupplementaryService_PDU, proto_h450); /* Register fields and subtrees */ proto_register_field_array(proto_h450, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_h450 = expert_register_protocol(proto_h450); expert_register_field_array(expert_h450, ei, array_length(ei)); rose_ctx_init(&h450_rose_ctx); /* Register dissectors */ h450_arg_handle = register_dissector("h4501_arg", dissect_h450_arg, proto_h450); h450_res_handle = register_dissector("h4501_res", dissect_h450_res, proto_h450); h450_err_handle = register_dissector("h4501_err", dissect_h450_err, proto_h450); /* Register dissector tables */ h450_rose_ctx.arg_global_dissector_table = register_dissector_table("h450.ros.global.arg", "H.450 Operation Argument (global opcode)", proto_h450, FT_STRING, STRING_CASE_SENSITIVE); h450_rose_ctx.res_global_dissector_table = register_dissector_table("h450.ros.global.res", "H.450 Operation Result (global opcode)", proto_h450, FT_STRING, STRING_CASE_SENSITIVE); h450_rose_ctx.arg_local_dissector_table = register_dissector_table("h450.ros.local.arg", "H.450 Operation Argument (local opcode)", proto_h450, FT_UINT32, BASE_HEX); h450_rose_ctx.res_local_dissector_table = register_dissector_table("h450.ros.local.res", "H.450 Operation Result (local opcode)", proto_h450, FT_UINT32, BASE_HEX); h450_rose_ctx.err_global_dissector_table = register_dissector_table("h450.ros.global.err", "H.450 Error (global opcode)", proto_h450, FT_STRING, STRING_CASE_SENSITIVE); h450_rose_ctx.err_local_dissector_table = register_dissector_table("h450.ros.local.err", "H.450 Error (local opcode)", proto_h450, FT_UINT32, BASE_HEX); } /*--- proto_reg_handoff_h450 ---------------------------------------*/ void proto_reg_handoff_h450(void) { int i; for (i=0; i<(int)array_length(h450_op_tab); i++) { dissector_add_uint("h450.ros.local.arg", h450_op_tab[i].opcode, h450_arg_handle); dissector_add_uint("h450.ros.local.res", h450_op_tab[i].opcode, h450_res_handle); } for (i=0; i<(int)array_length(h450_err_tab); i++) { dissector_add_uint("h450.ros.local.err", h450_err_tab[i].errcode, h450_err_handle); } }
Text
wireshark/epan/dissectors/asn1/h450-ros/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h450-ros ) set( PROTO_OPT -p h450.ros ) set( EXPORT_FILES ${PROTOCOL_NAME}-exp.cnf ) set( EXT_ASN_FILE_LIST ../ros/Remote-Operations-Information-Objects.asn ) set( ASN_FILE_LIST Remote-Operations-Apdus.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) set( EXTRA_CNF ../ros/ros-inv.cnf ../ros/ros-res.cnf ../ros/ros-err.cnf ../ros/ros-rej.cnf ) ASN2WRS()
Configuration
wireshark/epan/dissectors/asn1/h450-ros/h450-ros.cnf
#.EXPORTS ROS #.OMIT_ASSIGNMENT Priority RejectProblem #.TYPE_RENAME Invoke/argument InvokeArgument ReturnResult/result/result ResultArgument #.FIELD_RENAME Invoke/invokeId invokeIdConstrained Reject/problem/invoke invokeProblem Reject/problem/returnError returnErrorProblem Reject/problem/returnResult returnResultProblem ReturnResult/result/result resultArgument #--- ROS --- #.FN_HDR ROS DISSECTOR_ASSERT(actx->rose_ctx); rose_ctx_clean_data(actx->rose_ctx); #.END #--- Code --- #.FN_PARS Code VAL_PTR = &%(ACTX)s->rose_ctx->d.code Code/local VAL_PTR = &%(ACTX)s->rose_ctx->d.code_local Code/global FN_VARIANT = _str VAL_PTR = &%(ACTX)s->rose_ctx->d.code_global #.FN_FTR Code actx->rose_ctx->d.code_item = actx->created_item; #.END #--- Problem --- #.FN_PARS GeneralProblem VAL_PTR = &problem_val InvokeProblem VAL_PTR = &problem_val ReturnResultProblem VAL_PTR = &problem_val ReturnErrorProblem VAL_PTR = &problem_val #.FN_FTR GeneralProblem (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(h450_ros_GeneralProblem_vals), ""), 64); problem_str[64-1] = '\0'; #.FN_FTR InvokeProblem (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(h450_ros_InvokeProblem_vals), ""), 64); problem_str[64-1] = '\0'; #.FN_FTR ReturnResultProblem (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(h450_ros_ReturnResultProblem_vals), ""), 64); problem_str[64-1] = '\0'; #.FN_FTR ReturnErrorProblem (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(h450_ros_ReturnErrorProblem_vals), ""), 64); problem_str[64-1] = '\0'; #.END #--- INVOKE --- # body is implemented manually as asn2wrs is not able to handle subtype constraint event passed through parameter #.FN_BODY Invoke/invokeId offset = dissect_per_constrained_integer(%(TVB)s, %(OFFSET)s, %(ACTX)s, %(TREE)s, %(HF_INDEX)s, 0U, 65535U, %(VAL_PTR)s, TRUE); #.END #.FIELD_ATTR Invoke/argument TYPE = FT_BYTES DISPLAY = BASE_NONE #.FN_PARS Invoke/argument FN_VARIANT = _pdu_new TYPE_REF_FN = argument_cb #.END #.INCLUDE ../ros/ros-inv.cnf #--- RETURN RESULT --- #.FIELD_ATTR ReturnResult/result/result TYPE = FT_BYTES DISPLAY = BASE_NONE #.FN_PARS ReturnResult/result/result FN_VARIANT = _pdu_new TYPE_REF_FN = result_cb #.END #.INCLUDE ../ros/ros-res.cnf #--- RETURN ERROR --- #.FIELD_ATTR ReturnError/parameter TYPE = FT_BYTES DISPLAY = BASE_NONE #.FN_PARS ReturnError/parameter FN_VARIANT = _pdu_new TYPE_REF_FN = error_cb #.END #.INCLUDE ../ros/ros-err.cnf #--- REJECT --- #.INCLUDE ../ros/ros-rej.cnf
C
wireshark/epan/dissectors/asn1/h450-ros/packet-h450-ros-template.c
/* packet-h450-ros.c * Routines for H.450 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/strutil.h> #include <epan/asn1.h> #include <epan/expert.h> #include "packet-per.h" #include "packet-h450-ros.h" #define PNAME "H.450 Remote Operations Apdus" #define PSNAME "H450.ROS" #define PFNAME "h450.ros" void proto_register_h450_ros(void); void proto_reg_handoff_h450_ros(void); /* Initialize the protocol and registered fields */ static int proto_h450_ros = -1; #include "packet-h450-ros-hf.c" /* Initialize the subtree pointers */ #include "packet-h450-ros-ett.c" static expert_field ei_ros_undecoded = EI_INIT; /* Preferences */ /* Subdissectors */ static dissector_handle_t data_handle = NULL; /* Global variables */ static gint32 problem_val; static gchar problem_str[64]; static tvbuff_t *arg_next_tvb, *res_next_tvb, *err_next_tvb; static int argument_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_) { arg_next_tvb = tvb; return tvb_captured_length(tvb); } static int result_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_) { res_next_tvb = tvb; return tvb_captured_length(tvb); } static int error_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_, void* data _U_) { err_next_tvb = tvb; return tvb_captured_length(tvb); } #include "packet-h450-ros-fn.c" /*--- proto_register_h450_ros -----------------------------------------------*/ void proto_register_h450_ros(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-h450-ros-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-h450-ros-ettarr.c" }; static ei_register_info ei[] = { { &ei_ros_undecoded, { "h450.ros.undecoded", PI_UNDECODED, PI_WARN, "Undecoded", EXPFILL }}, }; expert_module_t* expert_h450_ros; /* Register protocol and dissector */ proto_h450_ros = proto_register_protocol(PNAME, PSNAME, PFNAME); proto_set_cant_toggle(proto_h450_ros); /* Register fields and subtrees */ proto_register_field_array(proto_h450_ros, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_h450_ros = expert_register_protocol(proto_h450_ros); expert_register_field_array(expert_h450_ros, ei, array_length(ei)); } /*--- proto_reg_handoff_h450_ros --------------------------------------------*/ void proto_reg_handoff_h450_ros(void) { data_handle = find_dissector("data"); } /*---------------------------------------------------------------------------*/
C/C++
wireshark/epan/dissectors/asn1/h450-ros/packet-h450-ros-template.h
/* packet-h450-ros.h * Routines for H.450 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_H450_ROS_H #define PACKET_H450_ROS_H #include "packet-h450-ros-exp.h" #endif /* PACKET_H450_ROS_H */
ASN.1
wireshark/epan/dissectors/asn1/h450-ros/Remote-Operations-Apdus.asn
-- Remote-Operations-Apdus.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h450.1/1998/Remote-Operations-Apdus.asn -- -- Module Remote-Operations-Apdus (H.450.1:02/1998) Remote-Operations-Apdus {itu-t recommendation h 450 1 version1(0) remote-operations-apdus(11)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- exports everything IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)}; ROS{InvokeId:InvokeIdSet, OPERATION:Invokable, OPERATION:Returnable} ::= CHOICE { invoke [1] Invoke{{InvokeIdSet}, {Invokable}}, returnResult [2] ReturnResult{{Returnable}}, returnError [3] ReturnError{{Errors {{Returnable}}}}, reject [4] Reject } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-unrecognizedPDU) Invoke{InvokeId:InvokeIdSet, OPERATION:Operations} ::= SEQUENCE { invokeId InvokeId(InvokeIdSet) (CONSTRAINED BY {-- must be unambiguous -- } ! RejectProblem:invoke-duplicateInvocation), linkedId InvokeId (CONSTRAINED BY {-- must identify an outstanding operation -- } ! RejectProblem:invoke-unrecognizedLinkedId) (CONSTRAINED BY {-- which has one or more linked operations-- } ! RejectProblem:invoke-linkedResponseUnexpected) OPTIONAL, opcode OPERATION.&operationCode ({Operations} !RejectProblem:invoke-unrecognizedOperation), argument OPERATION.&ArgumentType ({Operations}{@opcode} !RejectProblem:invoke-mistypedArgument) OPTIONAL } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-mistypedPDU) --( -- WITH COMPONENTS -- { -- ..., -- linkedId ABSENT -- } -- WITH COMPONENTS { -- ..., -- linkedId PRESENT, -- opcode (CONSTRAINED BY { -- must be in the &Linked field of the associated operation -- } ! RejectProblem : invoke-unexpectedLinkedOperation) -- } --) ReturnResult{OPERATION:Operations} ::= SEQUENCE { invokeId InvokeId (CONSTRAINED BY {-- must be that for an outstanding operation -- } ! RejectProblem:returnResult-unrecognizedInvocation) (CONSTRAINED BY {-- which returns a result -- } ! RejectProblem:returnResult-resultResponseUnexpected), result SEQUENCE {opcode OPERATION.&operationCode({Operations}) (CONSTRAINED BY {-- identified by invokeId -- } ! RejectProblem:returnResult-unrecognizedInvocation), result OPERATION.&ResultType ({Operations}{@.opcode} ! RejectProblem:returnResult-mistypedResult)} OPTIONAL } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-mistypedPDU) ReturnError{ERROR:Errors} ::= SEQUENCE { invokeId InvokeId (CONSTRAINED BY {-- must be that for an outstanding operation -- } ! RejectProblem:returnError-unrecognizedInvocation) (CONSTRAINED BY {-- which returns an error -- } ! RejectProblem:returnError-errorResponseUnexpected), errcode ERROR.&errorCode({Errors} !RejectProblem:returnError-unrecognizedError) (CONSTRAINED BY {--must be in the &Errors field of the associated operation -- } !RejectProblem:returnError-unexpectedError), parameter ERROR.&ParameterType ({Errors}{@errcode} !RejectProblem:returnError-mistypedParameter) OPTIONAL } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-mistypedPDU) Reject ::= SEQUENCE { invokeId InvokeId, problem CHOICE {general GeneralProblem, invoke InvokeProblem, returnResult ReturnResultProblem, returnError ReturnErrorProblem} } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-mistypedPDU) GeneralProblem ::= INTEGER { unrecognizedComponent(0), mistypedComponent(1), badlyStructuredComponent(2) } InvokeProblem ::= INTEGER { duplicateInvocation(0), unrecognizedOperation(1), mistypedArgument(2), resourceLimitation(3), releaseInProgress(4), unrecognizedLinkedId(5), linkedResponseUnexpected(6), unexpectedLinkedOperation(7)} ReturnResultProblem ::= INTEGER { unrecognizedInvocation(0), resultResponseUnexpected(1), mistypedResult(2) } ReturnErrorProblem ::= INTEGER { unrecognizedInvocation(0), errorResponseUnexpected(1), unrecognizedError(2), unexpectedError(3), mistypedParameter(4)} RejectProblem ::= INTEGER { general-unrecognizedPDU(0), general-mistypedPDU(1), general-badlyStructuredPDU(2), invoke-duplicateInvocation(10), invoke-unrecognizedOperation(11), invoke-mistypedArgument(12), invoke-resourceLimitation(13), invoke-releaseInProgress(14), invoke-unrecognizedLinkedId(15), invoke-linkedResponseUnexpected(16), invoke-unexpectedLinkedOperation(17), returnResult-unrecognizedInvocation(20), returnResult-resultResponseUnexpected(21), returnResult-mistypedResult(22), returnError-unrecognizedInvocation(30), returnError-errorResponseUnexpected(31), returnError-unrecognizedError(32), returnError-unexpectedError(33), returnError-mistypedParameter(34)} InvokeId ::= INTEGER Errors{OPERATION:Operations} ERROR ::= {Operations.&Errors} END -- end of Remote-Operations-Apdus definitions -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h460/CALL-PARTY-CATEGORY.asn
-- CALL-PARTY-CATEGORY.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h460.10/2004/CALL-PARTY-CATEGORY.asn -- -- Module CALL-PARTY-CATEGORY (H.460.10:03/2004) CALL-PARTY-CATEGORY DEFINITIONS AUTOMATIC TAGS ::= BEGIN CallPartyCategoryInfo ::= SEQUENCE { callPartyCategory CallPartyCategory OPTIONAL, originatingLineInfo OriginatingLineInfo OPTIONAL, ... } CallPartyCategory ::= INTEGER(0..255) OriginatingLineInfo ::= INTEGER(0..255) END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h460/CALL-PRIORITY.asn
-- CALL-PRIORITY.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h460.4/2007/CALL-PRIORITY.asn -- -- Module CALL-PRIORITY (H.460.4:01/2007) CALL-PRIORITY {itu-t(0) recommendation(0) h(8) 460 4 version(1)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS ClearToken, CryptoToken FROM H235-SECURITY-MESSAGES; CallPriorityInfo ::= SEQUENCE -- root for Call Priority related asn.1 { priorityValue CHOICE {emergencyAuthorized NULL, emergencyPublic NULL, high NULL, normal NULL, ...}, priorityExtension INTEGER(0..255) OPTIONAL, tokens SEQUENCE OF ClearToken OPTIONAL, cryptoTokens SEQUENCE OF CryptoToken OPTIONAL, rejectReason CHOICE {priorityUnavailable NULL, priorityUnauthorized NULL, priorityValueUnknown NULL, ...} OPTIONAL, -- Only used in CallPriorityConfirm ... } CountryInternationalNetworkCallOriginationIdentification ::= SEQUENCE -- root for Country/International Network -- of Call Origination Identification related asn.1 { numberingPlan CHOICE {x121 SEQUENCE {countryCode IA5String(SIZE (3))(FROM ("0123456789")), ...}, e164 SEQUENCE {countryCode IA5String(SIZE (3))(FROM ("0123456789")), identificationCode IA5String(SIZE (1..4))(FROM ("0123456789")), ...}, ...}, ... } END -- of ASN.1 -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h460/CIRCUIT-STATUS-MAP.asn
-- CIRCUIT-STATUS-MAP.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h460.3/2002/CIRCUIT-STATUS-MAP.asn -- -- Module CIRCUIT-STATUS-MAP (H.460.3:11/2002) CIRCUIT-STATUS-MAP DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS CircuitIdentifier FROM H323-MESSAGES; CircuitStatus ::= SEQUENCE -- root for Circuit Status Map ASN.1 { circuitStatusMap SEQUENCE OF CircuitStatusMap OPTIONAL, ... } CircuitStatusMap ::= SEQUENCE { statusType CircuitStatusType, baseCircuitID CircuitIdentifier, range INTEGER(0..4095), status OCTET STRING, ... } CircuitStatusType ::= CHOICE { serviceStatus NULL, -- status: 0 = out-of-service, 1 = in-service busyStatus NULL, -- status: 0 = free, 1 = in-use ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
Text
wireshark/epan/dissectors/asn1/h460/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME h460 ) set( PROTO_OPT _EMPTY_ ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST NUMBER-PORTABILITY.asn CIRCUIT-STATUS-MAP.asn CALL-PRIORITY.asn QOS-MONITORING-REPORT.asn QOS-MONITORING-EXTENDED-VOIP-REPORT.asn CALL-PARTY-CATEGORY.asn MLPP.asn SIGNALLING-CHANNEL-SUSPEND-REDIRECT.asn SIGNALLING-TRAVERSAL.asn MEDIA-TRAVERSAL.asn MESSAGE-BROADCAST.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../h225/h225-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../h235/h235-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../h245/h245-exp.cnf" ) ASN2WRS()
Configuration
wireshark/epan/dissectors/asn1/h460/h460.cnf
# h460.cnf # H.460.x conformation file # 2007 Tomas Kukosa #.INCLUDE ../h225/h225-exp.cnf #.INCLUDE ../h235/h235-exp.cnf #.INCLUDE ../h245/h245-exp.cnf #.OPT PER ALIGNED GROUP_BY_PROT -o h460 #.END #.OMIT_ASSIGNMENT MessageBroadcastGroups GroupAttributes #.END #.MODULE NUMBER-PORTABILITY h460.2 CIRCUIT-STATUS-MAP h460.3 CALL-PRIORITY h460.4 QOS-MONITORING-REPORT h460.9 QOS-MONITORING-EXTENDED-VOIP-REPORT h460.9 CALL-PARTY-CATEGORY h460.10 MLPP h460.14 SIGNALLING-CHANNEL-SUSPEND-REDIRECT h460.15 SIGNALLING-TRAVERSAL h460.18 MEDIA-TRAVERSAL h460.19 MESSAGE-BROADCAST h460.21 #.END #.PDU # H.460.2 NumberPortabilityInfo # H.460.3 CircuitStatus # H.460.4 CallPriorityInfo CountryInternationalNetworkCallOriginationIdentification # H.460.9 QosMonitoringReportData ExtendedRTPMetrics # H.460.10 CallPartyCategoryInfo # H.460.14 MLPPInfo # H.460.15 SignallingChannelData # H.460.18 IncomingCallIndication LRQKeepAliveData # H.460.19 TraversalParameters # H.460.21 CapabilityAdvertisement #.END #.TF_RENAME CountryInternationalNetworkCallOriginationIdentification/numberingPlan/x121/countryCode x121CountryCode CountryInternationalNetworkCallOriginationIdentification/numberingPlan/e164/countryCode e164CountryCode #.END
ASN.1
wireshark/epan/dissectors/asn1/h460/MEDIA-TRAVERSAL.asn
-- MEDIA-TRAVERSAL.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h460.19/2005/MEDIA-TRAVERSAL.asn -- -- Module MEDIA-TRAVERSAL (H.460.19:09/2005) MEDIA-TRAVERSAL {itu-t(0) recommendation(0) h(8) 460 19 version(0) 1} DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS TimeToLive FROM H323-MESSAGES TransportAddress FROM MULTIMEDIA-SYSTEM-CONTROL; TraversalParameters ::= SEQUENCE { multiplexedMediaChannel TransportAddress OPTIONAL, multiplexedMediaControlChannel TransportAddress OPTIONAL, multiplexID INTEGER(0..4294967295) OPTIONAL, keepAliveChannel TransportAddress OPTIONAL, keepAlivePayloadType INTEGER(0..127) OPTIONAL, keepAliveInterval TimeToLive OPTIONAL, ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h460/MESSAGE-BROADCAST.asn
-- MESSAGE-BROADCAST.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h460.21/2006/MESSAGE-BROADCAST.asn -- -- Module MESSAGE-BROADCAST (H.460.21:05/2006) MESSAGE-BROADCAST DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS MulticastAddress, UnicastAddress, Capability FROM MULTIMEDIA-SYSTEM-CONTROL; CapabilityAdvertisement ::= SEQUENCE { receiveCapabilities ReceiveCapabilities OPTIONAL, transmitCapabilities SEQUENCE SIZE (1..256) OF TransmitCapabilities OPTIONAL, ... } ReceiveCapabilities ::= SEQUENCE { capabilities SEQUENCE SIZE (1..256) OF Capability, maxGroups INTEGER(1..65535), ... } GloballyUniqueID ::= OCTET STRING(SIZE (16)) TransmitCapabilities ::= SEQUENCE { groupIdentifer GloballyUniqueID, capability Capability, sourceAddress UnicastAddress, ... } MessageBroadcastGroups ::= SEQUENCE SIZE (1..256) OF GroupAttributes GroupAttributes ::= SEQUENCE { priority INTEGER(0..255), -- 0 = high, 255 = low groupIdentifer GloballyUniqueID OPTIONAL, capability Capability, groupAddress MulticastAddress, sourceAddress UnicastAddress OPTIONAL, alertUser BOOLEAN, ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/h460/MLPP.asn
-- MLPP.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h460.14/2004/MLPP.asn -- -- Module MLPP (H.460.14:03/2004) MLPP DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS CallIdentifier, AliasAddress FROM H323-MESSAGES; -- defined in H.225.0, Annex H MLPPInfo ::= SEQUENCE -- root for MLPP data ASN.1 { precedence MlppPrecedence OPTIONAL, mlppReason MlppReason OPTIONAL, mlppNotification MlppNotification OPTIONAL, alternateParty AlternateParty OPTIONAL, releaseCall ReleaseCall OPTIONAL, ... } MlppPrecedence ::= ENUMERATED { flashOveride(0), flash(1), immediate(2), priority(3), routine(4), ... } MlppReason ::= ENUMERATED -- Indicates reasons that call is refused or released. {preemptionNoReservation(8), preemptionReservation(9), callBlocked(46), ... } MlppNotification ::= CHOICE -- Provides various notification events in Call Signalling messages { preemptionPending NULL, preemptionInProgress NULL, preemptionEnd NULL, preemptionComplete NULL, ... } AlternateParty ::= SEQUENCE { altID AliasAddress, altTimer INTEGER(0..255) OPTIONAL, --seconds ... } ReleaseCall ::= SEQUENCE -- Identifies other call to be preempted first { preemptCallID CallIdentifier, releaseReason MlppReason, releaseDelay INTEGER(0..255) OPTIONAL, --seconds to wait ... } END -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D