LTE S1AP C# Sample Code Using OSS ASN.1 Tools


This sample is provided as part of the OSS ASN.1 Tools trial and commercial shipments. The source code and related files are listed below for reference.

The sample demonstrates how to use the OSS ASN.1 Tools to process messages for the 3GPP LTE S1AP standard (TS 36.413 version 19.0.0).

It runs on Windows as an example and illustrates how to decode, inspect, and create LTE S1AP messages using the OSS ASN.1 Tools API.

The sample reads S1AP messages from .per files, decodes and prints them, and creates and encodes an S1AP message.

A Windows batch script (run.bat) is included for running the test program.

To explore more samples (LTE RRC, 5G RRC, S1AP, X2AP, NGAP), visit the main Sample Code page.

Overview

This sample shows how to:

  • Initialize the OSS ASN.1/C# runtime for the LTE S1AP schema.
  • Read a PER-encoded S1AP message from an input file.
  • Decode and print LTE S1AP messages.
  • Create and encode a response message.
  • Run the sample test program using the provided run.bat script.

Files in This Sample

The files listed below are included in the OSS ASN.1 Tools trial and commercial shipments and are used by this sample program:

File Description
README.TXT Instructions and sample overview.
s1ap.asn ASN.1 source file that describes the 3GPP LTE S1AP protocol (TS 36.413), used with this program example.
S1AP-PDU_HandoverRequest_bin.per Valid PER-encoded S1AP message (HandoverRequest). It should pass testing.
app.cs Simple C# program that shows how to work with LTE S1AP protocol data. It reads input messages from files, decodes and prints them, and creates and encodes successful outcome messages.
gui/ ASN.1 Studio project for viewing/compiling schema and generating sample data.
run.bat Windows batch script that runs the sample test.

Build and Run Instructions

(Installation instructions for the OSS ASN.1 Tools are included in all trial and commercial shipments.)

To build and run this sample, install a trial or licensed version of the OSS ASN.1 Tools for C#.

1. Verify environment variables (if not using the OSS command prompt)

If you use the OSS command prompt window, you do not need to set environment variables to run this sample. Otherwise, ensure the following are defined:

  • OSS_CSHARP_HOME
  • PATH (must include the OSS bin directory)

If using Visual Studio, run the Microsoft vsvars32.bat script to set up the .NET command-line environment. If Visual Studio is not installed, ensure your PATH includes the required .NET directories. For details, see ossvars.bat installed with the product.

2. Run the sample
run
3. Clean up generated files
run clean
4. Other Platforms

Note: The C# source code in this sample is platform-independent. Windows commands are shown as an example, but equivalent samples and run instructions may be available for other platforms. For help with platform-specific instructions, please contact OSS Support.

Code Listing: app.cs

The following listing shows the main C# source file for this sample test program, app.cs. It demonstrates how to read PER-encoded LTE RRC messages from files, decode and print them, and create and encode a response message using the OSS ASN.1 Tools API.

Show app.cs source code
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2025 OSS Nokalva, Inc. All rights reserved.                 //
//                                                                           //
// THIS FILE IS PROPRIETARY MATERIAL OF OSS NOKALVA, INC.                    //
// AND MAY BE USED ONLY BY DIRECT LICENSEES OF OSS NOKALVA, INC.             //
// THIS FILE MAY NOT BE DISTRIBUTED.                                         //
// THIS COPYRIGHT STATEMENT MAY NOT BE REMOVED.                              //
///////////////////////////////////////////////////////////////////////////////
// THIS SAMPLE PROGRAM IS PROVIDED AS IS. THE SAMPLE PROGRAM AND ANY RESULTS //
// OBTAINED FROM IT ARE PROVIDED WITHOUT ANY WARRANTIES OR REPRESENTATIONS,  //
// EXPRESS, IMPLIED OR STATUTORY.                                            //
///////////////////////////////////////////////////////////////////////////////

//
// Demonstrates part of the LTE S1AP protocol.
//


// Classes generated from ASN.1 specification.
using S1ap;
using S1ap.S1APPDUDescriptions;
using S1ap.S1APPDUContents;
using S1ap.S1APContainers;
using S1ap.S1APIEs;

// Classes from the OSS runtime library.
using Oss.Asn1;

// C# system classes.
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;


public class Program
{
    public static int Main(string[] args)
    {
        try
        {
            // A folder with encoded messages.
            string dataDir = (args.Length > 0) ? args[0] : "../../";
            Ts1ap ts1ap = new Ts1ap();
            ts1ap.Process(dataDir, "S1AP-PDU_HandoverRequest_bin.per");
            Console.WriteLine("Message processing has completed successfully.");
            return 0;
        }
        catch (Exception e)
        {
            // Print complete exception information.
            Console.WriteLine("ERROR: Error processing input files.");
            Console.WriteLine(e);
            return 1;
        }
    }
}

/// <summary>
/// Does all the processing of the files with encoded PDUs.
/// </summary>
public class Ts1ap
{
    PerAlignedCodec codec = new PerAlignedCodec();
    /// <summary>
    /// Processes a file with encoded S1AP PDU.
    /// </summary>
    public void Process(String dataDir, String fileName)
    {
        try
        {
            String fullPath = Path.Combine(dataDir, fileName);
            S1APPDU req = DecodeRequest(fullPath);
            Console.WriteLine("\nPrinting the PER-Decoded S1APPDU PDU...\n");
            ValueNotationFormatter.Print(req, Console.Out);
            S1APPDU res = CreateResponse(req);
            if (res != null) {
                Console.WriteLine("\nPrinting the created S1APPDU response PDU...\n");
                ValueNotationFormatter.Print(res, Console.Out);
                EncodeAndSend(res);
            }
            Console.WriteLine();
        }
        catch (Exception e)
        {
            throw new Exception("Unable to process file '" + fileName + "'.", e);
        }
    }

    /// <summary>
    /// Creates S1APPDU response PDUs.
    /// </summary>
    S1APPDU CreateResponse(S1APPDU request)
    {
        // Check that the message contains InitiatingMessage.
        if (request.Selected != S1APPDU.Id.InitiatingMessageChosen)
            throw new Exception("ERROR: Wrong message.  Expecting InitiatingMessage.");

        InitiatingMessage msg = request.InitiatingMessage;
        ProcedureCode code = ProcedureCodes.ContainsKey(msg.ProcedureCode) ? ProcedureCodes[msg.ProcedureCode] : ProcedureCode.Unknown;

        switch (code) {
            case ProcedureCode.HandoverRequired:
                {
                    HandoverRequired req = (HandoverRequired)msg.Value.Decoded;
                    AccessHandoverRequestIEs(req);
                    return CreateHandoverCommand(req);
                }
            case ProcedureCode.Unknown:
                Console.WriteLine("WARNING: Got unknown ProcedureCode: " + msg.ProcedureCode);
                return null;
            default:
                Console.WriteLine("WARNING: ProcedureCode " + code + " not implemented yet.");
                return null;
        }
    }

    /// <summary>
    /// Creates a HandoverCommand PDU.
    /// </summary>
    public S1APPDU CreateHandoverCommand(HandoverRequired req)
    {
        Console.WriteLine("\nCreating a HandoverCommand S1APPDU PDU message...");
        HandoverRequired.ProtocolIEsType request_IEs = req.ProtocolIEs;

        if (request_IEs == null || request_IEs.Count == 0)
        {
            Console.WriteLine("No IEs in the HandoverRequired message.");
            return null;
        }
        HandoverCommand.ProtocolIEsType response_IEs = new HandoverCommand.ProtocolIEsType();
        // Copy some IEs from the request
        foreach (HandoverRequired.ProtocolIEsType.Element ie in request_IEs)
        {
            if (ie.Id == S1ap.S1APConstants.Values.IdMMEUES1APID ||
                ie.Id == S1ap.S1APConstants.Values.IdENBUES1APID ||
                ie.Id == S1ap.S1APConstants.Values.IdHandoverType)
            {
                response_IEs.Add(new HandoverCommand.ProtocolIEsType.Element()
                {
                    Id = ie.Id,
                    Criticality = ie.Criticality,
                    Value = ie.Value
                });
            }
        }
        // Add E-RABList IE to outcome message
        ERABList erabList = new ERABList();
        ERABItem erabItem = new ERABItem()
        {
            Cause = new Cause() { RadioNetwork = CauseRadioNetwork.X2HandoverTriggered },
            ERABID = 13
        };
        ERABList.Element erabListElement = new ERABList.Element()
        {
            Id = S1ap.S1APConstants.Values.IdERABItem,
            Criticality = S1ap.S1APCommonDataTypes.Criticality.Ignore,
            Value = new OpenType(erabItem)
        };
        erabList.Add(erabListElement);
        response_IEs.Add(new HandoverCommand.ProtocolIEsType.Element()
        {
            Id = S1ap.S1APConstants.Values.IdERABtoReleaseListHOCmd,
            Criticality = S1ap.S1APCommonDataTypes.Criticality.Ignore,
            Value = new OpenType(new ERABListPdu() { Value = erabList })
        });
        // Add Target-ToSource-TransparentContainer IE to outcome message
        TargetToSourceTransparentContainer trValue = new TargetToSourceTransparentContainer()
        {
            Value = new byte[] { (byte)0x55 }
        };
        response_IEs.Add(new HandoverCommand.ProtocolIEsType.Element()
        {
            Id = S1ap.S1APConstants.Values.IdTargetToSourceTransparentContainer,
            Criticality = S1ap.S1APCommonDataTypes.Criticality.Reject,
            Value = new OpenType(trValue)
        });
        HandoverCommand handoverCommand = new HandoverCommand()
        {
            ProtocolIEs = response_IEs
        };
        SuccessfulOutcome successfulOutcome = new SuccessfulOutcome()
        {
            ProcedureCode = S1ap.S1APConstants.Values.IdHandoverPreparation,
            Criticality = S1ap.S1APCommonDataTypes.Criticality.Reject,
            Value = new OpenType(handoverCommand)
        };
        S1APPDU pdu = new S1APPDU();
        pdu.SuccessfulOutcome = successfulOutcome;
        Console.WriteLine("Created the S1APPDU response PDU successfully.\n");
        return pdu;
    }

    /// <summary>
    /// Decodes an S1APPDU request PDU from a file.
    /// </summary>
    S1APPDU DecodeRequest(String fileName)
    {
        using (Stream stream = File.OpenRead(fileName))
        {
            /// <summary>
            ///  Set the decoder to autodecode open type values.
            /// </summary>
            codec.DecoderOptions.AutoDecode = true;
            Console.WriteLine("\nDecoding the S1APPDU request PDU from the file " + fileName + "...");
            S1APPDU msg = new S1APPDU();
            codec.Decode(stream, msg);
            Console.WriteLine("PDU decoded successfully.");
            return msg;
        }
    }

    /// <summary>
    /// Enumerates possible procedure codes.
    /// </summary>
    public enum ProcedureCode {
        HandoverRequired,
        Unknown
    }

    static Dictionary<int, ProcedureCode> ProcedureCodes = new Dictionary<int, ProcedureCode>() {
        {S1ap.S1APConstants.Values.IdHandoverPreparation, ProcedureCode.HandoverRequired}
    };

    /// <summary>
    /// Demonstrates how components of the HandoverRequired can
    /// be accessed in the code.
    /// </summary>
    /// <param name="req">A HandoverRequired message.</param>
    public void AccessHandoverRequestIEs(HandoverRequired req)
    {
        Console.WriteLine("\nAccessing IEs of the HandoverRequired message...\n");
        int ordinal = 0;
        foreach (HandoverRequired.ProtocolIEsType.Element ie in req.ProtocolIEs) {
            ++ordinal;
            Console.WriteLine("IE #{0}:\nid {1}\ncriticality {2}", ordinal, ie.Id, ie.Criticality);
            if (ie.Id == S1ap.S1APConstants.Values.IdMMEUES1APID) {
                MMEUES1APID v = (MMEUES1APID)ie.Value.Decoded;
                Console.WriteLine("value MME-UE-S1AP-ID: {0}\n", v.Value);
            }
            else if (ie.Id == S1ap.S1APConstants.Values.IdENBUES1APID) {
                ENBUES1APID v = (ENBUES1APID)ie.Value.Decoded;
                Console.WriteLine("value ENB-UE-S1AP-ID: {0}\n", v.Value);
            }
            else if (ie.Id == S1ap.S1APConstants.Values.IdHandoverType) {
                HandoverType v = (HandoverType)ie.Value.Decoded;
                Console.WriteLine("value HandoverType: {0}\n", v.Value);
            }
            else if (ie.Id == S1ap.S1APConstants.Values.IdTargetID) {
                TargetID v = (TargetID)ie.Value.Decoded;
                CGI cgi = (CGI)v.CGI;
                Console.WriteLine("    pLMNidentity: {0}", BitConverter.ToString(cgi.PLMNidentity));
                Console.WriteLine("    lac         : {0}", BitConverter.ToString(cgi.LAC));
                Console.WriteLine("    cI          : {0}", BitConverter.ToString(cgi.CI));
                Console.WriteLine("    rAC         : {0}\n", BitConverter.ToString(cgi.RAC));
            }
            else if (ie.Id == S1ap.S1APConstants.Values.IdCause) {
                Cause v = (Cause)ie.Value.Decoded;
                Console.WriteLine("value Cause: {0}\n", v);
            }
            else if (ie.Id == S1ap.S1APConstants.Values.IdDirectForwardingPathAvailability) {
                DirectForwardingPathAvailability v = (DirectForwardingPathAvailability)ie.Value.Decoded;
                Console.WriteLine("value Direct-Forwarding-Path-Availability : {0}\n", v.Value);
            }
            else if (ie.Id == S1ap.S1APConstants.Values.IdSRVCCHOIndication) {
                SRVCCHOIndication v = (SRVCCHOIndication)ie.Value.Decoded;
                Console.WriteLine("value SRVCCHOIndication: {0}\n", v.Value);
            }
            else if (ie.Id == S1ap.S1APConstants.Values.IdSourceToTargetTransparentContainer) {
                SourceToTargetTransparentContainer v = (SourceToTargetTransparentContainer)ie.Value.Decoded;
                Console.WriteLine("value Source-ToTarget-TransparentContainer: {0}\n", v.Value);
            }
            else {
                if (ie.Value.Decoded != null)
                    Console.WriteLine(ie.Value.Decoded);
                else
                    Console.WriteLine("IE left undecoded: {0}\n", BitConverter.ToString(ie.Value.Encoded));
            }
        }
    }

    /// <summary>
    /// A utility method to print bits of a BIT STRING.
    /// </summary>
    /// <param name="bitString">A value of BIT STRING</param>
    /// <returns></returns>
    private string BitsToString(BitString bitString)
    {
        StringBuilder sb = new StringBuilder(bitString.Length);
        foreach (bool bit in bitString)
            sb.Append(bit ? "1" : "0");
        return sb.ToString();
    }

    /// <summary>
    /// Encodes and sends a message.
    /// </summary>
    void EncodeAndSend(S1APPDU message)
    {
        // Assert the validity of the response messages
        codec.EncoderOptions.Validate = true;
        try
        {
            using (MemoryStream stream = new MemoryStream()) {
                Console.WriteLine("Encoding the S1APPDU response PDU using memory stream...");
                codec.Encode(message, stream);
                Console.WriteLine("Encoded successfully.\n");
                Console.WriteLine("Printing the S1APPDU response PDU in " + stream.Length + " bytes...");
                Console.WriteLine(BitConverter.ToString(stream.ToArray()));
            }
            Console.WriteLine("\nEncoding the S1APPDU response PDU again using a class object...");
            byte[] encoded = codec.Encode(message);
            Console.WriteLine("Encoded successfully.\n");
            Console.WriteLine("Printing the S1APPDU response PDU in " + encoded.Length + " bytes...");
            ValueNotationFormatter.Print(encoded, encoded.Length, Console.Out);
        } catch (Exception e) {
            throw new Exception("ERROR: Failed to encode.", e);
        }
    }
}

Expected Output (Excerpt)

This is the expected output when running the sample:

Encoding response message...
Encoding successful.

ASN.1 Schema Excerpt (s1ap.asn)

Show excerpt from s1ap.asn
-- Excerpt from s1ap.asn 3GPP TS 36.413 V19.0.0 (2025-09) 

-- Elementary Procedure definitions
--
-- **************************************************************

S1AP-PDU-Descriptions  { 
itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) 
eps-Access (21) modules (3) s1ap (1) version1 (1) s1ap-PDU-Descriptions (0)}

DEFINITIONS AUTOMATIC TAGS ::= 

BEGIN

-- **************************************************************
--
-- IE parameter types from other modules.
--
-- **************************************************************

IMPORTS
	Criticality,
	ProcedureCode
