On Wed, 3 Nov 2004, Zemer Margolin wrote:

> Hi all,
>
> Has anyone here had to decode RRC message nested in the RRC-Container at
> the RANAP protocol ? I have tried to use “CONTAINING” but since RANAP is
> PER and RRC is UPER it is not such a good solution.

Support for this depends on the tool that you are using.  For example,
with the OSS ASN.1 Tools you would change:

   RRC-Container ::= OCTET STRING (CONTAINING UL-CCCH-Message)

to:

   RRC-Container ::= OCTET STRING (CONTAINING UL-CCCH-Message
            ENCODED BY {joint-iso-itu-t(2) asn1(1) packed-encoding(3)
                basic(0) unaligned(1)} )

and when compiling you would specify -per -uper on the ASN.1 compiler
command line.  The change to the subtype constraint combined with
-per -uper instructs the decoder to automatically switch to PER Unaligned
when decoding the contents of RRC-Container.  The result is that in a
single call to the decoder your entire message will be decoded, even
though the main message is encoded using PER Aligned and a nested
component is encoded using PER Unaligned.

If you have questions specific to the use of the OSS ASN.1 Tools please
send them to [EMAIL PROTECTED], not to [EMAIL PROTECTED] or [EMAIL PROTECTED]

-------------------------------------------------------------------------
Bancroft Scott                               Toll Free    :1-888-OSS-ASN1
OSS Nokalva                                  International:1-732-302-0750
[EMAIL PROTECTED]                                 Tech Support :1-732-302-9669 x-1
1-732-302-9669 x-200                         Fax          :1-732-302-0023
http://www.oss.com
_______________________________________________
ASN1 mailing list
[EMAIL PROTECTED]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to