asn1rt decode of 3GPP RANAP-PDU

Mark Wallis markjwallis@REDACTED
Thu Oct 15 07:39:14 CEST 2009


Dear Forum

I have compiled the ASN.1 for 3GPP RANAP using the following options

%% Generated by the Erlang ASN.1 BER-compiler version, utilizing
bit-syntax:1.6.10
%% Purpose: encoder and decoder to the types in mod RANAP

-module('RANAP').
-include("RANAP.hrl").
-define('RT_PER',asn1rt_per_bin).
-asn1_info([{vsn,'1.6.10'},
            {module,'RANAP'},
            {options,[per_bin,undec_rest,{i,[46]}]}]).


When I pass a RANAP-PDU through the deocder it decodes successfully but only
prints 'ProtocolIE-Field',x and not the Protocol IE name (see below). Is
this expected behaviour as I can see all the ids being declared in the
<module name>.erl file?

Regards

Mark.

'RANAP':decode('RANAP-PDU',
list_to_binary([0,19,64,74,0,0,6,0,3,64,1,0,0,15,64,6,0,50,244,149,0,4,0,58
,64,8,0,50,244,149,0,4,0,4,0,16,64,24,23,5,8,0,50,244,149,0,133,79,8,57,1,87,0,0,0,4,40,51,3,79,24,160
,0,79,64,3,48,0,15,0,86,64,5,50,244,149,0,1])).
{ok,{initiatingMessage,
        {'InitiatingMessage',19,ignore,
            {'InitialUE-Message',
                [{'ProtocolIE-Field',3,ignore,'cs-domain'},
                 {'ProtocolIE-Field',15,ignore,
                     {'LAI',[50,244,149],[0,4],asn1_NOVALUE}},
                 {'ProtocolIE-Field',58,ignore,
                     {'SAI',[50,244,149],[0,4],[0,4],asn1_NOVALUE}},
                 {'ProtocolIE-Field',16,ignore,
                     [5,8,0,50,244,149,0,133,79,8,57|...]},
                 {'ProtocolIE-Field',79,ignore,[0,0,1,1,0,0,0,0,0,0|...]},
                 {'ProtocolIE-Field',86,ignore,
                     {'GlobalRNC-ID',[50,244,149],1}}],
                asn1_NOVALUE}}},
    <<>>}


More information about the erlang-questions mailing list