FROM S1AP-CommonDataTypes

	CellTrafficTrace,
	DeactivateTrace,
	DownlinkUEAssociatedLPPaTransport,
	DownlinkNASTransport,
	DownlinkNonUEAssociatedLPPaTransport,
	DownlinkS1cdma2000tunnelling,
	ENBDirectInformationTransfer,
	ENBStatusTransfer,
	ENBConfigurationUpdate,
	ENBConfigurationUpdateAcknowledge,
	ENBConfigurationUpdateFailure,
	ErrorIndication,
	HandoverCancel,
	HandoverCancelAcknowledge,
	HandoverCommand,
	HandoverFailure,
	HandoverNotify,
	HandoverPreparationFailure,
	HandoverRequest,
	HandoverRequestAcknowledge,
	HandoverRequired,
	InitialContextSetupFailure,
	InitialContextSetupRequest,
	InitialContextSetupResponse,
	InitialUEMessage,
	KillRequest,
	KillResponse,
	LocationReportingControl,
	LocationReportingFailureIndication,
	LocationReport,
	MMEConfigurationUpdate,
	MMEConfigurationUpdateAcknowledge,
	MMEConfigurationUpdateFailure,
	MMEDirectInformationTransfer,
	MMEStatusTransfer,
	NASNonDeliveryIndication,
	OverloadStart,
	OverloadStop,
	Paging,
	PathSwitchRequest,
	PathSwitchRequestAcknowledge,
	PathSwitchRequestFailure,	
	PrivateMessage,
	Reset,
	ResetAcknowledge,
	S1SetupFailure,
	S1SetupRequest,
	S1SetupResponse,
	E-RABModifyRequest,
	E-RABModifyResponse,
	E-RABModificationIndication,
	E-RABModificationConfirm,
	E-RABReleaseCommand,
	E-RABReleaseResponse,
	E-RABReleaseIndication,
	E-RABSetupRequest,
	E-RABSetupResponse,
	TraceFailureIndication,
	TraceStart,
	UECapabilityInfoIndication,
	UEContextModificationFailure,
	UEContextModificationRequest,
	UEContextModificationResponse,
	UEContextReleaseCommand,
	UEContextReleaseComplete,
	UEContextReleaseRequest,
	UERadioCapabilityMatchRequest,
	UERadioCapabilityMatchResponse,
	UplinkUEAssociatedLPPaTransport,
	UplinkNASTransport,
	UplinkNonUEAssociatedLPPaTransport,
	UplinkS1cdma2000tunnelling,
	WriteReplaceWarningRequest,
	WriteReplaceWarningResponse,
	ENBConfigurationTransfer,
	MMEConfigurationTransfer,
	PWSRestartIndication,
	UEContextModificationIndication,
	UEContextModificationConfirm,
	RerouteNASRequest,
	PWSFailureIndication,
	UEContextSuspendRequest,
	UEContextSuspendResponse,
	UEContextResumeRequest,
	UEContextResumeResponse,
	UEContextResumeFailure,
	ConnectionEstablishmentIndication,
	NASDeliveryIndication,
	RetrieveUEInformation,
	UEInformationTransfer,
	ENBCPRelocationIndication,
	MMECPRelocationIndication,
	SecondaryRATDataUsageReport,
	UERadioCapabilityIDMappingRequest,
	UERadioCapabilityIDMappingResponse,
	HandoverSuccess,
	ENBEarlyStatusTransfer,
	MMEEarlyStatusTransfer,
	S1RemovalFailure,
	S1RemovalRequest,
	S1RemovalResponse



FROM S1AP-PDU-Contents
	
	id-CellTrafficTrace,
	id-DeactivateTrace,
	id-downlinkUEAssociatedLPPaTransport,
	id-downlinkNASTransport,
	id-downlinkNonUEAssociatedLPPaTransport,
	id-DownlinkS1cdma2000tunnelling,
	id-eNBStatusTransfer,
	id-ErrorIndication,
	id-HandoverCancel,
	id-HandoverNotification,
	id-HandoverPreparation,
	id-HandoverResourceAllocation,
	id-InitialContextSetup,
	id-initialUEMessage,
	id-ENBConfigurationUpdate,
	id-Kill,
	id-LocationReportingControl,
	id-LocationReportingFailureIndication,
	id-LocationReport,
	id-eNBDirectInformationTransfer,
	id-MMEConfigurationUpdate,
	id-MMEDirectInformationTransfer,
	id-MMEStatusTransfer,
	id-NASNonDeliveryIndication,
	id-OverloadStart,
	id-OverloadStop,
	id-Paging,
	id-PathSwitchRequest,
	id-PrivateMessage,
	id-Reset,
	id-S1Setup,
	id-E-RABModify,
	id-E-RABModificationIndication,
	id-E-RABRelease,
	id-E-RABReleaseIndication,
	id-E-RABSetup,
	id-TraceFailureIndication,
	id-TraceStart,
	id-UECapabilityInfoIndication,
	id-UEContextModification,
	id-UEContextRelease,
	id-UEContextReleaseRequest,
	id-UERadioCapabilityMatch,
	id-uplinkUEAssociatedLPPaTransport,
	id-uplinkNASTransport,
	id-uplinkNonUEAssociatedLPPaTransport,
	id-UplinkS1cdma2000tunnelling,
	id-WriteReplaceWarning,
	id-eNBConfigurationTransfer,
	id-MMEConfigurationTransfer,
	id-PWSRestartIndication,
	id-UEContextModificationIndication,
	id-RerouteNASRequest,
	id-PWSFailureIndication,
	id-UEContextSuspend,
	id-UEContextResume,
	id-ConnectionEstablishmentIndication,
	id-NASDeliveryIndication,
	id-RetrieveUEInformation,
	id-UEInformationTransfer,
	id-eNBCPRelocationIndication,
	id-MMECPRelocationIndication,
	id-SecondaryRATDataUsageReport,
	id-UERadioCapabilityIDMapping,
	id-HandoverSuccess,
	id-eNBEarlyStatusTransfer,
	id-MMEEarlyStatusTransfer,
	id-S1Removal



