FW: ASN.1 Parameterized Types... pls help

casper2000a <>
Sun Oct 3 04:52:14 CEST 2004


Hi Bertil and all,

In the week end, I could look more deep in to the ASN problem. I have attached the asn file I used to 
find the below results.

InfClass7.asn: given the below compiler error.
	asn1error:104:'InfClass7':'My-message' {internal_error,
	                                           {'cant check',
	                                               [{'Externalvaluereference',
	                                                    104,
	                                                    'InfClass7',
	                                                    operationA}]}}
	{error,{asn1,[{error,{type,104,
	                           'InfClass7',
	                           'My-message',
	                           {internal_error,
	                               {'cant check',
	                                   [{'Externalvaluereference',
	                                        104,
	                                        'InfClass7',
	                                        operationA}]}}}}]}}

But when I delete "({Operations})" of line 125, it compiles without a problem. So I guess it's a problem 
when doing a Reference to a Value in an external file or something. Or may be it's just a wrong 
ASN.1 syntax. If so, please advice me the correct way to write it.

InfClass5.asn: as it is, the file compiles without a problem. But when I remove the comment ("--") 
from line 50, it gives the same error above.

I hope above information will help you in solving any compiler error, if there's one. Or if it's just an 
syntax or symantic error in my writing, please advice.

Thanks!
Eranga


 
Quoting Bertil Karlsson : > Casper,

It seems to be an error in the asn1 compiler. I\'m tracking it and 
hopefully have a bug fix next week.

/Bertil

Casper wrote:
> Hi Bertil,
> 
> I wonder if you received my below email. Could you be able to give me
some
> guide lines?
> 
> Thanks!
> Eranga
> 
> 
> 
> -----Original Message-----
> From: Casper [mailto:] 
> Sent: Thursday, September 30, 2004 5:04 PM
> To: \'Bertil Karlsson\'
> Subject: RE: ASN.1 Parameterized Types... pls help
> 
> Hi Bertil,
> 
> Oh, I\'m glad to hear from you. I was whacking my brains to find the
> solution, but so far failed. I really appreciate if you can give me some
> clue.
> 
> I have attached a Zipped file of ASN.1 directory. What I need to do is
write
> the required ASN.1 specification to instantiate the parameterized
> TCAPMessages to do GSM/UMTS Map communication.
> 
> The new parts I added to TCAPMessages.asn file apprears between \"--
Start -
> Added by Eranga\" and \"-- End - Added by Eranga\" blocks.
> 
> Thanks a lot for your help.
> Eranga
> 
> 
> 
> 
> -----Original Message-----
> From: Bertil Karlsson [mailto:] 
> Sent: Thursday, September 30, 2004 4:48 PM
> To: Casper
> Subject: Re: ASN.1 Parameterized Types... pls help
> 
> Hi,
> 
> If you can send me all your asn1 source maybe I can see something. Those

> that were attached didn\'t contain the definitions below.
> 
> /Bertil
> 
> Casper wrote:
> 
>>Hi All,
>>
>>I\'m finding difficult in absorbing \"How to use ASN.1 TCAPMessage to
>>transport GSM MAP\". The problem is how to generate TCAP Begin, Continue,
>>End, etc messages.
>>
>>I read about the ASN.1 Parameterized Type, but still I could find the
> 
> match
> 
>>of ASN.1 specs for MAP and TCAP. I thought below might be the way, but
> 
> still
> 
>>that gives some compilation errors.
>>
>>mapSpecificAS ABSTRACT-SYNTAX ::= {
>> MapSpecificPDUs
>> IDENTIFIED BY gsm-MessagingId
>>}
>>
>>MapSpecificPDUs ::=
>> TCMessage{{ MAPOperations-Invokable}, { MAPOperations-Returnable}}
>>
>>
>>MAPOperations-Invokable OPERATION ::= 
>> {sendRoutingInfoForSM | mo-ForwardSM | mt-ForwardSM} 
>>MAPOperations-Returnable OPERATION ::= 
>> {reportSM-DeliveryStatus | alertServiceCentre |
informServiceCentre
> 
> |
> 
>>readyForSM}
>>
>>The error is as below (Erlang ASN.1 compiler),
>> {error,{asn1,[{error,{type,57,
>> \'TCAPMessages\',
>> \'MapSpecificPDUs\',
>> {asn1,{duplicates_of_the_tags,
>> [{\'UNIVERSAL\',\'INTEGER\'}]}}}}]}}
>>
>>For your information, I have attached TCAPMessages.asn and
>>MAP-ShortMessageServiceOperations.asn.
>>
>>I appreciate if anybody out there can give me some clue to solve this
>>problem.
>>
>>Thanks in advance!
>>Eranga
> 
> 

--------------This mail sent through OmniBIS.com--------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.zip
Type: application/x-zip-compressed
Size: 11152 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20041003/7fe3763f/attachment.bin>


More information about the erlang-questions mailing list