Hello Tong,
Please find the below encoding of the v3 CANLOC by having IMSI with LMSI (
and without any cancellation type and Extension container having a value of
IMSI ="1234" and LMSI ="9999")
As per BER
0xA3 0x0E -- CANLOC Tag/Val
0x30 0x0C -- IMSI with LMSI SEQUENCE Tag /Val
0x04 0x04 -- IMSI Tag /Val
0x31 0x32 0x33 0x34
0x04 0x04 -- LMSI Tag /Val
0x39 0x39 0x39 0x39
Warm regards,
Vasa
-----Original Message-----
From: tong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 10:31 PM
To: [EMAIL PROTECTED]
Subject: RE: [ASN.1] a doubt about tag
hello Prasad Vasa
======= 2002-07-23 11:48:00 in your letter=======
>hello
> CancelLocation is a operation of MAP,and in invoke
>component,operation name is the value of operation TLV,and after it,is
>parameter TLV, my question is how to encode/decode parameters?
> If cancellationType and extensionContainer are not present, whether
>the first octet of parameter is the tag of identity(certainly identity is
>choice,it's tag equals to the tag of imsi or imsi-WithLMSI) ?
>
>>>>>>No, if both cancellationType & extensionContainer are absent I
>observed the encoding as below ( supposing imsi value is "1234")
>0xA3 0x06 0x04 0x04 0x31 0x32 0x33 0x34
then,if have IMSI and LMSI,how to encode it?
>
>
>Warm regards,
>Vasa
>
> And if so, how to judge the two conditions as follows:
> 1 identity only contain imsi,and cancellationType is present,so
>the 0x30 of CancelLocationArg SEQUENCE will present.
> from parameter's first octet:
>0x30(CancelLocationArg SEQUENCE) 0xXX {0x04(IMSI OCTET) 0xXX
>����}{0x0A(CancellationType Enumerated type) 0xXX 0x00(or 0x01)}
> 2 identity contain imsi-WithLMSI,and the tag of imsi-WithLMSI is
>0x30
> from parameter's first octet:
>0X30(imsi-WithLMSI SEQUENCE) 0xXX {0x04(IMSI OCTET) 0xXX ����}{0x04(LMSI
>OCTET) 0xXX ����}
>
>so how to judge 1 or 2 ?
>
= = = = = = = = = = = = = = = = = = = =
tong
[EMAIL PROTECTED]
2002-07-24