FROM S1AP-Constants;


-- **************************************************************
--
-- Interface Elementary Procedure Class
--
-- **************************************************************

S1AP-ELEMENTARY-PROCEDURE ::= CLASS {
	&InitiatingMessage				,
	&SuccessfulOutcome							OPTIONAL,
	&UnsuccessfulOutcome						OPTIONAL,
	&procedureCode				ProcedureCode 	UNIQUE,
	&criticality				Criticality 	DEFAULT ignore
}
WITH SYNTAX {
	INITIATING MESSAGE			&InitiatingMessage
	[SUCCESSFUL OUTCOME			&SuccessfulOutcome]
	[UNSUCCESSFUL OUTCOME		&UnsuccessfulOutcome]
	PROCEDURE CODE				&procedureCode
	[CRITICALITY				&criticality]
}

-- **************************************************************
--
-- Interface PDU Definition
--
-- **************************************************************

S1AP-PDU ::= CHOICE {
	initiatingMessage	InitiatingMessage,
	successfulOutcome	SuccessfulOutcome,
	unsuccessfulOutcome	UnsuccessfulOutcome,
	...
}

InitiatingMessage ::= SEQUENCE {
	procedureCode	S1AP-ELEMENTARY-PROCEDURE.&procedureCode		({S1AP-ELEMENTARY-PROCEDURES}),
	criticality		S1AP-ELEMENTARY-PROCEDURE.&criticality			({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode}),
	value			S1AP-ELEMENTARY-PROCEDURE.&InitiatingMessage	({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode})
}

SuccessfulOutcome ::= SEQUENCE {
	procedureCode	S1AP-ELEMENTARY-PROCEDURE.&procedureCode		({S1AP-ELEMENTARY-PROCEDURES}),
	criticality		S1AP-ELEMENTARY-PROCEDURE.&criticality			({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode}),
	value			S1AP-ELEMENTARY-PROCEDURE.&SuccessfulOutcome	({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode})
}

UnsuccessfulOutcome ::= SEQUENCE {
	procedureCode	S1AP-ELEMENTARY-PROCEDURE.&procedureCode		({S1AP-ELEMENTARY-PROCEDURES}),
	criticality		S1AP-ELEMENTARY-PROCEDURE.&criticality			({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode}),
	value			S1AP-ELEMENTARY-PROCEDURE.&UnsuccessfulOutcome	({S1AP-ELEMENTARY-PROCEDURES}{@procedureCode})
}

-- **************************************************************
--
-- Interface Elementary Procedure List
--
-- **************************************************************

S1AP-ELEMENTARY-PROCEDURES S1AP-ELEMENTARY-PROCEDURE ::= {
	S1AP-ELEMENTARY-PROCEDURES-CLASS-1			|
	S1AP-ELEMENTARY-PROCEDURES-CLASS-2,	
	...
}

Using ASN.1 Studio (Optional)

The gui/ subdirectory contains an ASN.1 Studio project for this sample. With ASN.1 Studio you can:

  • Open the LTE S1AP ASN.1 modules.
  • Generate code from the ASN.1 schema.
  • Create and edit sample encoded LTE S1AP messages.
  • Export each project to a Visual Studio project.

Related Samples

Disclaimer

This sample is provided solely for illustration purposes, for example to demonstrate usage of the OSS ASN.1 Tools API with 3GPP LTE S1AP messages. It does not represent a complete application. To build and run this sample, you must use a trial or licensed version of the appropriate OSS ASN.1 Tools. The copyright and license statements included in each source file remain fully applicable.

Need Help?

If you have questions about using this sample, contact OSS Nokalva Support.

See Also