-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to decode S1 message #111
Comments
Could you run it through gdb and provide the backtrace.
3GPP TS 36.413 uses Aligned PER and not Unaligned PER (uper)
Please read again the second part of my comment in #108
|
Hi, @velichkov
Program received signal SIGSEGV, Segmentation fault. At main.c:37 - rval = uper_decode(0, &asn_DEF_InitiatingMessage, (void **)&initMsg, buf, size, 0, 0);
Yes, I know. I've searched for "per_decode" or "aper_decode" or something similar and found nothing. But I am pretty sure that function for Aligned PER exists. Could you provide its name?
I've tried them yesterday - both projects unable to parse .asn, falling with error: |
@velichkov |
Unfortunately it does not exist. If you look at the OAI and osmocom versions you will see that they have added APER but this modifications are not yet merged to the master nor to the #99 versions.
That's because the master, OAI and osmocom versions does not support Information Object Classes and that's why you are seeing similar errors. You need a version that supports both APER and Information Object classes but such version dose not exist yet. |
Thank you, @velichkov! I'll try to merge it. |
I've merged it, but I'm not sure about correctness. Anyway, I've tested it on 20-30 examples and everything was OK. Now I am planning to run it through some automatic tests in coming weeks. |
Would you mind sharing the source code that you merged fro S1AP with me? Grateful if you car share it with me. |
Hi @kevinchychen |
@kevinchychen |
Hi,
Some time ago I've needed help with 3GPP TS 36.413 v.12.6.0 parsing and now I've got trouble with its message decoding.
I've got some network dump with S1 message of type InitiatingMessage . ASN.1 description of this type can be found in S1AP-PDU-Descriptions, in 3GPP TS 36.413 v.12.6.0. The message is (in hex format, coded with PER):
00 0a 40 27 00 00 04 00 50 40 02 6b 80 00 2b 40 06 05 80 fb 0a 6e aa 00 6d 40 01 00 00 2e 40 0b 00 00 2f 40 06 00 52 f0 11 15 1d
I'm trying to decode its binary representation using asn1c decode example with "ber_decode" replaced by "uper_decode" and I've got segfault. Detailed steps to reproduce:
The text was updated successfully, but these errors were encountered: